/* ==========================
   Login Modal Styles
   ========================== */

.login-register-modal {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1001;
    transform: translateY(-20px);
    transition: transform 0.25s ease;
}

.login-register-modal.active .modal-content {
    transform: translateY(0);
}

.login-register-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    cursor: pointer;
}

/* .modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1001;
    animation: slideUp 0.3s ease-out;
} */

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
}

.modal-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.close-btn {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #333;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-btn:hover {
    transform: rotate(90deg);
    color: #d32f2f;
}

.modal-body {
    padding: 30px;
}

/* ==========================
   Auth Steps
   ========================== */

.auth-step {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.auth-step h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.auth-step .text-muted {
    color: #666;
    font-size: 14px;
    margin-bottom: 30px;
}

/* ==========================
   User Type Selection
   ========================== */

.user-type-selection {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.user-type-option {
    display: block;
    cursor: pointer;
}

.franchise-fields {
    display: none;
}

.user-type-option input[type="radio"] {
    display: none;
}

.option-card {
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.user-type-option input[type="radio"]:checked + .option-card {
    border-color: #ffd700;
    background-color: #fffef5;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}

.option-card .icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.option-card h5 {
    margin: 10px 0 5px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.option-card p {
    margin: 0;
    font-size: 13px;
    color: #666;
}

/* ==========================
   Phone Input
   ========================== */

.phone-input-group {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 10px;
}

.country-code {
    background-color: #f5f5f5;
    padding: 12px 15px;
    border-radius: 6px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    border: 1px solid #ddd;
}

.phone-input-group .form-control {
    flex: 1;
}

/* ==========================
   OTP Input
   ========================== */

.otp-input-group {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-bottom: 25px;
}

.otp-box {
    width: 100%;
    height: 50px;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.otp-box:focus {
    outline: none;
    border-color: #ffd700;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.otp-box::placeholder {
    color: #ccc;
}

/* ==========================
   Form Controls
   ========================== */

.form-control {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.form-control:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.form-control:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    color: #999;
}

.mb-3 {
    margin-bottom: 15px;
}

/* ==========================
   Buttons
   ========================== */

.btn-primary,
.btn-secondary,
.btn-block {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: #ffd700;
    color: #333;
    margin-bottom: 10px;
}

.btn-primary:hover:not(:disabled) {
    background-color: #ffed4e;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
    transform: translateY(-2px);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    background-color: #e0e0e0;
    color: #333;
    margin-bottom: 10px;
}

.btn-secondary:hover {
    background-color: #d0d0d0;
}

.btn-block {
    width: 100%;
}

/* ==========================
   Links and Text
   ========================== */

.resend-text {
    text-align: center;
    font-size: 13px;
    color: #666;
    margin: 15px 0 0 0;
}

.link-btn {
    background: none;
    border: none;
    color: #ffd700;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    padding: 0;
    font-size: 13px;
    transition: color 0.3s ease;
}

.link-btn:hover {
    color: #ffed4e;
    text-decoration: underline;
}

/* ==========================
   reCAPTCHA
   ========================== */

.recaptcha-wrapper {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.recaptcha-wrapper iframe {
    border-radius: 6px;
}

/* ==========================
   Responsive Design
   ========================== */

@media (max-width: 600px) {
    .modal-content {
        max-width: 100%;
        border-radius: 0;
    }

    .modal-header {
        padding: 20px;
    }

    .modal-body {
        padding: 20px;
    }

    .user-type-selection {
        grid-template-columns: 1fr;
    }

    .option-card {
        padding: 15px;
    }

    .otp-input-group {
        gap: 8px;
    }

    .otp-box {
        height: 45px;
        font-size: 18px;
    }

    .phone-input-group {
        flex-direction: column;
        gap: 8px;
    }

    .country-code,
    .phone-input-group .form-control {
        width: 100%;
    }
}

/* ==========================
   User Dropdown (Logged In)
   ========================== */

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 999;
    min-width: 200px;
}

.user-icon {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #eee;
    font-size: 32px;
}

.dropdown-menu {
    list-style: none;
    padding: 10px 0;
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.dropdown-menu a:hover {
    background-color: #ffd700;
    color: #333;
}

.dropdown-menu a:last-child {
    color: #d32f2f;
}

.dropdown-menu a:last-child:hover {
    background-color: #ffcdd2;
    color: #d32f2f;
}
