/* =====================================================================
   assets/css/auth.css — design ng Login, Forgot Password (3 steps),
   Forbidden, at pansamantalang Admin/Users pages.
   Kailangang naka-link muna ang fonts.css bago ito.
   ===================================================================== */
:root {
    --primary: #8c1a2e;
    --primary-dark: #6b1322;
    --text-dark: #111827;
    --text-gray: #6b7280;
    --text-light: #9ca3af;
    --bg-gray: #f9fafb;
    --border: #e5e7eb;
    --danger: #dc2626;
    --success: #15803d;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Inter", Arial, sans-serif; background-color: var(--bg-gray); color: var(--text-dark); line-height: 1.5; }
h1, h2, .header-name, .stat-row span:last-child { font-family: "DM Sans", Arial, sans-serif; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #f4b6c1; outline-offset: 2px; }

/* ---------- LOGIN: 2 panels ---------- */
.login-wrapper { display: flex; min-height: 100vh; }

/* Kaliwa (maroon) — sa malapad na screen lang lumalabas */
.login-left { display: none; width: 41.666%; background: var(--primary); padding: 3rem; flex-direction: column; justify-content: space-between; }
@media (min-width: 1024px) { .login-left { display: flex; } }
.logo-box { width: 96px; height: 96px; border-radius: 50%; background: #fff; padding: 4px; margin-bottom: 2rem; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); }
.logo-box img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.left-label { color: rgba(255, 255, 255, 0.7); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px; }
.left-title { color: #fff; font-size: 24px; line-height: 1.4; margin-bottom: 16px; }
.left-quote { color: rgba(255, 255, 255, 0.65); font-size: 14px; font-style: italic; line-height: 1.6; }
.left-stats { display: flex; flex-direction: column; gap: 16px; }
.stat-row { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255, 255, 255, 0.2); padding-top: 1rem; color: #fff; }
.stat-row span:first-child { font-size: 14px; color: rgba(255, 255, 255, 0.65); }
.stat-row span:last-child { font-size: 16px; font-weight: 700; }

/* Kanan (form) */
.login-right { flex: 1; display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.form-container { width: 100%; max-width: 384px; }

/* ---------- FORGOT PASSWORD / FORBIDDEN: isang card sa gitna ---------- */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.auth-card { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 32px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); }
.auth-card-center { text-align: center; }
.auth-seal { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--border); object-fit: cover; margin-bottom: 16px; }

/* Step indicator (Account → Code → New password) */
.steps { display: flex; gap: 8px; list-style: none; margin-bottom: 20px; counter-reset: step; }
.steps li { flex: 1; font-size: 11px; color: var(--text-light); padding-top: 8px; border-top: 3px solid var(--border); counter-increment: step; }
.steps li::before { content: counter(step) ". "; }
.steps li.done { color: var(--text-gray); border-top-color: #d9a3ad; }
.steps li.active { color: var(--primary); font-weight: 600; border-top-color: var(--primary); }

/* ---------- Shared: header, titles ---------- */
.btn-back { display: inline-flex; align-items: center; gap: 6px; color: var(--text-gray); text-decoration: none; font-size: 14px; margin-bottom: 24px; transition: color 0.2s; }
.btn-back:hover { color: var(--text-dark); }
.header-box { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.header-box img { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--border); object-fit: cover; }
.header-name { font-weight: 700; }
.header-place { font-size: 12px; color: var(--text-light); }
.form-title { font-size: 24px; margin-bottom: 4px; }
.form-subtitle { font-size: 14px; color: var(--text-gray); margin-bottom: 24px; }

/* ---------- Alerts ---------- */
.alert { display: flex; align-items: flex-start; gap: 8px; padding: 12px; border-radius: 8px; font-size: 14px; margin-bottom: 16px; text-align: left; }
.alert svg { flex-shrink: 0; margin-top: 2px; }
.alert-error { background: #fef2f2; border: 1px solid #f87171; color: #b91c1c; }
.alert-success { background: #f0fdf4; border: 1px solid #86efac; color: var(--success); }
#lockTimer { font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- Form ---------- */
.form-group { margin-bottom: 16px; text-align: left; }
.form-group label { display: block; font-size: 12px; font-weight: 500; margin-bottom: 6px; }
.input-wrapper { position: relative; display: flex; align-items: center; }
.input-icon-left { position: absolute; left: 12px; color: var(--text-light); pointer-events: none; }
.input-icon-right { position: absolute; right: 12px; color: var(--text-light); cursor: pointer; background: none; border: none; padding: 0; display: flex; }
.input-icon-right:hover { color: var(--text-gray); }
.form-control { width: 100%; padding: 10px 12px 10px 36px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; font-family: inherit; color: var(--text-dark); transition: border-color 0.2s, box-shadow 0.2s; outline: none; background: #fff; }
.form-control.has-right-icon { padding-right: 36px; }
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(140, 26, 46, 0.1); }
.form-control.has-error { border-color: #f87171; background-color: #fef2f2; }
.otp-input { padding-left: 12px; text-align: center; font-size: 22px; letter-spacing: 10px; font-variant-numeric: tabular-nums; }
.otp-input::placeholder { color: #d1d5db; }
.error { display: block; color: var(--danger); font-size: 12px; margin-top: 4px; }
.error:empty { display: none; }

.form-options { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.form-options a, .auth-help a { font-size: 14px; color: var(--primary); text-decoration: none; font-weight: 500; }
.form-options a:hover, .auth-help a:hover { text-decoration: underline; }

.btn-submit { width: 100%; background: var(--primary); color: #fff; border: none; padding: 10px; border-radius: 8px; font-size: 14px; font-weight: 600; font-family: inherit; cursor: pointer; transition: background 0.2s; margin-top: 8px; }
.btn-submit:hover { background: var(--primary-dark); }
.btn-submit:disabled { background: #c9a1a9; cursor: not-allowed; }
.btn-link { display: block; text-align: center; text-decoration: none; }

.auth-help { font-size: 14px; color: var(--text-gray); text-align: center; margin-top: 20px; }
.auth-footer { text-align: center; font-size: 12px; color: var(--text-light); margin-top: 20px; }

@media (max-width: 479px) {
    .auth-card { padding: 24px 18px; }
}

/* ---------- Remember me (Login) ---------- */
.remember-label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-gray); cursor: pointer; }
.remember-label input { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; }
