/* ============================================================
   AdvReferenceGen - Auth Pages Styles
   ============================================================ */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-hero);
    padding: var(--space-lg);
    position: relative;
}

.auth-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-glow);
    pointer-events: none;
}

.auth-container {
    width: 100%;
    max-width: 480px;
    position: relative;
    z-index: 1;
}

.auth-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.5s ease;
}

.auth-logo {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.auth-logo a {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-bright);
    text-decoration: none;
}

.auth-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: var(--space-xs);
}

.auth-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: var(--space-xl);
}

/* Signup Steps */
.signup-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: var(--space-xl);
}

.step-indicator {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.step-dot {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
    background: var(--bg-elevated);
    border: 2px solid var(--border);
    color: var(--text-muted);
    transition: all var(--transition-base);
}

.step-dot.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--text-on-primary);
    box-shadow: 0 0 15px rgba(97, 218, 251, 0.4);
}

.step-dot.completed {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.step-line {
    width: 40px;
    height: 2px;
    background: var(--border);
    transition: background var(--transition-base);
}

.step-line.completed {
    background: var(--success);
}

/* Plan Selection in Signup */
.plan-options {
    display: grid;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.plan-option {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-input);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.plan-option:hover {
    border-color: var(--border-light);
}

.plan-option.selected {
    border-color: var(--primary);
    background: rgba(97, 218, 251, 0.05);
}

.plan-option input[type="radio"] {
    display: none;
}

.plan-radio {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.plan-option.selected .plan-radio {
    border-color: var(--primary);
}

.plan-option.selected .plan-radio::after {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
}

.plan-option-info {
    flex: 1;
}

.plan-option-name {
    font-weight: 700;
    color: var(--text-bright);
    font-size: 0.95rem;
}

.plan-option-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.plan-option-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.9rem;
}

/* Verification Code Input */
.code-inputs {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.code-input {
    width: 50px;
    height: 56px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--bg-input);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--primary);
    outline: none;
    transition: all var(--transition-fast);
}

.code-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

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

.auth-footer p {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
}

/* Password Strength */
.password-strength {
    display: flex;
    gap: 4px;
    margin-top: var(--space-sm);
}

.strength-bar {
    flex: 1;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    transition: background var(--transition-fast);
}

.strength-bar.weak { background: var(--error); }
.strength-bar.medium { background: var(--warning); }
.strength-bar.strong { background: var(--success); }

/* Form divider */
.divider {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin: var(--space-lg) 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.divider span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 480px) {
    .auth-card {
        padding: var(--space-lg);
    }
    
    .code-input {
        width: 42px;
        height: 48px;
        font-size: 1.2rem;
    }
    
    .step-line {
        width: 24px;
    }
}
