/* ============================================================
   ABIA STATE LEADERSHIP ACADEMY - design system
   Palette: Abia crest red & black, certificate gold accent
   Type:    Zilla Slab (display) / Public Sans (body)
   Rule:    border-radius never exceeds 6px. Badges are square.
   ============================================================ */

:root {
    --red: #B01E23;
    --red-deep: #841317;
    --red-soft: #F7E9E9;
    --black: #161311;
    --ink: #2A2420;
    --muted: #6E655C;
    --gold: #C9973B;
    --gold-soft: #F6EDDB;
    --paper: #FAF7F1;
    --card: #FFFFFF;
    --line: #E7E0D3;
    --ok: #2E7D46;
    --ok-soft: #E7F2EA;
    --warn: #9A6B0B;
    --warn-soft: #FBF3DE;
    --danger: #B3261E;
    --danger-soft: #F9E7E5;
    --r: 6px;
    --shadow: 0 1px 2px rgba(22,19,17,.06), 0 6px 18px rgba(22,19,17,.07);
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.55;
    -webkit-text-size-adjust: 100%;
}

h1, h2, h3, h4, .display { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.01em; color: var(--black); margin: 0 0 .4rem; line-height: 1.15; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-deep); }
img { max-width: 100%; }

/* ---------- signature: certificate ribbon ---------- */
.ala-ribbon { height: 10px; display: flex; }
.ala-ribbon span:first-child { flex: 1; background: var(--red); }
.ala-ribbon span:last-child { width: 34%; background: var(--black); }

/* guilloche-style security print for heroes */
.ala-guilloche {
    background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 1px, transparent 1px 9px),
                      repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 1px, transparent 1px 9px);
}

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.wrap-narrow { max-width: 760px; }

.topbar {
    background: #fff;
    border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 900;
}
.topbar-inner { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--black); }
.brand img { height: 40px; width: auto; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.02rem; line-height: 1.1; }
.brand-sub { display: block; font-family: var(--font-body); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------- buttons ---------- */
.btn-ala, .btn-ala-outline, .btn-ala-dark, .btn-ala-ghost {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--font-body); font-weight: 600; font-size: .92rem;
    border-radius: var(--r); border: 1px solid transparent;
    padding: 11px 20px; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
    text-decoration: none; line-height: 1.2;
}
.btn-ala { background: var(--red); color: #fff; }
.btn-ala:hover { background: var(--red-deep); color: #fff; }
.btn-ala-dark { background: var(--black); color: #fff; }
.btn-ala-dark:hover { background: #000; color: var(--gold); }
.btn-ala-outline { background: transparent; color: var(--red); border-color: var(--red); }
.btn-ala-outline:hover { background: var(--red-soft); }
.btn-ala-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ala-ghost:hover { border-color: var(--ink); }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 14px; font-size: .84rem; }
button:disabled, .btn-ala[disabled] { opacity: .55; pointer-events: none; }

/* ---------- forms ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .02em; color: var(--ink); margin-bottom: 5px; }
.field label .req { color: var(--red); }
.form-control, .form-select, textarea.form-control {
    border: 1px solid var(--line); border-radius: var(--r);
    padding: 10px 12px; font-size: .95rem; font-family: var(--font-body);
    background: #fff; color: var(--ink); width: 100%;
}
.form-control:focus, .form-select:focus {
    outline: none; border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(176,30,35,.14);
}
.hint { font-size: .76rem; color: var(--muted); margin-top: 4px; }
.field.invalid .form-control, .field.invalid .form-select { border-color: var(--danger); }
.field .err { display: none; font-size: .76rem; color: var(--danger); margin-top: 4px; }
.field.invalid .err { display: block; }

/* ---------- cards ---------- */
.card-ala {
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--r); box-shadow: var(--shadow);
}
.card-ala .card-head { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-ala .card-body { padding: 18px; }
.card-title { font-family: var(--font-display); font-size: 1.02rem; font-weight: 700; margin: 0; }

/* ---------- badges: SQUARE, never pills ---------- */
.tag {
    display: inline-block; padding: 3px 9px; font-size: .72rem; font-weight: 700;
    letter-spacing: .05em; text-transform: uppercase; border-radius: 0;
    border: 1px solid transparent;
}
.tag-red { background: var(--red-soft); color: var(--red-deep); border-color: #E9C6C7; }
.tag-dark { background: var(--black); color: #fff; }
.tag-gold { background: var(--gold-soft); color: var(--warn); border-color: #E8D3A8; }
.tag-ok { background: var(--ok-soft); color: var(--ok); border-color: #C4DFCC; }
.tag-warn { background: var(--warn-soft); color: var(--warn); border-color: #EBD9AC; }
.tag-danger { background: var(--danger-soft); color: var(--danger); border-color: #ECC8C5; }
.tag-muted { background: #F1EDE4; color: var(--muted); border-color: var(--line); }

/* ---------- toast ---------- */
#alaToastHost { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 4000; width: min(94vw, 420px); display: flex; flex-direction: column; gap: 8px; }
.ala-toast {
    background: var(--black); color: #fff; border-left: 4px solid var(--gold);
    border-radius: var(--r); padding: 12px 16px; font-size: .88rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.28);
    animation: alaToastIn .22s ease-out;
}
.ala-toast.ok { border-left-color: #57B87B; }
.ala-toast.err { border-left-color: #E4635C; }
@keyframes alaToastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- modal (custom, no native dialogs) ---------- */
.ala-modal-backdrop {
    position: fixed; inset: 0; background: rgba(22,19,17,.55); z-index: 3000;
    display: none; align-items: flex-end; justify-content: center; padding: 0;
}
.ala-modal-backdrop.open { display: flex; }
.ala-modal {
    background: #fff; width: 100%; max-width: 560px; border-radius: 6px 6px 0 0;
    max-height: 92vh; display: flex; flex-direction: column; overflow: hidden;
    animation: alaSheetUp .22s ease-out;
}
@keyframes alaSheetUp { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
.ala-modal-head { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.ala-modal-head h3 { margin: 0; font-size: 1.05rem; }
.ala-modal-x { background: none; border: none; font-size: 1.5rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 2px 6px; }
.ala-modal-body { padding: 18px; overflow-y: auto; }
.ala-modal-foot { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; }
@media (min-width: 640px) {
    .ala-modal-backdrop { align-items: center; padding: 20px; }
    .ala-modal { border-radius: var(--r); }
}

/* ---------- loading overlay ---------- */
#alaBusy { position: fixed; inset: 0; background: rgba(250,247,241,.72); z-index: 5000; display: none; align-items: center; justify-content: center; }
#alaBusy.open { display: flex; }
.ala-spin { width: 42px; height: 42px; border: 4px solid var(--line); border-top-color: var(--red); border-radius: 50%; animation: alaSpin .8s linear infinite; }
@keyframes alaSpin { to { transform: rotate(360deg); } }

/* ---------- wizard ---------- */
.wizard-steps { display: flex; gap: 6px; margin: 18px 0 6px; }
.wstep {
    flex: 1; text-align: center; padding: 8px 2px 10px; position: relative;
    border-top: 4px solid var(--line); color: var(--muted); font-size: .68rem;
    font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.wstep .n {
    display: inline-flex; width: 24px; height: 24px; align-items: center; justify-content: center;
    background: #fff; border: 1px solid var(--line); font-family: var(--font-display);
    font-size: .82rem; margin-bottom: 3px; border-radius: 0;
}
.wstep.active { border-top-color: var(--red); color: var(--red-deep); }
.wstep.active .n { background: var(--red); border-color: var(--red); color: #fff; }
.wstep.done { border-top-color: var(--black); color: var(--black); }
.wstep.done .n { background: var(--black); border-color: var(--black); color: var(--gold); }
.wstep .lbl { display: none; }
@media (min-width: 720px) { .wstep .lbl { display: block; } }

.wizard-pane { display: none; }
.wizard-pane.active { display: block; animation: alaFade .2s ease-out; }
@keyframes alaFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.wizard-nav {
    position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--line);
    padding: 12px 16px; display: flex; gap: 10px; z-index: 800;
    margin: 24px -16px 0;
}
.wizard-nav .btn-ala { flex: 1; }
@media (min-width: 720px) {
    .wizard-nav { position: static; margin: 24px 0 0; padding: 16px 0 0; background: transparent; }
    .wizard-nav .btn-ala { flex: 0 0 auto; min-width: 170px; margin-left: auto; }
}

.section-label {
    font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
    color: var(--red-deep); border-bottom: 2px solid var(--red); display: inline-block;
    padding-bottom: 3px; margin: 8px 0 14px;
}

/* passport uploader */
.passport-box {
    width: 132px; height: 158px; border: 2px dashed var(--line); border-radius: var(--r);
    background: #fff; display: flex; align-items: center; justify-content: center;
    text-align: center; color: var(--muted); font-size: .74rem; cursor: pointer;
    overflow: hidden; position: relative;
}
.passport-box img { width: 100%; height: 100%; object-fit: cover; }
.passport-box.has { border-style: solid; border-color: var(--gold); }

/* school level blocks */
.level-block { border: 1px solid var(--line); border-radius: var(--r); background: #fff; margin-bottom: 14px; }
.level-block .lb-head {
    padding: 11px 14px; background: var(--paper); border-bottom: 1px solid var(--line);
    font-family: var(--font-display); font-weight: 600; display: flex; justify-content: space-between; align-items: center;
}
.level-block .lb-body { padding: 14px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    border: 1px solid var(--line); background: #fff; border-radius: var(--r);
    padding: 8px 12px; font-size: .84rem; cursor: pointer; user-select: none;
}
.chip.on { background: var(--black); border-color: var(--black); color: #fff; }

/* subject/grade rows */
.subj-row { display: grid; grid-template-columns: 1fr 86px 34px; gap: 8px; margin-bottom: 8px; }
.subj-remove { border: 1px solid var(--line); background: #fff; color: var(--danger); border-radius: var(--r); cursor: pointer; font-weight: 700; }

/* review list */
.review-dl { margin: 0; }
.review-dl > div { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: .88rem; }
.review-dl dt { flex: 0 0 44%; color: var(--muted); margin: 0; font-weight: 600; }
.review-dl dd { flex: 1; margin: 0; color: var(--black); }

/* ---------- applicant dashboard ---------- */
.dash-hero {
    background: var(--black); color: #fff; border-radius: var(--r);
    padding: 22px 20px; position: relative; overflow: hidden;
}
.dash-hero::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.045) 0 1px, transparent 1px 9px);
}
.dash-hero h2 { color: #fff; }
.dash-appno { font-family: var(--font-display); font-size: 1.35rem; letter-spacing: .06em; color: var(--gold); }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: 12px; padding: 0 0 20px; position: relative; }
.timeline li::before {
    content: ""; position: absolute; left: 11px; top: 26px; bottom: 0; width: 2px; background: var(--line);
}
.timeline li:last-child::before { display: none; }
.tl-dot {
    flex: 0 0 24px; height: 24px; border: 2px solid var(--line); background: #fff;
    display: flex; align-items: center; justify-content: center; font-size: .7rem; font-weight: 700;
    z-index: 1; border-radius: 0;
}
.timeline li.done .tl-dot { background: var(--black); border-color: var(--black); color: var(--gold); }
.timeline li.now .tl-dot { background: var(--red); border-color: var(--red); color: #fff; }
.tl-txt strong { display: block; font-size: .92rem; }
.tl-txt span { font-size: .78rem; color: var(--muted); }

/* ---------- admin shell ---------- */
.admin-body { background: #F3EFE7; }
.admin-shell { display: flex; min-height: 100vh; }
.admin-side {
    width: 244px; background: var(--black); color: #D8D2C8; flex-shrink: 0;
    position: fixed; inset: 0 auto 0 0; transform: translateX(-100%);
    transition: transform .2s ease-out; z-index: 2000; display: flex; flex-direction: column;
}
.admin-side.open { transform: none; }
.admin-side .as-brand { padding: 18px 18px 14px; border-bottom: 1px solid rgba(255,255,255,.09); display: flex; gap: 10px; align-items: center; }
.admin-side .as-brand img { height: 36px; }
.admin-side .as-brand b { font-family: var(--font-display); color: #fff; font-size: .95rem; line-height: 1.15; display: block; }
.admin-side .as-brand small { color: var(--gold); font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; }
.admin-nav { padding: 12px 10px; flex: 1; }
.admin-nav a {
    display: flex; align-items: center; gap: 10px; color: #CFC8BC; padding: 11px 12px;
    border-radius: var(--r); font-size: .9rem; font-weight: 500; margin-bottom: 2px;
}
.admin-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.admin-nav a.on { background: var(--red); color: #fff; }
.admin-nav a .ic { width: 20px; text-align: center; }
.admin-side .as-foot { padding: 14px 18px; border-top: 1px solid rgba(255,255,255,.09); font-size: .78rem; }
.admin-side .as-foot a { color: var(--gold); }

.admin-scrim { position: fixed; inset: 0; background: rgba(22,19,17,.5); z-index: 1900; display: none; }
.admin-scrim.open { display: block; }

.admin-main { flex: 1; min-width: 0; }
.admin-top {
    background: #fff; border-bottom: 1px solid var(--line); padding: 0 16px;
    min-height: 58px; display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 850;
}
.admin-top h1 { font-size: 1.15rem; margin: 0; flex: 1; }
.burger { background: none; border: 1px solid var(--line); border-radius: var(--r); width: 40px; height: 40px; font-size: 1.1rem; cursor: pointer; }
.admin-user { font-size: .8rem; color: var(--muted); text-align: right; }
.admin-user b { display: block; color: var(--black); }
.admin-content { padding: 18px 16px 40px; }

@media (min-width: 992px) {
    .admin-side { position: sticky; top: 0; height: 100vh; transform: none; }
    .burger { display: none; }
    .admin-content { padding: 24px 28px 48px; }
}

/* stat cards */
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 992px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--r);
    padding: 16px; border-top: 0px solid var(--black);
}
.stat-card.c-red { border-top-color: var(--red); }
.stat-card.c-gold { border-top-color: var(--gold); }
.stat-card.c-ok { border-top-color: var(--ok); }
.stat-card .sc-num { font-family: var(--font-display); font-size: 1.9rem; font-weight: 800; color: var(--black); line-height: 1; }
.stat-card .sc-lbl { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 6px; font-weight: 700; }

/* CSS bar charts */
.bar-list { display: flex; flex-direction: column; gap: 9px; }
.bar-item { font-size: .8rem; }
.bar-item .bi-top { display: flex; justify-content: space-between; margin-bottom: 3px; }
.bar-item .bi-track { height: 9px; background: #EFEAE0; border-radius: 0; overflow: hidden; }
.bar-item .bi-fill { height: 100%; background: var(--red); }
.bar-item:nth-child(even) .bi-fill { background: var(--black); }

.spark { display: flex; align-items: flex-end; gap: 3px; height: 90px; }
.spark .sp-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.spark .sp-bar { width: 100%; background: var(--red); min-height: 2px; }
.spark .sp-lbl { font-size: .58rem; color: var(--muted); white-space: nowrap; }

/* data tables (mobile-first cards -> table) */
.dt-wrap { overflow-x: auto; }
.dt { width: 100%; border-collapse: collapse; font-size: .86rem; background: #fff; }
.dt th {
    text-align: left; padding: 10px 12px; background: var(--black); color: #fff;
    font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
}
.dt td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.dt tbody tr:hover { background: var(--paper); cursor: pointer; }

/* pagination - required on all lists */
.pager { display: flex; gap: 6px; align-items: center; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.pager button {
    min-width: 36px; height: 36px; border: 1px solid var(--line); background: #fff;
    border-radius: var(--r); font-size: .84rem; cursor: pointer; padding: 0 10px;
}
.pager button.on { background: var(--red); border-color: var(--red); color: #fff; font-weight: 700; }
.pager button:disabled { opacity: .4; cursor: default; }
.pager .pinfo { font-size: .78rem; color: var(--muted); width: 100%; text-align: center; margin-top: 4px; }
@media (min-width: 720px) { .pager .pinfo { width: auto; margin: 0 8px 0 0; } }

/* filter bar */
.filter-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
@media (min-width: 992px) { .filter-bar { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; } }

/* empty state */
.empty { text-align: center; padding: 42px 16px; color: var(--muted); }
.empty .e-ic { font-size: 2rem; margin-bottom: 8px; }

/* auth screens */
.auth-wrap { min-height: 100vh; display: flex; flex-direction: column; }
.auth-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 28px 16px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card .card-body { padding: 26px 22px; }
.auth-crest { text-align: center; margin-bottom: 14px; }
.auth-crest img { height: 74px; }

/* landing */
.hero {
    background: var(--black); color: #EDE7DC; position: relative; overflow: hidden;
    padding: 52px 0 58px;
}
.hero::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 1px, transparent 1px 10px),
                      repeating-linear-gradient(45deg, rgba(201,151,59,.05) 0 1px, transparent 1px 14px);
}
.hero .wrap { position: relative; z-index: 1; }
.hero .eyebrow { color: var(--gold); font-size: .72rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 12px; }
.hero h1 { color: #fff; font-size: 2.1rem; font-weight: 700; max-width: 640px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p { max-width: 520px; color: #C9C2B6; font-size: .98rem; }
.hero-cta { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
@media (min-width: 768px) { .hero h1 { font-size: 2.9rem; } .hero { padding: 76px 0 84px; } }

.land-grid { display: grid; gap: 14px; grid-template-columns: 1fr; margin: -30px 0 40px; position: relative; z-index: 2; }
@media (min-width: 768px) { .land-grid { grid-template-columns: repeat(3, 1fr); } }
.land-card { background: #fff; border: 1px solid var(--line); border-top: 0px solid var(--red); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); }
.land-card:nth-child(2) { border-top-color: var(--black); }
.land-card:nth-child(3) { border-top-color: var(--gold); }
.land-card .lc-step { font-family: var(--font-display); font-size: .8rem; font-weight: 700; color: var(--muted); letter-spacing: .1em; }
.land-card h3 { font-size: 1.05rem; margin: 4px 0 6px; }
.land-card p { font-size: .86rem; color: var(--muted); margin: 0; }

.footer { background: var(--black); color: #A79F92; padding: 26px 0; font-size: .8rem; margin-top: auto; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; }
.footer b { color: var(--gold); font-family: var(--font-display); }

/* utility */
.mt-2x { margin-top: 18px; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 0 16px; }
.grid-2 > * { min-width: 0; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

/* Grid/flex children default to min-width:auto, which refuses to shrink below their
   content's intrinsic width. On narrow screens that lets long <select> option text and
   <textarea> intrinsic width push cards past the viewport. Clamp the common containers. */
.card-ala { min-width: 0; }
.card-ala .card-body { min-width: 0; }
.filter-bar > * { min-width: 0; }
.inline-fields > * { min-width: 0; }
.form-select { max-width: 100%; }
select.form-select option { max-width: 100%; }
.txt-muted { color: var(--muted); }
.d-none-i { display: none !important; }

/* ============ uppercase name/text inputs ============ */
/* Visual only. app.js also uppercases the actual .value on input so the posted
   data is stored uppercase (CSS text-transform never changes the submitted value). */
.uc { text-transform: uppercase; }
input.uc::placeholder { text-transform: none; }

/* ============ password visibility toggle ============ */
.pwd-wrap { position: relative; }
.pwd-wrap .form-control { padding-right: 44px; }
.pwd-eye {
    position: absolute; top: 0; right: 0; height: 100%; width: 42px;
    display: flex; align-items: center; justify-content: center;
    background: transparent; border: 0; cursor: pointer; color: var(--muted); padding: 0;
}
.pwd-eye:hover { color: var(--black); }
.pwd-eye svg { width: 19px; height: 19px; display: block; }
.pwd-eye .i-off { display: none; }
.pwd-eye.showing .i-on { display: none; }
.pwd-eye.showing .i-off { display: block; }

/* ============ back-to-home link ============ */
.back-home {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: .82rem; font-weight: 700; color: var(--muted); text-decoration: none;
    padding: 7px 12px; border: 1px solid var(--line); border-radius: var(--r); background: #fff;
}
.back-home:hover { color: var(--red-deep); border-color: var(--red); }

/* ============================================================
   PREVENT MOBILE INPUT ZOOM (iOS Safari / Android Chrome)
   Root cause: iOS Safari force-zooms the viewport when a focused
   form control has a computed font-size < 16px. Our controls use
   .95rem (~15.2px) on desktop, which trips this. Raising every
   focusable control to 16px on small screens stops the zoom while
   keeping the tighter desktop sizing. 16px is the exact iOS
   threshold; anything >=16px is safe.
   ============================================================ */
@media (max-width: 768px) {
    .form-control,
    .form-select,
    textarea.form-control,
    input[type="text"],
    input[type="tel"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    input[type="search"],
    input[type="url"],
    input[type="date"],
    input[type="time"],
    input[type="datetime-local"],
    select,
    textarea {
        font-size: 16px !important;
        /* iOS also zooms if the line-height makes the box feel < 16px in some
           engines; keep a comfortable line-height so the 16px is respected. */
        line-height: 1.35;
    }
}
