/* RedSignal sign-in page. Shares its tokens with app.css. */
@font-face { font-family: "Archivo"; src: url("fonts/archivo-wdth.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/plex-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/plex-sans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/plex-sans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  color-scheme: light;
  --canvas: #f3f4f6;
  --ink: #0e1520;
  --graphite: #414b5a;
  --muted: #5f6b7a;
  --line: #e2e5ea;
  --line-strong: #c9ced6;
  --red: #d1000e;
  --red-strong: #a8000b;
  --red-tint: #fdeeef;
  --red-line: #f3c1c5;
  --focus: #1b5fd1;
  --font-display: "Archivo", "IBM Plex Sans", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--canvas); color: var(--ink); font-family: var(--font-body); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.login-shell { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(400px, .85fr); min-height: 100vh; }
.login-story { position: relative; display: flex; flex-direction: column; gap: 48px; padding: 48px 56px; overflow: hidden; background: #fff; border-right: 1px solid var(--line); }
.login-story::before, .login-story::after { content: ""; position: absolute; right: -260px; bottom: -260px; width: 760px; height: 760px; border-radius: 50%; pointer-events: none; }
.login-story::before { background:
    linear-gradient(#e3e7ec, #e3e7ec) 50% 0 / 1px 100% no-repeat,
    linear-gradient(#e3e7ec, #e3e7ec) 0 50% / 100% 1px no-repeat,
    repeating-radial-gradient(circle, transparent 0 94px, #e3e7ec 94px 95px);
  -webkit-mask-image: radial-gradient(circle, #000 35%, transparent 72%);
  mask-image: radial-gradient(circle, #000 35%, transparent 72%); }
.login-story::after { background: conic-gradient(from 250deg, transparent 0deg, rgba(209, 0, 14, .03) 30deg, rgba(209, 0, 14, .12) 64deg, transparent 64.5deg);
  -webkit-mask-image: radial-gradient(circle, #000 20%, transparent 70%);
  mask-image: radial-gradient(circle, #000 20%, transparent 70%); }
.login-logo { position: relative; width: min(440px, 100%); height: auto; }
.story-main { position: relative; max-width: 580px; margin-top: auto; }
.story-main h1 { margin: 0 0 16px; font-family: var(--font-display); font-size: clamp(32px, 3.5vw, 48px); font-stretch: 114%; font-weight: 700; line-height: 1.08; letter-spacing: -.015em; text-wrap: balance; }
.story-main p { max-width: 52ch; margin: 0; color: var(--graphite); font-size: 17px; line-height: 1.6; }
.story-points { display: grid; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.story-points li { display: flex; align-items: baseline; gap: 12px; font-size: 15.5px; }
.story-points li::before { content: ""; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--red); transform: translateY(-1px); }
.story-footer { position: relative; margin: 0; color: var(--muted); font-size: 13.5px; }

.login-panel { display: flex; flex-direction: column; justify-content: center; gap: 32px; padding: 48px; }
.login-form-wrap { width: 100%; max-width: 380px; margin: auto; }
.login-form-wrap h2 { margin: 0; font-family: var(--font-display); font-size: 28px; font-stretch: 112%; font-weight: 650; }
.login-form-wrap > p { margin: 6px 0 22px; color: var(--graphite); }
label { display: block; margin: 16px 0 6px; font-size: 14px; font-weight: 600; }
input { width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; color: var(--ink); font: inherit; font-size: 15.5px; }
input::placeholder { color: var(--muted); opacity: 1; }
input:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgba(27, 95, 209, .18); }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 48px; }
#password-toggle { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 6px; background: none; color: var(--graphite); cursor: pointer; }
#password-toggle:hover { background: #f3f4f6; color: var(--ink); }
#password-toggle[aria-pressed="true"] { color: var(--red-strong); }
.submit { width: 100%; height: 48px; margin-top: 24px; border: 0; border-radius: 8px; background: var(--red); color: #fff; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
.submit:hover { background: var(--red-strong); }
.login-error { margin-bottom: 4px; padding: 10px 12px; border: 1px solid var(--red-line); border-radius: 8px; background: var(--red-tint); color: var(--red-strong); font-weight: 500; }
.access-note { display: flex; align-items: center; gap: 8px; margin: 20px 0 0; color: var(--muted); font-size: 13.5px; }
.access-note svg { flex: none; }
.login-footer { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 13px; }

@media (max-width: 900px) {
  .login-shell { grid-template-columns: minmax(0, 1fr); }
  .login-story { gap: 24px; padding: 28px 24px; border-right: 0; border-bottom: 1px solid var(--line); }
  .login-story::before, .login-story::after { right: -380px; bottom: -420px; }
  .story-main { margin-top: 0; }
  .story-main p { font-size: 16px; }
  .story-points, .story-footer { display: none; }
  .login-panel { padding: 28px 24px 24px; }
}
