/* SKNAU Unit Head portal — shared style for login / forgot password / reset password */
:root {
    --navy: #003366; --navy-2: #0a4a85; --navy-deep: #00203f;
    --gold: #d9a600; --gold-soft: #ffd966;
    --ink: #1b2533; --muted: #5b6675; --line: #d5dce5; --surface: #ffffff; --bg: #f3f6fa;
    --danger: #b3261e; --danger-bg: #fdecea;
    --radius: 12px;
    --ring: 0 0 0 3px rgba(217, 166, 0, 0.45);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
    font-family: 'Atkinson Hyperlegible', system-ui, sans-serif; color: var(--ink); background: var(--bg);
    min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}

/* ── Brand panel ── */
.brand {
    position: relative; overflow: hidden; color: #fff; padding: 48px 56px;
    display: flex; flex-direction: column; justify-content: space-between;
    background:
        radial-gradient(1200px 600px at -10% 110%, rgba(217,166,0,0.28), transparent 60%),
        radial-gradient(900px 500px at 110% -10%, rgba(255,255,255,0.10), transparent 55%),
        linear-gradient(150deg, var(--navy) 0%, var(--navy-deep) 100%);
}
.brand::after {                 /* faint grid texture */
    content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.07;
    background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(160deg, #000 20%, transparent 75%);
}
.brand > * { position: relative; z-index: 1; }
.brand-top { display: flex; align-items: center; gap: 16px; }
.brand-top img { width: 64px; height: 64px; object-fit: contain; background: #fff; border-radius: 50%; padding: 4px; }
.brand-top .hi { font-family: 'Tiro Devanagari Hindi', serif; font-size: 1.05rem; color: var(--gold-soft); line-height: 1.3; }
.brand-top .en { font-weight: 700; font-size: 1.02rem; letter-spacing: 0.2px; line-height: 1.3; }
.brand-mid h1 { font-size: clamp(2rem, 3.2vw, 2.8rem); line-height: 1.15; margin: 0 0 14px; letter-spacing: -0.3px; }
.brand-mid h1 span { color: var(--gold); }
.brand-mid p { margin: 0; max-width: 460px; font-size: 1.05rem; line-height: 1.6; color: rgba(255,255,255,0.82); }
.features { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 12px; max-width: 460px; }
.features li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 10px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.10); font-size: 0.98rem; }
.features i { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: rgba(217,166,0,0.18); color: var(--gold-soft); flex-shrink: 0; }
.brand-foot { font-size: 0.85rem; color: rgba(255,255,255,0.6); }

/* ── Form side ── */
.panel { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.card { width: 100%; max-width: 420px; }
.card-logo { display: none; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--navy); background: #e7eef7; padding: 6px 12px; border-radius: 999px; }
.card h2 { font-size: 1.85rem; margin: 16px 0 6px; color: var(--navy); letter-spacing: -0.2px; }
.card .sub { margin: 0 0 28px; color: var(--muted); font-size: 1rem; line-height: 1.5; }

.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: var(--danger-bg); color: var(--danger); border: 1px solid #f5c2bd; margin-bottom: 20px; font-size: 0.95rem; line-height: 1.45; }
.alert i { margin-top: 3px; }

.field { margin-bottom: 18px; }
.field-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
label { font-weight: 700; font-size: 0.95rem; color: var(--ink); }
.control { position: relative; }
.control > i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #8591a0; pointer-events: none; transition: color .2s; }
.input {
    width: 100%; height: 50px; padding: 0 48px 0 44px; font: inherit; font-size: 1rem; color: var(--ink);
    background: var(--surface); border: 1.5px solid var(--line); border-radius: 10px; outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.input::placeholder { color: #98a2b0; }
.input:hover { border-color: #b7c2cf; }
.input:focus { border-color: var(--navy); box-shadow: var(--ring); }
.control:focus-within > i { color: var(--navy); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.toggle-pw {
    position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; background: none;
    color: #6b7684; border-radius: 8px; cursor: pointer; display: grid; place-items: center; font-size: 1rem;
}
.toggle-pw:hover { color: var(--navy); background: #eef2f7; }
.toggle-pw:focus-visible { outline: none; box-shadow: var(--ring); }
.hint { margin-top: 7px; font-size: 0.85rem; color: #8a5a00; display: none; align-items: center; gap: 6px; }
.hint.show { display: flex; }
.link { color: var(--navy); font-weight: 700; font-size: 0.9rem; text-decoration: none; border-radius: 4px; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.link:focus-visible, .back:focus-visible { outline: none; box-shadow: var(--ring); }

.btn {
    width: 100%; height: 52px; margin-top: 8px; border: 0; border-radius: 10px; cursor: pointer;
    font: inherit; font-size: 1.05rem; font-weight: 700; color: #fff; background: var(--navy);
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    box-shadow: 0 8px 20px rgba(0,51,102,0.22); transition: background-color .2s, box-shadow .2s, transform .15s;
    touch-action: manipulation;
}
.btn:hover { background: var(--navy-2); box-shadow: 0 10px 24px rgba(0,51,102,0.28); }
.btn:active { transform: scale(0.985); }
.btn:focus-visible { outline: none; box-shadow: var(--ring), 0 8px 20px rgba(0,51,102,0.22); }
.btn[disabled] { cursor: progress; opacity: 0.85; }
.btn .spin { display: none; width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,0.35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.btn.loading .spin { display: inline-block; }
.btn.loading .arrow { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.meta { margin-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 0.9rem; color: var(--muted); }
.back { color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; border-radius: 4px; }
.back:hover { color: var(--navy); }
.secure { display: inline-flex; align-items: center; gap: 6px; }
.secure i { color: #2e7d32; }

/* Entrance: hidden only while the motion script runs (see <head>) */
.motion .reveal { opacity: 0; }

/* ── Tablet / phone: brand becomes a compact header ── */
@media (max-width: 900px) {
    body { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
    .brand { padding: 22px 20px 26px; }
    .brand-mid, .brand-foot { display: none; }
    .brand-top img { width: 52px; height: 52px; }
    .panel { align-items: flex-start; padding: 28px 20px 40px; }
    .card h2 { font-size: 1.6rem; }
}
@media (max-width: 380px) { .brand-top .hi { font-size: 0.92rem; } .brand-top .en { font-size: 0.9rem; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation-duration: 0.01ms !important; } }

/* ── Shared extras for the password-reset pages ── */
.alert.success { background: #e8f5ec; color: #1e6b34; border-color: #b9e0c4; }
.alert.info { background: #eaf2fb; color: #0b4a86; border-color: #c4dbf3; }
.done-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 1.7rem; margin-bottom: 6px; }
.done-icon.ok { background: #e8f5ec; color: #1e6b34; }
.done-icon.bad { background: var(--danger-bg); color: var(--danger); }
.btn.secondary { background: #fff; color: var(--navy); border: 1.5px solid var(--navy); box-shadow: none; }
.btn.secondary:hover { background: #eef3f9; }
a.btn { text-decoration: none; }
.steps { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 12px; max-width: 460px; counter-reset: s; }
.steps li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 10px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.10); font-size: 0.98rem; }
.steps li::before { counter-increment: s; content: counter(s); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(217,166,0,0.2); color: var(--gold-soft); font-weight: 700; flex-shrink: 0; }
.rules { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; font-size: 0.85rem; color: var(--muted); }
.rules li { display: flex; align-items: center; gap: 7px; }
.rules li i { width: 14px; color: #a3adba; }
.rules li.ok { color: #1e6b34; }
.rules li.ok i { color: #2e7d32; }
.meter { height: 6px; border-radius: 3px; background: #e3e8ef; margin-top: 10px; overflow: hidden; }
.meter span { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--danger); transition: width .25s, background-color .25s; }
.field-error { margin-top: 7px; font-size: 0.85rem; color: var(--danger); display: none; align-items: center; gap: 6px; }
.field-error.show { display: flex; }
@media (max-width: 420px) { .rules { grid-template-columns: 1fr; } }

/* "Coming Soon" tag on brand-panel feature rows */
.soon-badge { margin-left: auto; flex-shrink: 0; align-self: center; white-space: nowrap; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase;
              color: #002244; background: var(--gold); padding: 3px 9px; border-radius: 999px; }
