/* ipgov-design-system-v4 — premium navy / blue / coral */
:root {
    --bg: #F5F8FC;
    --navy: #073B57;
    --navy-deep: #062D46;
    --blue: #1677FF;
    --blue-pro: #0877B9;
    --coral: #FF5148;
    --coral-dark: #E84840;
    --cyan: #38BDF8;
    --emerald: #16A36B;
    --ink: #102A43;
    --muted: #52647A;
    --line: #E2EAF2;
    --card: #ffffff;
    --danger: #B91C1C;
    --shadow: 0 16px 40px rgba(7, 59, 87, .08);
    --space: 8px;
    --wrap: 1280px;
    --radius: 14px;
    font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif; line-height: 1.6; font-size: 16px; }
a { color: inherit; }
img { max-width: 100%; }
svg { max-width: 100%; height: auto; }
.auth-input__icon svg,
.auth-feature-icon svg,
.auth-google svg,
.ipgov-pager svg,
.pager svg,
.pagination svg {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
}
button, input, select, textarea { font: inherit; }
.wrap { width: min(var(--wrap), calc(100% - 48px)); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .92); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.logo { font-weight: 700; letter-spacing: .14em; text-decoration: none; color: var(--navy); }
.nav-toggle { display: none; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 12px; }
.site-nav { display: flex; align-items: center; gap: 18px; }
.site-nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 14px; }
.site-nav a:hover { color: var(--navy); }
.nav-cta { display: flex; gap: 8px; margin-left: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border-radius: 10px; padding: 14px 24px; text-decoration: none; border: 1px solid transparent; font-weight: 650; font-size: 15px; cursor: pointer; transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease, color .18s ease; }
.btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.btn:disabled, .btn.is-disabled { opacity: .55; pointer-events: none; }
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 10px 24px rgba(255, 81, 72, .28); }
.btn-primary:hover { background: var(--coral-dark); transform: translateY(-1px); }
.btn-secondary { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-secondary:hover { border-color: #B7C7D6; background: #F8FBFE; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 10px 24px rgba(22, 119, 255, .22); }
.btn-blue:hover { background: #0F66E0; transform: translateY(-1px); }
.btn-small { padding: 8px 14px; font-size: 14px; min-height: 40px; }
.hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: 36px; align-items: center; padding: 56px 0 24px; }
.eyebrow { color: var(--blue); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; margin: 0 0 10px; }
h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.05; letter-spacing: -.03em; margin: 0 0 16px; }
.lede { font-size: 18px; color: var(--muted); max-width: 62ch; margin: 0 0 22px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-card { background: var(--navy); color: #fff; border-radius: 24px; padding: 22px; box-shadow: var(--shadow); }
.hero-card p { color: #CBD5E1; margin: 8px 0 0; font-size: 14px; }
.section { padding: 42px 0; }
h2 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -.03em; margin: 0 0 8px; }
.sub { color: var(--muted); margin: 0 0 22px; max-width: 68ch; }
.grid-4, .grid-3, .grid-2 { display: grid; gap: 14px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card, .panel { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.card h3, .panel h3 { margin: 8px 0; }
.card p, .panel p { color: var(--muted); margin: 0; }
.step-no { width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center; background: #ECFEFF; color: #0E7490; font-weight: 700; }
.band { background: #fff; border-block: 1px solid var(--line); }
.cta { background: linear-gradient(135deg, var(--navy), #13233d); color: #fff; border-radius: 28px; padding: 36px; display: flex; justify-content: space-between; gap: 18px; align-items: center; }
.cta p { color: #CBD5E1; }
.site-footer { padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer strong { color: var(--navy); }
/* Auth shell layout is defined with the authentication redesign block below. */
label { display: block; font-size: 14px; font-weight: 600; margin: 12px 0 6px; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="url"], input[type="tel"], input[type="search"], input[type="file"], select, textarea {
    width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 12px; color: var(--ink);
}
.auth-input input[type="text"],
.auth-input input[type="email"],
.auth-input input[type="password"],
.auth-input input[type="tel"],
.auth-input input[type="search"] {
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    background: transparent;
    border-radius: 0;
    padding: 12px 12px 12px 0;
    box-shadow: none;
}
textarea { min-height: 120px; }
.help, .error { font-size: 13px; }
.help { color: var(--muted); }
.error { color: var(--danger); }
.alert { border-radius: 14px; padding: 12px 14px; margin: 0 0 14px; background: #ECFDF5; color: #065F46; }
.alert-error { background: #FEF2F2; color: var(--danger); }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; margin: 14px 0; }
.check input { margin-top: 4px; }
.portal { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.sidebar { background: var(--navy); color: #fff; padding: 22px 16px; }
.sidebar a { display: block; color: #CBD5E1; text-decoration: none; padding: 10px 12px; border-radius: 10px; }
.sidebar a.active, .sidebar a:hover { background: rgba(255,255,255,.08); color: #fff; }
.side-label { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #94A3B8; margin: 18px 12px 6px; }
.portal-main { padding: 24px; }
.portal-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 18px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kpi strong { display: block; font-size: 28px; }
.kpi span { color: var(--muted); font-size: 13px; }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 16px; overflow: hidden; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 14px; }
th { color: var(--muted); font-weight: 600; }
.case-grid { display: grid; grid-template-columns: 1fr 1fr .9fr; gap: 14px; }
.secret { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: #F1F5F9; padding: 10px; border-radius: 10px; word-break: break-all; }
.pager { margin-top: 14px; }
.inline { display: flex; gap: 8px; align-items: center; }
@media (max-width: 900px) {
    .nav-toggle { display: inline-flex; }
    .site-nav { display: none; position: absolute; left: 16px; right: 16px; top: 72px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px; flex-direction: column; align-items: stretch; box-shadow: var(--shadow); }
    .site-nav.is-open { display: flex; }
    .nav-cta { margin-left: 0; flex-direction: column; }
    .hero, .grid-4, .grid-3, .grid-2, .cta, .portal, .kpis, .case-grid { grid-template-columns: 1fr; display: grid; }
    .portal { display: block; }
    .sidebar { display: none; }
    .sidebar.is-open { display: block; }
    .side-toggle { display: inline-flex; }
}
.side-toggle { display: none; }
.brand-link { display: inline-flex; align-items: center; text-decoration: none; background: transparent; }
.brand-logo { display: block; height: 56px; width: auto; max-width: 240px; object-fit: contain; object-position: left center; background: transparent; }
.brand-icon { display: block; width: 40px; height: 40px; object-fit: contain; background: transparent; }
.footer-logo-box { display: inline-block; background: transparent; border: 0; border-radius: 0; padding: 0; margin-bottom: 12px; }
/* Single official IPGOV logo only — never show a second mark beside it */
.sidebar > a.brand-link.sidebar-brand { display: flex; align-items: center; justify-content: center; padding: 8px 12px 12px; background: transparent; }
.sidebar > a.brand-link.sidebar-brand:hover { background: transparent; }
.sidebar .brand-logo { display: block; height: 48px; max-width: 180px; width: auto; background: transparent !important; border-radius: 0; padding: 0; box-shadow: none; object-fit: contain; }
.sidebar .brand-icon { display: none !important; }
.collapse-toggle { margin: 6px 0 4px; background: transparent; color: #CBD5E1; border: 1px solid rgba(255,255,255,.2); border-radius: 10px; padding: 6px 10px; cursor: pointer; width: 100%; }
/* Portal shell widths live in admin.css — do not reintroduce fixed 248px tracks here. */
.portal.is-collapsed .side-label,
.portal.is-collapsed .nav-copy { display: none; }
.mobile-mark { display: none; }
.welcome-banner { display: flex; justify-content: space-between; gap: 16px; align-items: center; background: linear-gradient(135deg, #fff, #ECFEFF); border: 1px solid var(--line); border-radius: 18px; padding: 18px; margin-bottom: 16px; }
.welcome-banner h2 { margin: 0 0 6px; font-size: 24px; }
.meter { height: 8px; background: #E2E8F0; border-radius: 99px; margin: 8px 0; overflow: hidden; }
.meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.auth-body {
    min-height: 100vh;
    background:
        radial-gradient(ellipse 70% 50% at 15% 20%, rgba(37, 99, 235, .35), transparent 55%),
        radial-gradient(ellipse 60% 45% at 85% 80%, rgba(6, 182, 212, .22), transparent 50%),
        linear-gradient(145deg, #050B1C 0%, #0B1220 45%, #102A56 100%);
    color: var(--ink);
}
.auth-stage { min-height: 100vh; display: grid; place-items: center; padding: 28px 16px; }
.auth-shell {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(340px, 42%) minmax(0, 58%);
    background: transparent;
    gap: 0;
    align-items: stretch;
}
/* Legacy auth panel rules disabled — see public/css/auth.css */
.auth-body .auth-panel {
    max-height: none;
    overflow: visible;
}
.auth-panel h1 {
    margin: 22px 0 8px;
    font-size: clamp(1.85rem, 2.6vw, 2.35rem);
    letter-spacing: -.03em;
    color: #0B1220;
}
.auth-panel h1 em { font-style: normal; color: #0052FF; }
.auth-lead { margin: 0 0 18px; color: #64748B; font-size: 14px; line-height: 1.55; }
.brand-link { display: inline-flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; }
.site-nav .brand-logo,
.site-header .brand-logo { height: 56px; width: auto; max-width: 240px; object-fit: contain; background: transparent; }
.auth-body .brand-logo { height: 52px; width: auto; max-width: 220px; object-fit: contain; background: transparent; }
.brand-kicker {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #94A3B8;
}
.auth-label { display: block; margin: 14px 0 6px; font-weight: 700; color: #0B1220; font-size: 14px; }
.auth-input {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    background: #F8FAFC;
    min-height: 48px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.auth-input:focus-within {
    border-color: #0052FF;
    box-shadow: 0 0 0 3px rgba(0, 82, 255, .12);
    background: #fff;
}
.auth-input__icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 48px;
    color: #94A3B8;
    flex: 0 0 44px;
}
.auth-input__icon svg {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    display: block;
}
.auth-input input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 12px 12px 12px 0;
    outline: none;
}
.auth-input .password-toggle {
    border: 0;
    background: transparent;
    color: #0052FF;
    font-weight: 650;
    font-size: 13px;
    padding: 8px 14px;
    cursor: pointer;
}
.auth-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin: 14px 0 16px; flex-wrap: wrap; }
.auth-row a { color: #0052FF; text-decoration: none; font-weight: 650; font-size: 14px; }
.auth-row a:hover { text-decoration: underline; }
.auth-submit {
    width: 100%;
    gap: 10px;
    min-height: 50px;
    border-radius: 12px;
    background: #0052FF;
    box-shadow: 0 10px 24px rgba(0, 82, 255, .28);
}
.auth-submit:hover { background: #0041CC; }
.auth-submit[disabled] { opacity: .72; cursor: wait; }
.auth-divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: #94A3B8;
    font-size: 12px;
    font-weight: 700;
}
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; background: #E2E8F0; }
.auth-google {
    width: 100%;
    gap: 10px;
    min-height: 48px;
    border-radius: 12px;
}
.auth-footer-note { margin: 18px 0 0; text-align: center; color: #64748B; font-size: 14px; }
.auth-footer-note a { color: #0052FF; font-weight: 700; text-decoration: none; }
.auth-footer-note a:hover { text-decoration: underline; }
.auth-panel .alert { margin: 0 0 14px; }
.auth-panel .check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: #334155; }
.auth-promo {
    position: relative;
    overflow: hidden;
    color: #fff;
    border-radius: 0 24px 24px 0;
    padding: 36px 28px 28px;
    background:
        radial-gradient(circle at 78% 42%, rgba(56, 189, 248, .28), transparent 34%),
        linear-gradient(160deg, #0A1B4D 0%, #050B1C 55%, #071433 100%);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
    min-height: 640px;
}
.auth-promo__glow {
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(8px);
}
.auth-promo__glow--a { width: 220px; height: 220px; right: -60px; top: -40px; background: rgba(0, 82, 255, .45); }
.auth-promo__glow--b { width: 180px; height: 180px; left: -50px; bottom: 40px; background: rgba(6, 182, 212, .25); }
.auth-promo__eyebrow {
    position: relative;
    margin: 0 0 18px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(255,255,255,.78);
}
.auth-promo__grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(180px, .95fr);
    gap: 18px;
    align-items: end;
    min-height: 560px;
}
.auth-promo__copy { position: relative; z-index: 2; padding-bottom: 8px; }
.auth-promo h2 {
    margin: 0 0 12px;
    font-size: clamp(1.7rem, 2.4vw, 2.35rem);
    line-height: 1.15;
    letter-spacing: -.02em;
}
.auth-promo h2 span { color: #67E8F9; }
.auth-promo__copy > p { margin: 0 0 18px; color: rgba(226, 232, 240, .9); font-size: 14px; max-width: 42ch; }
.auth-features { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.auth-features li {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 10px;
    align-items: start;
}
.auth-feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: #0052FF;
    color: #fff;
}
.auth-feature-icon svg { width: 18px; height: 18px; }
.auth-features strong { display: block; font-size: 14px; }
.auth-features span { display: block; color: rgba(226, 232, 240, .75); font-size: 12px; margin-top: 2px; }
.auth-signature { margin-top: 22px; }
.auth-signature__script {
    margin: 0;
    font-family: "Great Vibes", cursive;
    font-size: 34px;
    color: #E8C56B;
    line-height: 1;
}
.auth-signature__name {
    margin: 6px 0 0;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.auth-signature__title {
    margin: 4px 0 0;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(226, 232, 240, .75);
}
.auth-platforms {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.auth-platforms li { display: grid; justify-items: center; gap: 6px; font-size: 11px; color: rgba(255,255,255,.85); }
.auth-platforms .plat {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-weight: 800;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
}
.auth-platforms .plat.google { background: #fff; color: #4285F4; }
.auth-platforms .plat.facebook { background: #1877F2; color: #fff; }
.auth-platforms .plat.instagram { background: linear-gradient(135deg, #F58529, #DD2A7B, #8134AF); color: #fff; }
.auth-platforms .plat.tiktok { background: #111; color: #fff; }
.auth-portrait {
    position: relative;
    z-index: 1;
    margin: 0;
    align-self: end;
    justify-self: end;
    width: min(100%, 280px);
}
.auth-portrait img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 560px;
    object-fit: contain;
    object-position: bottom right;
    filter: drop-shadow(0 18px 30px rgba(0,0,0,.35));
}
.password-field { position: relative; }
@media (max-width: 980px) {
    .auth-shell { grid-template-columns: 1fr 1fr; }
    .auth-promo__grid { grid-template-columns: 1fr; min-height: 0; }
    .auth-portrait { width: min(220px, 48%); position: absolute; right: 8px; bottom: 12px; opacity: .95; }
    .auth-promo__copy { padding-right: 36%; }
}
@media (max-width: 820px) {
    .auth-stage { padding: 0; place-items: stretch; }
    .auth-shell { display: flex; flex-direction: column; width: 100%; }
    .auth-panel {
        order: 1;
        border-radius: 0;
        max-height: none;
        box-shadow: none;
        padding: 24px 18px 28px;
    }
    .auth-promo {
        order: 2;
        border-radius: 0;
        min-height: 0;
        padding: 28px 18px 32px;
    }
    .auth-promo__grid { grid-template-columns: 1fr; }
    .auth-promo__copy { padding-right: 0; }
    .auth-portrait {
        position: static;
        width: min(220px, 70%);
        justify-self: center;
        margin-top: 18px;
    }
    .site-nav .brand-logo, .site-header .brand-logo, .brand-logo { height: 48px; max-width: 200px; }
    body { overflow-x: hidden; }
}
.kyc-progress { display: flex; gap: 8px; padding: 0; margin: 12px 0; list-style: none; font-size: 13px; flex-wrap: wrap; }
.kyc-progress li { background: #EFF6FF; color: #1D4ED8; border-radius: 8px; padding: 4px 10px; }
.kyc-section { margin-top: 16px; padding-top: 8px; border-top: 1px solid var(--line); }
.kyc-section h2 { font-size: 16px; margin: 8px 0; }
.req::after { content: " *"; color: #B45309; }
.auth-panel input:not([type="checkbox"]):not([type="file"]):not([type="hidden"]),
.auth-panel textarea,
.auth-panel select,
.auth-form textarea,
.auth-form select,
.portal-main textarea,
.portal-main select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
    font: inherit;
    background: #fff;
    box-sizing: border-box;
}
.auth-panel .auth-input input {
    width: auto;
    border: 0;
    padding: 12px 12px 12px 0;
    background: transparent;
}
.auth-panel input[type="file"] { padding: 10px 0; border: 0; background: transparent; }
.photo-preview { display: block; width: 160px; height: 160px; object-fit: cover; border-radius: 16px; margin: 8px 0; border: 1px solid var(--line); }
.auth-panel .btn.btn-secondary,
.auth-form .btn.btn-secondary { width: auto; }

