/*
 * login-page.css
 * ──────────────────────────────────────────────────────────────────────────────
 * Scoped styles for the PacSIMS login page.
 * All classes are prefixed .lp-* to avoid collision with the main theme.
 *
 * THEMING
 * Colors are expressed as CSS custom properties so any country can override
 * just the variables in a tiny <style> block inside Login.cshtml without
 * touching this file.
 *
 *   --lp-primary       Base navy for the background gradient     (#0b2e4f)
 *   --lp-primary-dark  Mid navy (gradient stop 2)                (#103e69)
 *   --lp-primary-deep  Deepest navy (gradient tail)              (#0a2643)
 *   --lp-ocean         Ocean blue — links, focus rings, button   (#1565a0)
 *   --lp-ocean-light   Lighter ocean — button gradient start     (#2b86c5)
 *   --lp-teal          Teal — second accent radial glow          (#0e8f8f)
 *   --lp-accent        Amber — divider bar + env pill            (#e3b341)
 *   --lp-accent-light  Lighter amber                             (#ebb84f)
 *   --lp-accent-dark   Darker amber                              (#c49a2e)
 *   --lp-btn-text      Text on the sign-in button (always #fff)  (#ffffff)
 *
 * ──────────────────────────────────────────────────────────────────────────────
 */

/* ─────────────────────────────────────────────────────────────────────────────
   SELF-HOSTED FONTS
   Fraunces and Outfit are variable fonts — all weights share the same files,
   split only by unicode range (latin / latin-ext / vietnamese).
   Files live in wwwroot/assets/fonts/.
───────────────────────────────────────────────────────────────────────────── */

/* Fraunces — display serif (headings) */
@font-face {
    font-family: 'Fraunces';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/fraunces-vietnamese.woff2') format('woff2');
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
    font-family: 'Fraunces';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/fraunces-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Fraunces';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/fraunces-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Outfit — sans-serif (body / UI text) */
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('../fonts/outfit-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('../fonts/outfit-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ─────────────────────────────────────────────────────────────────────────────
   1. CSS CUSTOM PROPERTY DEFAULTS
   Navy/ocean palette — matches the Samoa EMIS design system.
   Override in Login.cshtml's <style> block for each country deployment.
───────────────────────────────────────────────────────────────────────────── */
:root {
    --lp-primary:       #0b2e4f;
    --lp-primary-dark:  #103e69;
    --lp-primary-deep:  #0a2643;
    --lp-ocean:         #1565a0;
    --lp-ocean-light:   #2b86c5;
    --lp-teal:          #0e8f8f;
    --lp-accent:        #e3b341;
    --lp-accent-light:  #ebb84f;
    --lp-accent-dark:   #c49a2e;
    /* Card / form surface tokens */
    --lp-ink:           #16242f;
    --lp-slate:         #5a6b78;
    --lp-line:          #dce6ee;
    --lp-sky:           #f4f8fb;
}

/* ─────────────────────────────────────────────────────────────────────────────
   2. BASE RESET
   Neutralise any inherited centering from .main-container in _LayoutLogin.
───────────────────────────────────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.main-container {
    text-align: unset !important;
}

/* ─────────────────────────────────────────────────────────────────────────────
   3. PAGE SHELL
   Full-viewport flex row. Left = brand panel, right = login card.
   Two radial glows (blue + teal) over a deep navy linear gradient.
───────────────────────────────────────────────────────────────────────────── */
.lp-root {
    font-family: 'Outfit', system-ui, -apple-system, sans-serif;
    display: flex;
    min-height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(120% 90% at 85% 10%, color-mix(in srgb, var(--lp-ocean-light) 45%, transparent) 0%, transparent 55%),
        radial-gradient(90% 80% at 10% 90%, color-mix(in srgb, var(--lp-teal) 40%, transparent) 0%, transparent 55%),
        linear-gradient(160deg, var(--lp-primary) 0%, var(--lp-primary-dark) 55%, var(--lp-primary-deep) 100%) !important;
    animation: lp-fadein 0.55s ease both;
}

@keyframes lp-fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Decorative dot-ring overlay on the brand side */
.lp-root::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.13;
    pointer-events: none;
    background-image: repeating-radial-gradient(
        circle at 78% 18%,
        transparent 0 26px,
        rgba(255, 255, 255, 0.5) 26px 27px
    );
    -webkit-mask-image: radial-gradient(circle at 78% 18%, #000, transparent 68%);
    mask-image:         radial-gradient(circle at 78% 18%, #000, transparent 68%);
}

.lp-root::after {
    content: '';
    position: absolute;
    width: 480px;
    height: 480px;
    bottom: -180px;
    right: 35%;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--lp-ocean) 20%, transparent) 0%, transparent 65%);
    pointer-events: none;
}

/* ─────────────────────────────────────────────────────────────────────────────
   4. LEFT — BRANDING PANEL
   Three vertical zones:
     .lp-brand-top   — org label + env pill (pinned top)
     .lp-brand-block — centred emblem / title block
     .lp-powered     — pinned bottom
───────────────────────────────────────────────────────────────────────────── */
.lp-brand {
    flex: 0 0 55%;
    max-width: 55%;
    display: flex;
    flex-direction: column;
    padding: 2.25rem 2.5rem 3.5rem;
    position: relative;
    z-index: 1;
    animation: lp-from-left 0.7s 0.05s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes lp-from-left {
    from { opacity: 0; transform: translateX(-22px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ── Top row: org label left, env pill right ── */
.lp-brand-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.lp-org-label {
    font-size: 0.75rem;
    letter-spacing: 0.02em;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.6);
}

.lp-org-label b {
    display: block;
    font-size: 0.875rem;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
}

.lp-env-pill {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    background: var(--lp-accent);
    color: #3a2a00;
    padding: 5px 12px;
    border-radius: 999px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ── Centre block: emblem → country → title → bar → subtitle ── */
.lp-brand-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 400px;
    margin: auto; /* vertical centering between top row and powered footer */
    position: relative;
    z-index: 2;
    padding: 1.5rem 0;
}

/*
 * National emblem / coat of arms.
 * mix-blend-mode: multiply removes white PNG background against dark blue.
 */
.lp-coat {
    width: 108px;
    height: 108px;
    object-fit: contain;
    mix-blend-mode: multiply;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.55))
            drop-shadow(0 0 30px color-mix(in srgb, var(--lp-accent) 22%, transparent));
    margin-bottom: 1.5rem;
    transition: transform 0.35s ease, filter 0.35s ease;
    flex-shrink: 0;
}

.lp-coat:hover {
    transform: scale(1.05) rotate(-1.5deg);
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.6))
            drop-shadow(0 0 32px color-mix(in srgb, var(--lp-accent) 32%, transparent));
}

/* Country name — small, amber, wide letter-spacing */
.lp-country {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--lp-accent) 85%, transparent);
    margin-bottom: 0.5rem;
}

/* System name — Fraunces display serif, most prominent element */
.lp-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(2.6rem, 4vw, 4rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.02;
    color: #ffffff;
    margin-bottom: 0.6rem;
}

/* Amber accent divider */
.lp-bar {
    width: 40px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--lp-accent) 0%, color-mix(in srgb, var(--lp-accent) 12%, transparent) 100%);
    margin: 0.6rem auto 0.9rem;
}

/* Subtitle */
.lp-subtitle {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.62);
    max-width: 30ch;
}

/* Consent / security notice — single muted line directly below Sign in button */
.lp-consent {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 0.65rem;
    margin-bottom: 0;
    font-size: 0.72rem;
    color: var(--lp-slate, #5a6b78);
    opacity: 0.6;
    line-height: 1.4;
    text-align: center;
}
.lp-consent svg {
    flex-shrink: 0;
    color: var(--lp-slate, #5a6b78);
}

/* "Powered by" — pinned at bottom of the branding panel */
.lp-powered {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    white-space: nowrap;
    position: relative;
    z-index: 2;
}

.lp-powered-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.32);
    margin-bottom: 0.45rem;
}

.lp-powered-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.1rem;
}

.lp-powered img {
    max-height: 46px;
    opacity: 0.62;
    mix-blend-mode: luminosity;
    transition: opacity 0.25s, mix-blend-mode 0.25s;
}

.lp-powered img:hover {
    opacity: 0.92;
    mix-blend-mode: normal;
}

/* Thin vertical separator between the two logos */
.lp-powered-sep {
    display: block;
    width: 1px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

/* ─────────────────────────────────────────────────────────────────────────────
   5. RIGHT — LOGIN PANEL
───────────────────────────────────────────────────────────────────────────── */
.lp-panel {
    flex: 0 0 45%;
    max-width: 45%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 3.5rem 2rem 2rem;
    position: relative;
    z-index: 1;
    animation: lp-from-bottom 0.7s 0.12s cubic-bezier(0.22, 1, 0.36, 1) both;
    background: transparent;
}

@keyframes lp-from-bottom {
    from { opacity: 0; transform: translateY(26px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Card — white surface floating over the gradient */
.lp-card {
    width: 100%;
    max-width: 400px;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.06),
        0 4px 6px rgba(0, 0, 0, 0.07),
        0 12px 32px rgba(0, 0, 0, 0.18),
        0 40px 80px rgba(0, 0, 0, 0.14);
    padding: 2.5rem 2.25rem 2rem;
    text-align: left;
}

/* Data protection notice strip — top of card */
/* Card heading */
.lp-card-title {
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--lp-ink, #16242f);
    margin-bottom: 1.25rem;
    line-height: 1.2;
}

.lp-card-hint {
    font-size: 0.88rem;
    color: var(--lp-slate, #5a6b78);
    margin-bottom: 1.6rem;
    line-height: 1.5;
}

/* ─────────────────────────────────────────────────────────────────────────────
   6. FORM FIELDS
───────────────────────────────────────────────────────────────────────────── */
.lp-field {
    margin-bottom: 1rem;
}

.lp-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--lp-ink, #374151);
    margin-bottom: 0.42rem;
}

/* Input wrapper — flex row: optional leading icon + input + optional eye btn */
.lp-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1.5px solid var(--lp-line, #dce6ee);
    border-radius: 10px;
    padding: 0 14px;
    background: var(--lp-sky, #f4f8fb);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.lp-input-wrap:focus-within {
    border-color: var(--lp-ocean, #1565a0);
    background: #ffffff;
    box-shadow: 0 0 0 3.5px color-mix(in srgb, var(--lp-ocean, #1565a0) 12%, transparent);
}

/* Leading icon inside the wrap */
.lp-input-icon {
    width: 18px;
    height: 18px;
    color: var(--lp-slate, #5a6b78);
    flex-shrink: 0;
    pointer-events: none;
}

.lp-input {
    display: block;
    width: 100%;
    padding: 0.72rem 0;
    font-family: inherit;
    font-size: 0.9375rem;
    color: var(--lp-ink, #16242f);
    background: transparent;
    border: none;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.lp-input::placeholder {
    color: #94a3b8;
}

/* Error state — applied to the wrap so the border turns red */
.lp-input-wrap.is-invalid {
    border-color: #ef4444;
    background: #fff8f8;
}

.lp-input-wrap.is-invalid:focus-within {
    box-shadow: 0 0 0 3.5px rgba(239, 68, 68, 0.11);
}

/* Field-level error message */
.lp-err {
    display: block;
    font-size: 0.74rem;
    color: #dc2626;
    margin-top: 0.28rem;
    min-height: 1em;
}

/* ─────────────────────────────────────────────────────────────────────────────
   7. PASSWORD SHOW/HIDE TOGGLE
   The button lives inside .lp-input-wrap (flex row), so it sits at the
   trailing edge without absolute positioning.
───────────────────────────────────────────────────────────────────────────── */
.lp-pw-btn {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    padding: 0.22rem;
    cursor: pointer;
    color: var(--lp-slate, #5a6b78);
    opacity: 0.72;
    border-radius: 5px;
    line-height: 0;
    flex-shrink: 0;
    margin-left: auto;
    transition: color 0.18s, opacity 0.18s;
}

.lp-pw-btn:hover {
    opacity: 1;
    color: var(--lp-ocean, #1565a0);
}

.lp-pw-btn:focus-visible {
    outline: 2px solid var(--lp-ocean, #1565a0);
    outline-offset: 2px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   8. REMEMBER ME + FORGOT PASSWORD ROW
───────────────────────────────────────────────────────────────────────────── */
.lp-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0.85rem 0 1.4rem;
    gap: 0.5rem;
}

.lp-check-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    user-select: none;
    font-size: 0.86rem;
    color: var(--lp-slate, #5a6b78);
}

.lp-check-label input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: var(--lp-ocean, #1565a0);
    cursor: pointer;
    flex-shrink: 0;
}

.lp-forgot {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--lp-ocean, #1565a0);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.18s;
}

.lp-forgot:hover {
    color: var(--lp-primary);
    text-decoration: underline;
}

.lp-forgot:focus-visible {
    outline: 2px solid var(--lp-ocean, #1565a0);
    outline-offset: 2px;
    border-radius: 3px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   9. SIGN-IN BUTTON
   Navy-to-ocean gradient, white text. Shimmer on hover, loading spinner.
───────────────────────────────────────────────────────────────────────────── */
.lp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.85rem 1rem;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    color: #ffffff;
    background: var(--lp-ocean, #1565a0);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow:
        0 1px 2px rgba(11, 46, 79, 0.08),
        0 4px 16px rgba(21, 101, 160, 0.28);
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

/* Shimmer sweep on hover */
.lp-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.14) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.38s ease;
}

.lp-btn:hover {
    background: var(--lp-ocean-light, #2b86c5);
    transform: translateY(-2px);
    box-shadow:
        0 2px 4px rgba(11, 46, 79, 0.1),
        0 8px 28px rgba(21, 101, 160, 0.38);
}

.lp-btn:hover::after {
    transform: translateX(100%);
}

.lp-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(21, 101, 160, 0.32);
}

.lp-btn:focus-visible {
    outline: 3px solid var(--lp-ocean, #1565a0);
    outline-offset: 3px;
}

.lp-btn:disabled {
    opacity: 0.52;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Arrow icon — nudges right on hover */
.lp-btn-arrow {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.lp-btn:hover .lp-btn-arrow {
    transform: translateX(3px);
}

.lp-btn.is-loading .lp-btn-arrow { display: none; }

/* Spinner — hidden by default, shown in .is-loading state */
.lp-spinner {
    display: none;
    width: 17px;
    height: 17px;
    border: 2.5px solid rgba(255, 255, 255, 0.28);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: lp-spin 0.65s linear infinite;
    flex-shrink: 0;
}

@keyframes lp-spin {
    to { transform: rotate(360deg); }
}

.lp-btn.is-loading .lp-spinner  { display: block; }
.lp-btn.is-loading .lp-btn-text { opacity: 0.6; }

/* ─────────────────────────────────────────────────────────────────────────────
   10. ACTIVATION ALERT (shown when account needs activation)
───────────────────────────────────────────────────────────────────────────── */
/* Activation notice — amber border/icon, dark brown text for WCAG AA */
.lp-activation-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.7rem 0.85rem;
    border-radius: 8px;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-left: 3px solid #d97706;
    font-size: 0.8rem;
    color: #633806;
    line-height: 1.5;
    margin-bottom: 1rem;
}
.lp-activation-icon {
    flex-shrink: 0;
    margin-top: 1px;
    color: #d97706;
}
.lp-activation-body {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.lp-activation-link {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--lp-ocean, #1565a0);
    text-decoration: none;
}
.lp-activation-link:hover {
    color: var(--lp-primary, #0b2e4f);
    text-decoration: underline;
}

/* ─────────────────────────────────────────────────────────────────────────────
   11. SECONDARY LINK + LEGAL TEXT
───────────────────────────────────────────────────────────────────────────── */

/* "New staff member? Activate your account" line */
.lp-secondary {
    text-align: center;
    font-size: 0.82rem;
    color: var(--lp-slate, #5a6b78);
    margin-top: 1.1rem;
    margin-bottom: 0.5rem;
}

.lp-link {
    color: var(--lp-ocean, #1565a0);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.18s;
}

.lp-link:hover {
    color: var(--lp-primary, #0b2e4f);
    text-decoration: underline;
}

/* Legal / environment notice */
.lp-legal {
    text-align: center;
    font-size: 0.72rem;
    color: #9aa9b4;
    line-height: 1.6;
    margin-top: 0.25rem;
}

/* ─────────────────────────────────────────────────────────────────────────────
   12. CARD FOOTER — "Powered by" label + PacSIMS + SPC logos
───────────────────────────────────────────────────────────────────────────── */
.lp-card-foot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--lp-line, #dce6ee);
}

.lp-card-foot-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--lp-slate, #5a6b78);
    opacity: 0.6;
}

.lp-card-foot-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
}

.lp-card-foot img {
    max-height: 44px;
    opacity: 0.82;
    transition: opacity 0.2s;
}

.lp-card-foot img:hover {
    opacity: 1;
}

.lp-card-foot-sep {
    display: block;
    width: 1px;
    height: 32px;
    background: var(--lp-line, #dce6ee);
    flex-shrink: 0;
}

/* ─────────────────────────────────────────────────────────────────────────────
   13. FULL-WIDTH PAGE FOOTER — spans both brand panel and form panel
───────────────────────────────────────────────────────────────────────────── */
.lp-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.35rem 0.85rem;
    padding: 0.65rem 2rem;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.65);
    background: rgba(0, 0, 0, 0.22);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    pointer-events: none;
}

.lp-footer-sep {
    display: inline-block;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    vertical-align: middle;
}

.lp-footer-env {
    color: rgba(255, 199, 46, 0.6);
}

/* ─────────────────────────────────────────────────────────────────────────────
   13. RESPONSIVE
   ≤ 900px : stack vertically (brand on top, card below, panel goes white-bg)
   ≤ 480px : tighten padding; stack remember/forgot vertically
───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .lp-root {
        flex-direction: column;
        overflow-y: auto;
        min-height: 100vh;
    }

    .lp-brand {
        flex: none;
        max-width: 100%;
        padding: 2rem 1.5rem 1.75rem;
    }

    .lp-brand-block { padding: 1rem 0 0.5rem; }
    .lp-coat        { width: 68px; height: 68px; margin-bottom: 0.9rem; }
    .lp-title       { font-size: 2.2rem; }
    .lp-subtitle    { font-size: 0.9rem; }

    /* "Powered by" takes too much vertical space on small screens */
    .lp-powered { display: none; }

    .lp-panel {
        flex: none;
        max-width: 100%;
        padding: 0 1.25rem 2.5rem;
        justify-content: center;
        background: transparent;
    }

    .lp-card {
        padding: 2rem 1.5rem 1.75rem;
        border-radius: 16px;
    }
}

@media (max-width: 480px) {
    .lp-brand { padding: 1.75rem 1rem 1.25rem; }
    .lp-card  { padding: 1.75rem 1.25rem; }

    .lp-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.65rem;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   14. ACCESSIBILITY — skip-to-content link (keyboard navigation)
───────────────────────────────────────────────────────────────────────────── */
.lp-skip {
    position: absolute;
    top: -999px;
    left: 1rem;
    padding: 0.45rem 1rem;
    background: var(--lp-primary);
    color: #fff;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 0 0 6px 6px;
    text-decoration: none;
    z-index: 9999;
    transition: top 0s;
}

.lp-skip:focus {
    top: 0;
}

/* ─────────────────────────────────────────────────────────────────────────────
   15. BRAND PANEL — DECORATIVE EDUCATION ICONS
   Aria-hidden, z-index 0 — sits behind all brand content (z-index 2).
───────────────────────────────────────────────────────────────────────────── */
.lp-brand-deco {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.lp-deco-icon {
    position: absolute;
    fill: none;
    stroke: rgba(255, 255, 255, 0.07);
    stroke-width: 0.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Amber tint on the graduation cap for warmth */
.lp-deco-icon--accent {
    stroke: rgba(255, 199, 46, 0.10);
}

/* ── Back link to the public statistics dashboard ── */
.lp-back-public {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 24px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.70);
    text-decoration: none;
    transition: color .18s;
}

.lp-back-public:hover {
    color: #fff;
    text-decoration: none;
}
