@font-face { font-family: "Poppins"; src: url("/staff/fonts/poppins-400.woff2") format("woff2"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/staff/fonts/poppins-500.woff2") format("woff2"); font-style: normal; font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/staff/fonts/poppins-600.woff2") format("woff2"); font-style: normal; font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/staff/fonts/poppins-700.woff2") format("woff2"); font-style: normal; font-weight: 700; font-display: swap; }

:root {
  color-scheme: light;
  --primary: #950008;
  --primary-dark: #780006;
  --ink: #0d1c2e;
  --muted: #667387;
  --line: #dce3ed;
  --canvas: #f5f7fb;
  --sidebar: #121b2a;
  --font: "Poppins", sans-serif;
}

* { box-sizing: border-box; }
html, body { min-width: 320px; min-height: 100%; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: var(--font); -webkit-font-smoothing: antialiased; }
button, input { color: inherit; font: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
:focus-visible { outline: 3px solid rgb(149 0 8 / 22%); outline-offset: 2px; }

.login-shell { display: grid; min-height: 100vh; grid-template-columns: minmax(390px, .88fr) minmax(520px, 1.12fr); }
.story-panel { position: relative; display: flex; min-height: 100vh; flex-direction: column; justify-content: space-between; padding: 38px clamp(36px, 5vw, 74px); color: white; background: var(--sidebar); overflow: hidden; }
.story-panel::before { position: absolute; inset: 0; background: radial-gradient(circle at 15% 20%, rgb(149 0 8 / 28%), transparent 35%), linear-gradient(145deg, transparent 45%, rgb(255 255 255 / 3%)); content: ""; }
.story-brand, .mobile-brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; }
.brand-mark { display: grid; width: 42px; height: 42px; place-items: center; color: white; background: var(--primary); border: 1px solid #c23d44; border-radius: 11px; box-shadow: inset 0 1px 0 rgb(255 255 255 / 20%), 0 9px 25px rgb(0 0 0 / 18%); font-size: 21px; font-weight: 700; }
.story-brand > span:last-child, .mobile-brand > span:last-child { display: flex; flex-direction: column; }
.story-brand strong, .mobile-brand strong { font-size: 16px; letter-spacing: -.2px; }
.story-brand small, .mobile-brand small { margin-top: 2px; color: #9ba7b8; font-size: 9px; font-weight: 700; letter-spacing: 1.8px; }
.story-copy { position: relative; z-index: 1; max-width: 540px; margin: auto 0; padding: 64px 0; }
.eyebrow { margin: 0 0 12px; color: #d95d63; font-size: 10px; font-weight: 800; letter-spacing: 1.6px; }
.story-copy h1 { margin: 0; font-size: clamp(34px, 4vw, 58px); line-height: 1.24; letter-spacing: -1.3px; }
.story-copy > p:last-child { max-width: 470px; margin: 24px 0 0; color: #b9c2cf; font-size: 16px; line-height: 1.8; }
.story-status { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; color: #718096; font-size: 9px; letter-spacing: .7px; text-transform: uppercase; }
.story-status span:first-child { display: flex; align-items: center; gap: 8px; color: #9ba7b8; }
.story-status i { width: 7px; height: 7px; background: #2dbe84; border-radius: 50%; box-shadow: 0 0 0 4px rgb(45 190 132 / 10%); }
.story-pattern { position: absolute; right: -120px; bottom: 60px; width: 380px; height: 380px; border: 1px solid rgb(255 255 255 / 4%); border-radius: 50%; }
.story-pattern::before, .story-pattern::after { position: absolute; border: 1px solid rgb(255 255 255 / 4%); border-radius: 50%; content: ""; }
.story-pattern::before { inset: 52px; }
.story-pattern::after { inset: 110px; }

.form-panel { display: flex; min-height: 100vh; flex-direction: column; padding: 32px clamp(28px, 7vw, 96px); background: #fbfcfe; }
.mobile-brand { display: none; }
.form-wrap { width: min(100%, 430px); margin: auto; padding: 40px 0; }
.form-heading .eyebrow { color: var(--primary); margin-bottom: 8px; }
.form-heading h2 { margin: 0; font-size: 34px; line-height: 1.3; letter-spacing: -.7px; }
.form-heading > p:last-child { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.alert { display: flex; align-items: flex-start; gap: 10px; margin: 24px 0 -4px; padding: 11px 13px; border: 1px solid; border-radius: 9px; font-size: 12px; line-height: 1.6; }
.alert[hidden] { display: none; }
.alert svg { flex: 0 0 18px; margin-top: 1px; }
.alert-error { color: #8b1a21; background: #fff0ef; border-color: #f1c6c7; }
.alert-warning { color: #84540c; background: #fff7e7; border-color: #efd49f; }
.alert-success { color: #126c4c; background: #eaf8f2; border-color: #b9e1d1; }
.login-form { display: grid; gap: 9px; margin-top: 28px; }
.login-form label { margin-top: 7px; font-size: 12px; font-weight: 700; }
.field { position: relative; display: flex; height: 50px; align-items: center; }
.field > svg { position: absolute; left: 15px; width: 18px; color: #8c97a7; pointer-events: none; }
.field input { width: 100%; height: 100%; padding: 0 46px; background: white; border: 1px solid var(--line); border-radius: 10px; outline: none; font-size: 13px; transition: border-color .18s, box-shadow .18s; }
.field input::placeholder { color: #9ea7b5; }
.field input:focus { border-color: #bf686d; box-shadow: 0 0 0 4px rgb(149 0 8 / 7%); }
.password-toggle { position: absolute; right: 8px; display: grid; width: 35px; height: 35px; place-items: center; color: #8490a0; background: transparent; border: 0; border-radius: 7px; cursor: pointer; }
.password-toggle:hover { color: var(--primary); background: #fff3f2; }
.password-toggle svg { width: 18px; }
.submit-button { display: flex; height: 50px; align-items: center; justify-content: center; gap: 9px; margin-top: 17px; color: white; background: var(--primary); border: 1px solid var(--primary); border-radius: 10px; box-shadow: 0 8px 22px rgb(149 0 8 / 18%); cursor: pointer; font-size: 13px; font-weight: 700; transition: .18s ease; }
.submit-button:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 11px 27px rgb(149 0 8 / 23%); }
.submit-button svg { width: 17px; }
.security-note { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 25px 0 0; color: #7c8796; font-size: 10px; text-align: center; }
.security-note svg { width: 15px; color: #398467; }
.form-panel footer { color: #9aa3b0; font-size: 9px; letter-spacing: .25px; text-align: center; }

@media (max-width: 900px) {
  .login-shell { grid-template-columns: 1fr; }
  .story-panel { display: none; }
  .form-panel { padding: 24px; }
  .mobile-brand { display: flex; }
  .mobile-brand strong { color: var(--ink); }
  .form-wrap { padding: 62px 0; }
}

@media (max-width: 520px) {
  .form-panel { padding: 20px; }
  .form-wrap { padding: 48px 0 40px; }
  .form-heading h2 { font-size: 30px; }
  .mobile-brand .brand-mark { width: 38px; height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
