/* ============================================
   LOGIN MODAL POPUP STYLES (Ultra Premium Theme)
   ============================================ */

/* HIDE RECAPTCHA BADGE (Legal Text Displayed in Modal) */
.grecaptcha-badge {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Modal Overlay */
.login-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.login-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Container */
.login-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: #ffffff;
    border-radius: 20px;
    padding: 35px;
    width: 90%;
    max-width: 400px;
    z-index: 99999;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(27, 67, 50, 0.1);
}

.login-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* Close Button */
.login-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.login-modal-close:hover {
    background: #ff5252;
}

.login-modal-close:hover svg {
    stroke: white;
}

.login-modal-close svg {
    stroke: #666;
    transition: stroke 0.3s ease;
}

/* Modal Title */
.login-modal h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #1B4332;
    text-align: center;
    margin-bottom: 24px;
}

/* Login Form */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Phone Input Group */
.phone-input-group {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.phone-input-group:focus-within {
    border-color: #1B4332;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(27, 67, 50, 0.1);
}

/* Country Code */
.country-code {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-right: 12px;
    border-right: 1px solid #e8e8e8;
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
}

.country-code span:first-child {
    font-size: 20px;
}

/* Phone Number Input */
#loginPhoneNumber {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    color: #2d3748;
    font-weight: 500;
}

#loginPhoneNumber::placeholder {
    color: #a0aec0;
    font-weight: normal;
}

/* Terms Text */
.login-terms {
    font-size: 12px;
    color: #718096;
    line-height: 1.5;
    text-align: center;
    margin: 0;
}

.login-terms a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
}

.login-terms a:hover {
    text-decoration: underline;
}

/* Login Button */
.login-otp-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #1B4332 0%, #2D6A4F 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(27, 67, 50, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}

.login-otp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 175, 239, 0.4);
}

.login-otp-btn:active {
    transform: translateY(0);
}

/* ============================================
   OTP VERIFICATION SCREEN STYLES
   ============================================ */

/* OTP Screen Container */
.otp-screen {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Back Button */
.back-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--primary-green);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 0;
    margin-bottom: 20px;
    transition: all 0.2s ease;
}

.back-btn:hover {
    gap: 8px;
    color: #0099d6;
}

.back-btn svg {
    stroke: currentColor;
}

/* OTP Screen Title */
.otp-screen h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 12px;
}

.otp-subtitle {
    font-size: 14px;
    color: #718096;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.5;
}

.otp-subtitle strong {
    color: #2d3748;
    font-weight: 600;
}

/* OTP Input Boxes */
.otp-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.otp-box {
    width: 48px;
    height: 52px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
    transition: all 0.3s ease;
}

.otp-box:focus {
    outline: none;
    border-color: #1B4332;
    box-shadow: 0 0 0 3px rgba(27, 67, 50, 0.1);
}

.otp-box.filled {
    border-color: #1B4332;
    background: rgba(27, 67, 50, 0.05);
}

/* Resend Text */
.resend-text {
    text-align: center;
    font-size: 13px;
    color: #718096;
    margin-bottom: 20px;
}

.resend-text a {
    color: #1B4332;
    text-decoration: none;
    font-weight: 600;
}

.resend-text a:hover {
    text-decoration: underline;
}

/* Mobile Responsive for OTP */
@media (max-width: 480px) {
    .otp-inputs {
        gap: 8px;
    }

    .otp-box {
        width: 42px;
        height: 48px;
        font-size: 20px;
    }

    .otp-screen h3 {
        font-size: 20px;
    }

    .otp-subtitle {
        font-size: 13px;
    }
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .login-modal {
        padding: 30px 24px;
        border-radius: 20px;
        max-width: 95%;
    }

    .login-modal h2 {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .phone-input-group {
        padding: 12px 14px;
    }

    #loginPhoneNumber {
        font-size: 15px;
    }

    .login-otp-btn {
        padding: 14px 20px;
        font-size: 15px;
    }
}