/* Account Popup Styles - Force Hidden by default */
.account-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none !important; /* Force hidden */
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.account-popup-overlay.active {
    display: flex !important; /* Force show when active */
    opacity: 1;
    visibility: visible;
}

.account-popup {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.3s ease;
}

.account-popup-overlay.active .account-popup {
    transform: scale(1) translateY(0);
}

.popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    border-bottom: 1px solid #e2e8f0;
}

.popup-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #1e293b;
}

.popup-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    color: #64748b;
    transition: all 0.2s ease;
}

.popup-close:hover {
    background: #f1f5f9;
    color: #334155;
}

.popup-content {
    padding: 32px;
}

.account-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s ease;
    background: white;
}

.form-group input:focus {
    outline: none;
    border-color: #0046FF;
    box-shadow: 0 0 0 3px rgba(0, 70, 255, 0.1);
}

.form-group input:invalid {
    border-color: #ef4444;
}

.password-input {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #64748b;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: #374151;
}

.password-strength {
    font-size: 12px;
    margin-top: 4px;
    transition: all 0.2s ease;
}

.password-strength.weak {
    color: #ef4444;
}

.password-strength.medium {
    color: #f59e0b;
}

.password-strength.strong {
    color: #22c55e;
}

.checkbox-group {
    margin: 8px 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
    color: #374151;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-top: 1px;
}

.checkbox-label input:checked + .checkmark {
    background: #0046FF;
    border-color: #0046FF;
}

.checkbox-label input:checked + .checkmark::after {
    content: '';
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.terms-link {
    color: #0046FF;
    text-decoration: none;
    font-weight: 500;
}

.terms-link:hover {
    text-decoration: underline;
}

.form-actions {
    margin-top: 8px;
}

.btn-full {
    width: 100%;
    justify-content: center;
    position: relative;
}

.btn-loading {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-link {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.login-link p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

.login-link .link {
    color: #0046FF;
    text-decoration: none;
    font-weight: 500;
}

.login-link .link:hover {
    text-decoration: underline;
}

.success-message {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    margin: 0 auto 24px;
    width: 48px;
    height: 48px;
}

.success-message h3 {
    margin: 0 0 16px;
    font-size: 24px;
    font-weight: 600;
    color: #1e293b;
}

.success-message p {
    margin: 0 0 32px;
    color: #64748b;
    line-height: 1.6;
}

/* Error States */
.form-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .account-popup-overlay {
        padding: 16px;
        align-items: flex-start;
        padding-top: 40px;
    }

    .account-popup {
        max-height: calc(100vh - 80px);
        border-radius: 12px;
    }

    .popup-header {
        padding: 20px 24px;
    }

    .popup-header h2 {
        font-size: 20px;
    }

    .popup-content {
        padding: 24px;
    }

    .account-form {
        gap: 20px;
    }

    .checkbox-label {
        font-size: 13px;
    }
}

/* Coming Soon Message */
.coming-soon-message {
    text-align: center;
    padding: 2rem 0;
}

.coming-soon-icon {
    margin-bottom: 1.5rem;
    color: #0046FF;
}

.coming-soon-message h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.coming-soon-message p {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-options {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.contact-options .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.contact-options .btn svg {
    flex-shrink: 0;
}

.alternative-cta {
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.alternative-cta p {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

@media (max-width: 480px) {
    .popup-header {
        padding: 16px 20px;
    }

    .popup-content {
        padding: 20px;
    }

    .account-form {
        gap: 16px;
    }

    .form-group {
        gap: 6px;
    }
    
    .contact-options {
        flex-direction: column;
    }
    
    .contact-options .btn {
        width: 100%;
        justify-content: center;
    }
}
