/* Authentication Pages Styles */

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
}

.auth-card {
    background: white;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 450px;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    text-decoration: none;
    display: inline-block;
    margin-bottom: 1rem;
}

.auth-logo h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0;
}

.auth-header h2 {
    font-size: 1.75rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

/* Descope Container */
#descope-container {
    display: none; /* Hidden until loaded */
    margin: 2rem 0;
}

/* Loading State */
.loading-message {
    text-align: center;
    padding: 2rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-message p {
    color: var(--text-light);
}

/* Error State */
.error-message {
    text-align: center;
    padding: 2rem;
    background: #FEE2E2;
    border-radius: 0.5rem;
    margin: 2rem 0;
}

.error-message p {
    color: #991B1B;
    margin-bottom: 1rem;
}

/* Plan Indicator */
.plan-indicator {
    background: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    padding: 1rem;
    border-radius: 0.25rem;
    margin-bottom: 1.5rem;
}

.plan-indicator p {
    margin: 0;
    color: var(--text-dark);
}

.plan-indicator strong {
    color: var(--primary-color);
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.auth-footer p {
    margin: 0.5rem 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.auth-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.auth-terms {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 1rem;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    animation: slideInRight 0.3s ease-out;
    z-index: 1000;
    max-width: 400px;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.notification-success {
    background: #D1FAE5;
    color: #065F46;
    border-left: 4px solid #10B981;
}

.notification-error {
    background: #FEE2E2;
    color: #991B1B;
    border-left: 4px solid #EF4444;
}

.notification-info {
    background: #DBEAFE;
    color: #1E40AF;
    border-left: 4px solid #3B82F6;
}

/* Dashboard Styles (for authenticated pages) */
.dashboard-container {
    min-height: 100vh;
    background: var(--bg-light);
}

.dashboard-header {
    background: white;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    box-shadow: var(--shadow);
}

.dashboard-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.dashboard-content {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* Onboarding Styles */
.onboarding-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding: 0;
    list-style: none;
}

.onboarding-step {
    flex: 1;
    text-align: center;
    position: relative;
}

.onboarding-step::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: var(--border-color);
    z-index: -1;
}

.onboarding-step:last-child::after {
    display: none;
}

.onboarding-step-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    font-weight: bold;
    color: var(--text-light);
}

.onboarding-step.active .onboarding-step-number {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.onboarding-step.completed .onboarding-step-number {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

.onboarding-step-label {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.onboarding-step.active .onboarding-step-label {
    color: var(--text-dark);
    font-weight: 500;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: border-color 0.15s ease-in-out;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-help {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.form-error {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #EF4444;
}

/* Responsive Design */
@media (max-width: 640px) {
    .auth-card {
        padding: 1.5rem;
        margin: 1rem;
    }

    .auth-header h2 {
        font-size: 1.5rem;
    }

    .notification {
        left: 20px;
        right: 20px;
        max-width: none;
    }

    .onboarding-steps {
        flex-direction: column;
        gap: 1rem;
    }

    .onboarding-step::after {
        display: none;
    }
}