/**
 * Auth Forms Styles - Secure Password Change & Authentication
 */

/* ========================================
   Auth Container & Cards
   ======================================== */

.auth-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 48px 16px;
}

.auth-card {
    background: var(--card, #ffffff);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.auth-header {
    background: linear-gradient(135deg, var(--primary, #764ba2) 0%, var(--secondary, #667eea) 100%);
    padding: 40px 32px;
    text-align: center;
    color: white;
}

.auth-header-icon {
    font-size: 60px;
    margin-bottom: 16px;
    display: block;
}

.auth-header-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-header-subtitle {
    font-size: 15px;
    opacity: 0.9;
}

.auth-body {
    padding: 32px;
}

/* ========================================
   Step Indicator
   ======================================== */

.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
}

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.step-circle--active {
    background: linear-gradient(135deg, var(--primary, #764ba2) 0%, var(--secondary, #667eea) 100%);
    color: white;
}

.step-circle--completed {
    background: #10b981;
    color: white;
}

.step-circle--inactive {
    background: var(--muted, #f3f4f6);
    color: var(--muted-fg, #9ca3af);
}

.step-line {
    width: 48px;
    height: 2px;
    background: var(--border, #e5e7eb);
}

/* ========================================
   Alerts & Messages
   ======================================== */

.auth-alert {
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.auth-alert-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.auth-alert-content {
    flex: 1;
}

.auth-alert-title {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 14px;
}

.auth-alert-text {
    font-size: 13px;
    line-height: 1.5;
}

.auth-alert--info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.auth-alert--success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.auth-alert--warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.auth-alert--error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* ========================================
   Form Elements
   ======================================== */

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-form-group {
    display: flex;
    flex-direction: column;
}

.auth-label {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--fg, #1f2937);
}

.auth-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border, #e5e7eb);
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s ease;
    background: var(--card, #ffffff);
    color: var(--fg, #1f2937);
}

.auth-input:focus {
    outline: none;
    border-color: var(--primary, #764ba2);
    box-shadow: 0 0 0 3px rgba(118, 75, 162, 0.1);
}

.auth-input--error {
    border-color: #ef4444;
}

.auth-input--large {
    font-size: 32px;
    text-align: center;
    font-weight: 700;
    letter-spacing: 8px;
    padding: 16px;
}

.auth-input-hint {
    font-size: 13px;
    color: var(--muted-fg, #6b7280);
    margin-top: 6px;
}

.auth-input-error {
    font-size: 13px;
    color: #ef4444;
    margin-top: 6px;
}

.auth-email-display {
    background: rgba(118, 75, 162, 0.1);
    border: 2px solid var(--primary, #764ba2);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    font-weight: 600;
    color: var(--primary, #764ba2);
}

/* ========================================
   Buttons
   ======================================== */

.auth-btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-btn--primary {
    background: linear-gradient(135deg, var(--primary, #764ba2) 0%, var(--secondary, #667eea) 100%);
    color: white;
}

.auth-btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(118, 75, 162, 0.3);
}

.auth-btn--primary:active {
    transform: translateY(0);
}

.auth-btn--primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.auth-btn--success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.auth-btn--success:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.auth-btn--outline {
    background: transparent;
    border: 2px solid var(--border, #e5e7eb);
    color: var(--fg, #1f2937);
    font-size: 14px;
    padding: 10px 20px;
}

.auth-btn--outline:hover {
    background: var(--muted, #f3f4f6);
}

/* ========================================
   Security Info & Tips
   ======================================== */

.security-tips {
    text-align: center;
    margin-top: 32px;
}

.security-tips-title {
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 14px;
}

.security-tips-list {
    display: inline-block;
    text-align: left;
    font-size: 13px;
    color: var(--muted-fg, #6b7280);
    line-height: 1.8;
}

.security-tips-list li {
    margin-bottom: 4px;
}

/* ========================================
   Timer & Countdown
   ======================================== */

.code-timer {
    text-align: center;
    margin: 24px 0;
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: 700;
    color: #ef4444;
}

.code-timer-expired {
    animation: pulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ========================================
   Password Strength Indicator
   ======================================== */

.password-strength {
    margin-top: 12px;
}

.password-strength-bar {
    height: 4px;
    width: 100%;
    background: var(--muted, #f3f4f6);
    border-radius: 2px;
    overflow: hidden;
}

.password-strength-fill {
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.password-strength-fill--weak {
    width: 33%;
    background: #ef4444;
}

.password-strength-fill--medium {
    width: 66%;
    background: #f59e0b;
}

.password-strength-fill--strong {
    width: 100%;
    background: #10b981;
}

.password-strength-text {
    font-size: 13px;
    margin-top: 6px;
    color: var(--muted-fg, #6b7280);
}

.password-match-indicator {
    font-size: 13px;
    font-weight: 600;
    margin-top: 6px;
}

.password-match-indicator--match {
    color: #10b981;
}

.password-match-indicator--mismatch {
    color: #ef4444;
}

/* ========================================
   Actions & Links
   ======================================== */

.auth-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
    text-align: center;
}

.auth-link {
    color: var(--primary, #764ba2);
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.2s ease;
}

.auth-link:hover {
    opacity: 0.8;
}

.auth-divider {
    color: var(--muted-fg, #9ca3af);
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 640px) {
    .auth-container {
        padding: 24px 12px;
    }
    
    .auth-header {
        padding: 32px 24px;
    }
    
    .auth-header-icon {
        font-size: 48px;
    }
    
    .auth-header-title {
        font-size: 24px;
    }
    
    .auth-body {
        padding: 24px 20px;
    }
    
    .step-circle {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
    
    .step-line {
        width: 32px;
    }
}
