/* The sign-in page. Served without a session, so it can't use styles.css (that's behind the sign-in).
   Same tokens as styles.css: the dark side of the Prasinum website's palette. */
@font-face { font-family: "Bricolage Grotesque"; font-weight: 400 800; font-display: swap; src: url(/fonts/bricolage-grotesque-normal-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; }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 400 800; font-display: swap; src: url(/fonts/bricolage-grotesque-normal-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url(/fonts/ibm-plex-mono-500-latin.woff2) format("woff2"); }

:root {
  color-scheme: dark;
  --paper: #11170a; --panel: #1a2110; --ink: #f3f1e4; --ink-soft: #cdc9b6; --stone: #9a957e;
  --line: rgba(243, 241, 228, .14); --green: #b7e63a; --green-deep: #d8f98c; --fel: #f07a5f;
  --display: "Bricolage Grotesque", system-ui, sans-serif; --mono: "IBM Plex Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--display);
  display: grid; align-items: center; min-height: 100vh; overflow-x: hidden;
  background-image: radial-gradient(1100px 600px at 85% 20%, rgba(183, 230, 58, .07), transparent 60%);
}

.topo { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.topo path { fill: none; stroke: var(--ink); stroke-opacity: .08; stroke-width: 1.3; }
.topo path.ring { stroke: var(--green); stroke-opacity: .22; }

.login { position: relative; width: 100%; max-width: 640px; margin: 0 auto; padding: 48px 24px; }
@media (min-width: 900px) { .login { margin-left: max(24px, calc((100vw - 1180px) / 2 + 24px)); } }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; margin-bottom: 56px; }
.brand .dot { width: 18px; height: 18px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(183, 230, 58, .15); animation: pulse 3.2s ease-in-out infinite; }
.brand span { font: 500 .8rem var(--mono); color: var(--stone); letter-spacing: .1em; text-transform: uppercase; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(183, 230, 58, 0); } }

.coords { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 18px; font: 500 .74rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--stone); }
.coords .sep { opacity: .6; }
h1 { margin: 0; font-size: clamp(2.6rem, 7vw, 4.6rem); line-height: 1.02; font-weight: 750; letter-spacing: -.035em; }
h1 em { font-style: normal; color: var(--green); }
.lede { margin: 22px 0 36px; max-width: 34em; color: var(--ink-soft); font-size: 1.08rem; }

.ms {
  display: inline-flex; align-items: center; gap: 12px; padding: 14px 22px; border-radius: 10px;
  background: var(--ink); color: var(--paper); font-weight: 700; font-size: 1rem; text-decoration: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 14px 30px -16px rgba(0, 0, 0, .7);
  transition: transform .15s ease, background .15s ease;
}
.ms svg { width: 20px; height: 20px; flex: none; }
.ms:hover { background: #fff; transform: translateY(-1px); }
.ms:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.fine { margin: 18px 0 0; color: var(--stone); font-size: .86rem; }
.fine b { color: var(--ink-soft); font-weight: 600; }

.err { margin: -14px 0 26px; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(240, 122, 95, .35); background: rgba(240, 122, 95, .1); color: var(--fel); font-size: .92rem; max-width: 34em; }

@media (max-width: 520px) {
  .brand { margin-bottom: 40px; }
  .ms { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .brand .dot { animation: none; } .ms { transition: none; } }
