/* ========================================================================
   Page: Auth — Login, Register, Reset Password
   ======================================================================== */

.auth-container {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-height: 100vh; padding: var(--space-6);
}
.auth-card {
    width: 100%; max-width: 440px;
    background: var(--bg-primary); border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.auth-header {
    text-align: center; padding: 2rem 2rem 0;
}
.auth-logo {
    display: flex; align-items: center; justify-content: center; gap: var(--space-2);
    margin-bottom: var(--space-4);
}
.auth-logo svg { color: var(--brand); }
.auth-logo-text { font-size: var(--text-xl); font-weight: var(--weight-bold); color: var(--text-primary); letter-spacing: -0.02em; }
.auth-title { font-size: var(--text-2xl); font-weight: var(--weight-bold); color: var(--text-primary); margin: 0 0 var(--space-2); }
.auth-subtitle { font-size: var(--text-base); color: var(--text-muted); margin: 0; }

.auth-body { padding: 1.5rem 2rem 2rem; }
.auth-body .form-group { margin-bottom: var(--space-4); }
.auth-body .form-input { padding: 0.75rem 0.875rem; }
.auth-body .btn { width: 100%; padding: 0.75rem; font-size: var(--text-md); }

.auth-divider {
    display: flex; align-items: center; gap: var(--space-3);
    margin: var(--space-4) 0; color: var(--text-muted); font-size: var(--text-sm);
}
.auth-divider::before, .auth-divider::after {
    content: ''; flex: 1; height: 1px; background: var(--border);
}

.auth-footer {
    text-align: center; padding: var(--space-4) 2rem;
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
    font-size: var(--text-sm); color: var(--text-muted);
}
.auth-footer a { color: var(--brand); font-weight: var(--weight-medium); text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }

/* ── Features list (register page) ── */
.auth-features {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: var(--space-2); margin: var(--space-4) 0;
}
.auth-feature {
    display: flex; align-items: center; gap: var(--space-2);
    font-size: var(--text-sm); color: var(--text-secondary);
}
.auth-feature svg { color: var(--success); flex-shrink: 0; }

/* ── Password strength ── */
.password-strength { margin-top: var(--space-2); }
.password-strength-bar {
    height: 4px; border-radius: 2px; background: var(--bg-tertiary);
    overflow: hidden; margin-bottom: var(--space-1);
}
.password-strength-fill { height: 100%; border-radius: 2px; transition: width 0.3s, background 0.3s; }
.password-strength-fill.weak { width: 25%; background: var(--danger); }
.password-strength-fill.fair { width: 50%; background: var(--warning); }
.password-strength-fill.good { width: 75%; background: var(--info); }
.password-strength-fill.strong { width: 100%; background: var(--success); }
.password-strength-text { font-size: var(--text-xs); color: var(--text-muted); }

/* ── Remember / forgot row ── */
.auth-options { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-4); }
.auth-options a { font-size: var(--text-sm); color: var(--brand); text-decoration: none; }
.auth-options a:hover { text-decoration: underline; }

/* ── Mobile ── */
@media (max-width: 480px) {
    .auth-container { padding: var(--space-4); }
    .auth-card { border-radius: var(--radius); }
    .auth-header, .auth-body { padding-left: 1.25rem; padding-right: 1.25rem; }
    .auth-features { grid-template-columns: 1fr; }
}
