/* Staff Radar customer portal - redesigned 2026-10-12 ("make it eye-catching, it puts a huge impression").
   A deep-teal brand band with the radar motif carries the identity; everything below it is calm white
   cards so the data reads easily on a phone. Light + dark, phone-first. */
:root {
    --brand-900: #042F2C;
    --brand-800: #064E47;
    --brand-700: #0F766E;
    --brand-500: #14B8A6;
    --brand-300: #5EEAD4;
    --brand-100: #CCFBF1;
    --brand-50: #F0FDFA;
    --amber: #F59E0B;

    --accent: #0F766E;
    --accent-dark: #115E59;
    --accent-50: #F0FDFA;
    --ink: #0B1F2A;
    --ink-soft: #334155;
    --muted: #64748B;
    --border: #E3E9EE;
    --surface: #FFFFFF;
    --surface-2: #F7FAFA;
    --bg: #EEF3F3;
    --ok: #15803D;
    --ok-bg: #DCFCE7;
    --bad: #B91C1C;
    --bad-bg: #FEE2E2;
    --info: #0369A1;
    --info-bg: #E0F2FE;
    --warn: #B45309;
    --warn-bg: #FEF3C7;
    --shadow-sm: 0 1px 2px rgba(11, 31, 42, .06);
    --shadow: 0 10px 30px -12px rgba(11, 31, 42, .18), 0 2px 6px rgba(11, 31, 42, .05);
    --radius: 18px;
}
@media (prefers-color-scheme: dark) {
    :root {
        --accent: #2DD4BF; --accent-dark: #5EEAD4; --accent-50: #0F2E2B;
        --ink: #E6EEF2; --ink-soft: #CBD5E1; --muted: #94A3B8; --border: #22333D;
        --surface: #12202A; --surface-2: #172833; --bg: #0A141B;
        --ok: #4ADE80; --ok-bg: #0B3B22; --bad: #F87171; --bad-bg: #4A1414;
        --info: #38BDF8; --info-bg: #0B3048; --warn: #FBBF24; --warn-bg: #43300A;
        --shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
    }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: Inter, "Noto Sans Devanagari", system-ui, sans-serif; font-size: 15px; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
h2 { font-size: 17px; margin: 0 0 12px; letter-spacing: -.01em; }
h3 { font-size: 13px; margin: 16px 0 8px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.muted { color: var(--muted); font-size: 13px; margin: 2px 0; }
.warn { color: var(--warn); }
.ok-text { color: var(--ok); }
.icon { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Brand band (shell header) ---------- */
.portal-shell { min-height: 100vh; padding-bottom: 84px; }
.hero {
    position: relative; overflow: hidden; color: #fff;
    background: radial-gradient(120% 140% at 100% 0%, #0E8F84 0%, var(--brand-800) 45%, var(--brand-900) 100%);
    padding: 14px 16px 64px;
}
.hero::before, .hero::after {
    content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .10); pointer-events: none;
}
.hero::before { width: 420px; height: 420px; right: -150px; top: -190px; box-shadow: 0 0 0 60px rgba(255,255,255,.03), 0 0 0 120px rgba(255,255,255,.02); }
.hero::after { width: 160px; height: 160px; right: -20px; top: -60px; }
.hero-top { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; max-width: 880px; margin: 0 auto; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.14); display: grid; place-items: center; backdrop-filter: blur(6px); }
.brand-mark img { width: 22px; height: 22px; }
.hero-brand { font-weight: 800; letter-spacing: -.01em; flex: 1; font-size: 14px; opacity: .92; }
.hero-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.08); color: #fff; border-radius: 999px; padding: 7px 12px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; min-height: 36px; }
.hero-btn:hover { background: rgba(255,255,255,.16); }
.hero-btn .icon { width: 15px; height: 15px; }
.hero form { margin: 0; }
.hero-body { position: relative; z-index: 1; max-width: 880px; margin: 18px auto 0; }
.hero-hello { font-size: 13px; color: var(--brand-100); opacity: .9; }
.hero-client { font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin: 2px 0 2px; line-height: 1.2; }
.hero-agency { font-size: 13px; color: rgba(255,255,255,.72); display: flex; align-items: center; gap: 6px; }
.hero-agency .icon { width: 14px; height: 14px; color: var(--brand-300); }

.portal-main { position: relative; z-index: 2; max-width: 880px; margin: -44px auto 0; padding: 0 14px 16px; }

/* Bottom tab bar (phone) / pill tabs (desktop) */
.portal-tabs { position: fixed; left: 10px; right: 10px; bottom: 10px; display: flex; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow); z-index: 20; padding: 6px; }
.portal-tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 2px; font-size: 11px; font-weight: 600; color: var(--muted); text-decoration: none; border-radius: 14px; min-height: 52px; justify-content: center; }
.portal-tabs a .icon { width: 20px; height: 20px; }
.portal-tabs a.active { color: var(--accent-dark); background: var(--accent-50); }
@media (min-width: 900px) {
    .portal-shell { padding-bottom: 24px; }
    .portal-tabs { position: static; max-width: 880px; margin: 0 auto 16px; border-radius: 16px; box-shadow: var(--shadow); }
    .portal-tabs a { flex-direction: row; gap: 8px; font-size: 14px; min-height: 44px; }
    .portal-tabs a .icon { width: 18px; height: 18px; }
    .tabs-wrap { position: relative; z-index: 3; margin-top: -40px; padding: 0 14px; }
    .portal-main { margin-top: 0; max-width: 908px; }
    .hero { padding-bottom: 60px; }
}

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; box-shadow: var(--shadow-sm); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.card-head h2 { margin: 0; }
.card-head .count { font-size: 12px; font-weight: 700; color: var(--accent-dark); background: var(--accent-50); border-radius: 999px; padding: 3px 10px; }

/* Stat tiles (Today) */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 14px 12px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.stat .n { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.stat .l { font-size: 12px; color: var(--muted); margin-top: 6px; font-weight: 600; }
.stat::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--border); }
.stat.ok::after { background: #22C55E; } .stat.ok .n { color: var(--ok); }
.stat.bad::after { background: #EF4444; } .stat.bad .n { color: var(--bad); }
.stat.info::after { background: #0EA5E9; } .stat.info .n { color: var(--info); }
.stat.wait::after { background: var(--amber); } .stat.wait .n { color: var(--warn); }
@media (max-width: 520px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Live dot */
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--ok); }
.live i { width: 8px; height: 8px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: livepulse 2s ease-out infinite; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.55); } 100% { box-shadow: 0 0 0 9px rgba(34,197,94,0); } }
@media (prefers-reduced-motion: reduce) { .live i { animation: none; } }

/* Site group + guard rows */
.site-name { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; margin: 16px 0 6px; color: var(--ink-soft); }
.site-name:first-of-type { margin-top: 4px; }
.site-name .icon { width: 16px; height: 16px; color: var(--accent); }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); width: 100%; }
.row:last-child { border-bottom: none; }
.row-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.row-btn { background: none; border: none; border-bottom: 1px solid var(--border); font: inherit; color: inherit; text-align: left; cursor: pointer; }
.row-btn:hover .row-title { color: var(--accent-dark); }
.row-title { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 14px; flex-shrink: 0; background: var(--surface-2); color: var(--ink-soft); border: 1px solid var(--border); }
.avatar.ok { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.avatar.bad { background: var(--bad-bg); color: var(--bad); border-color: transparent; }
.avatar.info { background: var(--info-bg); color: var(--info); border-color: transparent; }
.avatar.wait { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-soft); white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .8; }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.pill.info { background: var(--info-bg); color: var(--info); }
.pill.wait { background: var(--warn-bg); color: var(--warn); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Visits timeline */
.timeline { position: relative; margin: 4px 0 0; padding-left: 22px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--border); border-radius: 2px; }
.tl-item { position: relative; padding: 4px 0 14px; }
.tl-item::before { content: ""; position: absolute; left: -20px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 3px solid var(--brand-500); }
.tl-item.night::before { border-color: #6366F1; }
.tl-title { font-weight: 650; font-size: 14px; }
.tl-meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--ink-soft); }
.tag.night { background: #EEF2FF; color: #4338CA; }
@media (prefers-color-scheme: dark) { .tag.night { background: #1E1B4B; color: #A5B4FC; } }

/* Empty state */
.empty { text-align: center; padding: 22px 8px; color: var(--muted); }
.empty .icon { width: 34px; height: 34px; color: var(--brand-500); margin-bottom: 6px; }

/* ---------- Forms ---------- */
label { display: block; font-weight: 600; font-size: 13px; color: var(--ink-soft); margin: 10px 0; }
input, select, textarea { display: block; width: 100%; margin-top: 6px; padding: 11px 13px; border: 1.5px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; font-weight: 400; min-height: 46px; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 4px rgba(20, 184, 166, .15); }
textarea { min-height: 80px; }
.filters { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }
@media (max-width: 520px) { .filters { grid-template-columns: 1fr; } }
.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: none; border-radius: 14px; background: linear-gradient(180deg, #13998C, var(--brand-700)); color: #fff; font: inherit; font-weight: 700; padding: 13px 20px; min-height: 50px; cursor: pointer; text-decoration: none; margin-top: 10px; box-shadow: 0 8px 18px -8px rgba(15, 118, 110, .7); transition: transform .08s, box-shadow .15s; }
.btn-primary:hover { box-shadow: 0 10px 22px -8px rgba(15, 118, 110, .85); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled { opacity: .6; cursor: default; }
.btn-primary .icon { width: 18px; height: 18px; }
.btn-small { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--border); background: var(--surface); color: var(--accent-dark); border-radius: 12px; padding: 8px 13px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; text-decoration: none; min-height: 40px; }
.btn-small:hover { border-color: var(--brand-500); background: var(--accent-50); }
.btn-small .icon { width: 16px; height: 16px; }
.btn-small.wa { color: #128C7E; }
.link { background: none; border: none; color: var(--accent); font: inherit; font-weight: 600; padding: 0; margin-bottom: 8px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.link:disabled { color: var(--muted); cursor: default; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.chip { border: 1.5px solid var(--border); background: var(--surface); color: var(--ink-soft); border-radius: 999px; padding: 9px 15px; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; min-height: 42px; transition: all .12s; }
.chip:hover { border-color: var(--brand-500); }
.chip.on { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
.photos { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.photos img { width: 96px; height: 96px; object-fit: cover; border-radius: 12px; border: 1px solid var(--border); }
.msg { background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px 14px 14px 4px; padding: 10px 13px; margin: 8px 0; max-width: 88%; }
.msg.mine { background: var(--accent-50); border-color: transparent; border-radius: 14px 14px 4px 14px; margin-left: auto; }
.stars { display: flex; gap: 4px; }
.star { font-size: 30px; background: none; border: none; color: var(--border); cursor: pointer; min-width: 44px; min-height: 44px; transition: transform .1s; }
.star:hover { transform: scale(1.12); }
.star.on { color: var(--amber); }

/* Month stepper (Attendance) */
.month-step { display: inline-flex; align-items: stretch; border: 1.5px solid var(--border); border-radius: 12px; background: var(--surface); height: 46px; }
.month-step button { border: none; background: none; width: 42px; display: grid; place-items: center; color: var(--ink-soft); cursor: pointer; border-radius: 12px; }
.month-step button:hover:not(:disabled) { background: var(--accent-50); color: var(--accent-dark); }
.month-step button:disabled { opacity: .3; cursor: default; }
.month-step span { display: flex; align-items: center; padding: 0 12px; font-weight: 700; min-width: 140px; justify-content: center; border-left: 1px solid var(--border); border-right: 1px solid var(--border); }

/* Attendance register */
.legend { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 4px; font-size: 12.5px; color: var(--muted); }
.legend b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; font-size: 11px; margin-right: 4px; }
.register-wrap { overflow-x: auto; margin-top: 10px; border: 1px solid var(--border); border-radius: 14px; }
.register { border-collapse: separate; border-spacing: 0; font-size: 12px; width: 100%; }
.register th { background: var(--surface-2); color: var(--muted); font-weight: 700; padding: 8px 4px; position: sticky; top: 0; }
.register th, .register td { border-bottom: 1px solid var(--border); text-align: center; min-width: 30px; }
.register td { padding: 5px 3px; }
.register td span { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; font-weight: 800; font-size: 11px; }
.register .name { text-align: left; white-space: nowrap; position: sticky; left: 0; background: var(--surface); min-width: 130px; padding: 8px 12px; font-weight: 650; z-index: 1; border-right: 1px solid var(--border); }
.register th.name { background: var(--surface-2); z-index: 2; }
.register tr:last-child td { border-bottom: none; }
.c-P { background: var(--ok-bg); color: var(--ok); }
.c-H { background: var(--info-bg); color: var(--info); }
.c-L { background: var(--warn-bg); color: var(--warn); }
.c-A { background: var(--bad-bg); color: var(--bad); }
.register td.total { font-weight: 800; color: var(--ink); padding-right: 12px; }

/* Invoices */
.inv { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.inv:last-child { border-bottom: none; }
.inv-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-50); color: var(--accent-dark); display: grid; place-items: center; flex-shrink: 0; }
.inv-main { flex: 1; min-width: 0; }
.inv-amt { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.inv-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* Contacts */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.person { border: 1px solid var(--border); border-radius: 16px; padding: 16px; background: var(--surface-2); display: flex; flex-direction: column; gap: 12px; }
.person-top { display: flex; align-items: center; gap: 12px; }
.person .avatar { width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(135deg, var(--brand-500), var(--brand-800)); color: #fff; border: none; font-size: 16px; }
.person-role { font-size: 12.5px; color: var(--muted); }
.person .actions .btn-small { flex: 1; justify-content: center; }

/* ---------- Sign-in pages ---------- */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; background: var(--bg); }
.auth-side {
    position: relative; overflow: hidden; color: #fff; padding: 48px 56px; display: flex; flex-direction: column; justify-content: space-between;
    background: radial-gradient(120% 120% at 0% 0%, #109E91 0%, var(--brand-800) 42%, var(--brand-900) 100%);
}
.radar { position: absolute; right: -180px; bottom: -180px; width: 620px; height: 620px; border-radius: 50%; pointer-events: none;
    background: repeating-radial-gradient(circle, rgba(255,255,255,.09) 0 1px, transparent 1px 62px); }
.radar::after { content: ""; position: absolute; inset: 0; border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(94, 234, 212, .28), rgba(94, 234, 212, 0) 22%); animation: sweep 7s linear infinite; }
@keyframes sweep { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .radar::after { animation: none; } }
.blip { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--brand-300); box-shadow: 0 0 14px 4px rgba(94,234,212,.55); }
.auth-logo { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
.auth-logo .brand-mark { width: 40px; height: 40px; border-radius: 12px; }
.auth-pitch { position: relative; z-index: 1; max-width: 460px; }
.auth-pitch h1 { font-size: 42px; line-height: 1.08; letter-spacing: -.03em; margin: 0 0 10px; }
.auth-pitch h1 em { font-style: normal; color: var(--brand-300); }
.auth-pitch .hi { font-size: 17px; color: rgba(255,255,255,.75); margin: 0 0 26px; }
.feature { display: flex; align-items: center; gap: 12px; margin: 12px 0; font-size: 15px; color: rgba(255,255,255,.9); }
.feature .fi { width: 38px; height: 38px; border-radius: 11px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); display: grid; place-items: center; flex-shrink: 0; }
.feature .fi .icon { width: 18px; height: 18px; color: var(--brand-300); }
.auth-foot { position: relative; z-index: 1; font-size: 12.5px; color: rgba(255,255,255,.55); }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 32px 20px; }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 30px; box-shadow: var(--shadow); }
.steps { display: flex; gap: 6px; margin-bottom: 20px; }
.steps i { flex: 1; height: 5px; border-radius: 5px; background: var(--border); }
.steps i.on { background: linear-gradient(90deg, var(--brand-500), var(--brand-700)); }
.auth-title { font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 6px; }
.auth-sub { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 0 0 6px; }
.auth-error { display: flex; gap: 8px; align-items: flex-start; background: var(--bad-bg); color: var(--bad); border-radius: 12px; padding: 11px 13px; margin: 12px 0; font-size: 13.5px; font-weight: 500; }
.auth-info { background: var(--accent-50); color: var(--accent-dark); border-radius: 12px; padding: 11px 13px; margin: 12px 0; font-size: 13.5px; font-weight: 500; }
.auth-card .btn-primary { width: 100%; }
.form-row { margin: 16px 0 6px; }
.form-row label { margin: 0 0 6px; }
.phone-box { display: flex; align-items: center; border: 1.5px solid var(--border); border-radius: 14px; background: var(--surface); height: 58px; transition: border-color .15s, box-shadow .15s; }
.phone-box:focus-within { border-color: var(--brand-500); box-shadow: 0 0 0 4px rgba(20, 184, 166, .15); }
.phone-box span { padding: 0 12px 0 16px; color: var(--ink-soft); font-weight: 700; font-size: 18px; border-right: 1.5px solid var(--border); }
.phone-box input { border: none; box-shadow: none !important; margin: 0; flex: 1; min-width: 0; font-size: 21px; font-weight: 600; letter-spacing: 1.5px; background: transparent; height: 100%; }
.otp-boxes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 8px; }
.otp-boxes input { margin: 0; text-align: center; font-size: 24px; font-weight: 800; height: 58px; padding: 0; border-radius: 14px; }
.otp-boxes input:not(:placeholder-shown) { border-color: var(--brand-500); background: var(--accent-50); }
.otp-wait { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.otp-wait[hidden] { display: none; }
.otp-wait-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-500); animation: otp-pulse 1.4s ease-in-out infinite; }
@keyframes otp-pulse { 0%, 100% { opacity: .3; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .otp-wait-dot { animation: none; } }
.account-btn { width: 100%; display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--border); background: var(--surface); color: var(--ink); border-radius: 14px; padding: 13px 14px; font: inherit; cursor: pointer; margin-top: 10px; text-align: left; transition: border-color .12s; }
.account-btn:hover { border-color: var(--brand-500); background: var(--accent-50); }
.account-btn strong { display: block; }
.account-btn small { color: var(--muted); }
.account-btn .avatar { background: linear-gradient(135deg, var(--brand-500), var(--brand-800)); color: #fff; border: none; }
.auth-links { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 16px; font-size: 13.5px; }
.auth-links form { margin: 0; }
.auth-help { margin-top: 20px; padding: 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border); font-size: 13.5px; color: var(--ink-soft); }
.auth-help.strong { background: var(--warn-bg); border-color: transparent; color: var(--ink); }
.auth-help .help-title { font-weight: 700; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.auth-help .actions .btn-small { flex: 1; justify-content: center; }
.auth-mobile-brand { display: none; }
@media (max-width: 900px) {
    .auth-page { grid-template-columns: 1fr; }
    .auth-side { padding: 22px 20px 72px; min-height: auto; }
    .auth-side .feature, .auth-foot { display: none; }
    .auth-pitch { margin-top: 26px; }
    .auth-pitch h1 { font-size: 30px; }
    .auth-pitch .hi { margin-bottom: 0; font-size: 15px; }
    .radar { width: 420px; height: 420px; right: -170px; bottom: -220px; }
    .auth-main { margin-top: -56px; padding: 0 14px 28px; align-items: flex-start; position: relative; z-index: 2; }
    .auth-card { padding: 24px 20px; }
}
input[type=file] { padding: 8px; cursor: pointer; }
input[type=file]::file-selector-button { border: none; border-radius: 10px; background: var(--accent-50); color: var(--accent-dark); font: inherit; font-weight: 700; padding: 8px 14px; margin-right: 10px; cursor: pointer; }

/* Brand: "Staff Radar" + an italic desi word + the tricolour (Brand.cs, 2026-10-13). */
.brand-word { font-family: "Playfair Display", Georgia, "Times New Roman", serif; font-style: italic; font-weight: 600; letter-spacing: .01em; color: var(--brand-300); }
.in-flag { width: 18px; height: 12px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.15); vertical-align: -1px; display: inline-block; flex-shrink: 0; }
.auth-logo { flex-wrap: wrap; }
.auth-logo .brand-word { font-size: 1.08em; }
.made-in-india { display: inline-flex; align-items: center; gap: 7px; margin-left: 6px; padding: 4px 10px 4px 7px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); font-size: 12px; font-weight: 600; color: rgba(255,255,255,.92); }
.made-in-india .in-flag { width: 20px; height: 13px; }
.hero-brand { display: inline-flex; align-items: center; gap: 6px; }
.hero-brand .in-flag { width: 16px; height: 11px; }

/* Customer sign-in: "Your information is safe" (true points only - 2026-10-13). */
.auth-trust { position: relative; z-index: 1; max-width: 460px; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); }
.auth-trust-title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.auth-trust-title svg { width: 17px; height: 17px; color: var(--brand-300); }
.auth-trust-row { display: flex; align-items: center; gap: 10px; font-size: 13px; color: rgba(255,255,255,.85); padding: 3px 0; }
.auth-trust-row > svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--brand-300); }
.auth-trust-row > svg.in-flag { width: 18px; height: 12px; }
@media (max-width: 900px) { .auth-trust { display: none; } }
.auth-main .auth-trust-mobile { display: none; }
@media (max-width: 900px) {
    .auth-trust-mobile { display: flex !important; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin-top: 16px; font-size: 12px; color: var(--muted); }
    .auth-trust-mobile span { display: inline-flex; align-items: center; gap: 5px; }
    .auth-trust-mobile svg { width: 13px; height: 13px; }
    .auth-trust-mobile svg.in-flag { width: 16px; height: 11px; }
}

/* Tech support footer on the login page (2026-10-13). */
.tech-footer { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 10px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.tech-footer b { color: var(--ink); }
.tech-btn { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--border); background: var(--surface); color: var(--ink); font-weight: 700; font-size: 12.5px; text-decoration: none; }
.tech-btn.wa { background: #1FA855; border-color: #1FA855; color: #fff; }
/* Portal sign-in: the card and the tech-support footer stack, footer under the card. */
.auth-main { flex-direction: column; }
.auth-main .tech-footer { width: 100%; max-width: 420px; border-top: none; margin-top: 14px; padding-top: 0; }
