/* NorthCore Desks sign-in. No external fonts or images, no inline styles anywhere (strict CSP). Brand: the neon green cube. */
:root {
  --bg: #F0F8F4; --card: #FFFFFF; --ink: #0A0F0D; --mute: #4A6556; --line: #D3E5DA; --field: #F6FBF8;
  --accent: #0CC481; --accent-hi: #10E896; --accent-ink: #032016; --link: #076C46; --focus: #087A50;
  --err: #B3203B; --err-bg: #FFF0F2; --ok: #076C46; --ok-bg: #E7F8F0;
  --shadow: 0 1px 2px rgba(10, 40, 25, .06), 0 18px 48px -12px rgba(10, 60, 36, .18);
  --glow-a: rgba(12, 196, 129, .20); --glow-b: rgba(12, 196, 129, .10);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "JetBrains Mono", SFMono-Regular, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #070B09; --card: #0F1813; --ink: #F0F8F4; --mute: #94B8A4; --line: #22332A; --field: #0A110D;
    --accent: #0CC481; --accent-hi: #10E896; --accent-ink: #032016; --link: #10E896; --focus: #7CFFC4;
    --err: #FF8FA1; --err-bg: #2A1219; --ok: #7CFFC4; --ok-bg: #0F2A1E;
    --shadow: 0 0 0 1px rgba(12, 196, 129, .06), 0 24px 60px -12px rgba(0, 0, 0, .7);
    --glow-a: rgba(12, 196, 129, .16); --glow-b: rgba(0, 212, 170, .08);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; color: var(--ink); font: 16px/1.5 var(--font);
  background: radial-gradient(60rem 36rem at 88% -8%, var(--glow-a), transparent 62%), radial-gradient(44rem 30rem at -8% 108%, var(--glow-b), transparent 60%), var(--bg);
  background-attachment: fixed;
}
.skip { position: absolute; left: 12px; top: -48px; z-index: 5; padding: 10px 14px; border-radius: 8px; background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

.page {
  min-height: 100vh; min-height: 100dvh; max-width: 1120px; margin: 0 auto; padding: 20px 16px 16px; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right));
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto 1fr auto;
  grid-template-areas: "brand" "mascot" "card" "pitch" "foot"; gap: 14px; justify-items: stretch;
}
.brand { grid-area: brand; display: flex; align-items: center; gap: 10px; }
.brand-mark { display: block; width: 34px; height: 34px; }
.brand-name { font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.brand-name span { font-weight: 400; color: var(--mute); }
.mascot { grid-area: mascot; justify-self: center; width: 132px; height: auto; margin: 2px 0 -22px; position: relative; z-index: 1; filter: drop-shadow(0 12px 14px rgba(8, 90, 55, .25)); animation: bob 5s ease-in-out infinite; }
.pitch { grid-area: pitch; display: none; }
.card {
  grid-area: card; position: relative; width: 100%; max-width: 440px; justify-self: center; align-self: start;
  background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 30px 22px 24px; box-shadow: var(--shadow);
}
.foot { grid-area: foot; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; align-self: end; padding-top: 10px; font-size: 13px; color: var(--mute); }
.foot a { color: var(--link); }

h1 { margin: 0 0 6px; font-size: 26px; line-height: 1.15; letter-spacing: -.025em; font-weight: 750; }
h1:focus { outline: none; }
.lede { margin: 0 0 18px; color: var(--mute); }
.note { margin: 0 0 16px; color: var(--mute); font-size: 15px; }
.msg { margin: 0 0 14px; padding: 0; font-size: 15px; border-radius: 10px; }
.msg:empty { display: none; }
.msg.err { padding: 10px 12px; color: var(--err); background: var(--err-bg); border: 1px solid color-mix(in srgb, var(--err) 35%, transparent); }
.msg.ok { padding: 10px 12px; color: var(--ok); background: var(--ok-bg); border: 1px solid color-mix(in srgb, var(--ok) 30%, transparent); }
.msg.info { padding: 10px 12px; color: var(--ink); background: var(--field); border: 1px solid var(--line); }
[hidden] { display: none !important; }

.btn {
  display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 52px; padding: 12px 18px; margin: 0;
  font: inherit; font-weight: 650; text-decoration: none; text-align: center; cursor: pointer; border-radius: 14px; border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease, border-color .12s ease; -webkit-tap-highlight-color: transparent;
}
.btn + .btn { margin-top: 10px; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: default; }
.btn-google, .btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 8px 20px -8px rgba(12, 196, 129, .75); }
.btn-google:hover, .btn-primary:hover { background: var(--accent-hi); }
.g { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #fff; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--accent); background: var(--field); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.btn:focus-visible { outline-offset: 3px; }

.divider { display: flex; align-items: center; gap: 12px; margin: 20px 0 16px; color: var(--mute); font-size: 13px; text-transform: uppercase; letter-spacing: .12em; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
label, .label { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 600; }
input[type=email] {
  width: 100%; min-height: 52px; padding: 12px 14px; margin: 0 0 12px; font: inherit; font-size: 16px; color: var(--ink); background: var(--field);
  border: 1px solid var(--line); border-radius: 14px; transition: border-color .12s ease, box-shadow .12s ease;
}
input::placeholder { color: color-mix(in srgb, var(--mute) 70%, transparent); }
input:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 28%, transparent); }
input[aria-invalid=true] { border-color: var(--err); }

.digit-row { display: flex; gap: 6px; }
.digit {
  flex: 1 1 0; min-width: 0; width: 0; height: 56px; padding: 0; margin: 0; text-align: center; font: 600 24px/1 var(--mono); color: var(--ink);
  background: var(--field); border: 1px solid var(--line); border-radius: 12px; caret-color: var(--accent);
}
.digit.gap { margin-left: 8px; }
.digit:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 28%, transparent); }
.digits[aria-invalid=true] .digit { border-color: var(--err); }
#code-form .btn { margin-top: 16px; }
.links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; margin-top: 14px; }
.link { padding: 10px 2px; min-height: 44px; font: inherit; font-size: 15px; font-weight: 600; color: var(--link); background: none; border: 0; cursor: pointer; border-radius: 8px; text-decoration: underline; text-underline-offset: 3px; }
.link[disabled] { color: var(--mute); cursor: default; text-decoration: none; font-weight: 500; }

.pulse { position: relative; width: 72px; height: 72px; margin: 6px auto 16px; }
.pulse::before, .pulse::after, .pulse span { content: ""; position: absolute; inset: 0; border-radius: 50%; }
.pulse span { inset: 24px; background: var(--accent); box-shadow: 0 0 22px rgba(12, 196, 129, .6); }
.pulse::before, .pulse::after { border: 2px solid var(--accent); opacity: .5; animation: ring 2.4s ease-out infinite; }
.pulse::after { animation-delay: 1.2s; }
.badge-blocked { display: grid; place-items: center; width: 56px; height: 56px; margin: 6px auto 16px; border-radius: 50%; font-size: 28px; font-weight: 800; color: var(--err); background: var(--err-bg); border: 2px solid var(--err); }
[data-view=pending] .note, [data-view=blocked] .note { text-align: center; }
[data-view=pending] .links, [data-view=blocked] .links { justify-content: center; }
.who { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; padding: 14px; background: var(--field); border: 1px solid var(--line); border-radius: 16px; }
.avatar { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 750; font-size: 19px; text-transform: uppercase; }
.who-text { min-width: 0; }
.who-text p { margin: 0; overflow-wrap: anywhere; }
.who-name { font-weight: 700; }
.who-line { font-size: 14px; color: var(--mute); }

@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes ring { from { transform: scale(.55); opacity: .6; } to { transform: scale(1.15); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .pulse::before { opacity: .35; transform: scale(.9); }
  .pulse::after { opacity: .15; transform: scale(1.1); }
}

@media (min-width: 420px) { .card { padding: 32px 28px 26px; } .digit-row { gap: 8px; } .digit.gap { margin-left: 12px; } }
@media (min-width: 940px) {
  .page {
    grid-template-columns: minmax(0, 1fr) 460px; grid-template-rows: auto 1fr auto auto; column-gap: 72px; row-gap: 0; padding-top: 32px; padding-bottom: 24px;
    grid-template-areas: "brand card" "mascot card" "pitch card" "foot foot";
  }
  .mascot { width: 300px; margin: 0; justify-self: start; align-self: end; }
  .pitch { display: block; margin: 20px 0 32px; max-width: 460px; }
  .tagline { margin: 0 0 14px; font-size: 34px; line-height: 1.1; font-weight: 750; letter-spacing: -.03em; }
  .points { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; color: var(--mute); }
  .points li { position: relative; padding-left: 26px; }
  .points li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); box-shadow: 0 0 10px rgba(12, 196, 129, .55); }
  .card { align-self: center; padding: 38px 36px 32px; max-width: none; }
  h1 { font-size: 28px; }
  .foot { margin-top: 12px; }
}
@media (max-height: 640px) and (max-width: 939px) { .mascot { width: 96px; margin-bottom: -16px; } }
