/* The sign-in page's own look, kept out of the app's token set on purpose:
 * this page renders with NO session and NO app shell, so it owns every
 * value it uses rather than depending on tokens.css having loaded. */
:root {
  --ink:   #12121a;
  --muted: #6f7180;
  --glass: rgba(255,255,255,.55);
  --edge:  rgba(255,255,255,.75);
  --mono:  ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --sans:  system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; font-family: var(--sans); color: var(--ink);
  background: #dfe3ec; -webkit-font-smoothing: antialiased;
  display: grid; place-items: center; padding: 24px;
  overflow: hidden;
}

/* ---- the liquid: slow, large, overlapping colour fields ---------------- */
@keyframes float1 { 0%,100%{transform:translate(0,0) scale(1) rotate(0deg)}
                    33%{transform:translate(6vw,-5vh) scale(1.18) rotate(40deg)}
                    66%{transform:translate(-4vw,4vh) scale(.94) rotate(-25deg)} }
@keyframes float2 { 0%,100%{transform:translate(0,0) scale(1)}
                    50%{transform:translate(-7vw,6vh) scale(1.22)} }
@keyframes float3 { 0%,100%{transform:translate(0,0) scale(1)}
                    50%{transform:translate(5vw,7vh) scale(1.1)} }
@keyframes float4 { 0%,100%{transform:translate(0,0) scale(1.05)}
                    50%{transform:translate(-6vw,-6vh) scale(.9)} }
.blob { position: fixed; border-radius: 50%; pointer-events: none; z-index: 0; will-change: transform; }
.b1 { top:-18%; left:-12%; width:60vw; height:60vw; filter: blur(60px);
      background: radial-gradient(circle at 38% 38%, oklch(0.72 0.17 265 / .62), transparent 70%);
      animation: float1 30s ease-in-out infinite; }
.b2 { bottom:-26%; right:-14%; width:66vw; height:66vw; filter: blur(72px);
      background: radial-gradient(circle at 55% 45%, oklch(0.80 0.13 196 / .58), transparent 68%);
      animation: float2 38s ease-in-out infinite; }
.b3 { top:12%; right:6%; width:40vw; height:40vw; filter: blur(64px);
      background: radial-gradient(circle at 50% 50%, oklch(0.86 0.12 78 / .5), transparent 66%);
      animation: float3 34s ease-in-out infinite; }
.b4 { bottom:6%; left:10%; width:34vw; height:34vw; filter: blur(58px);
      background: radial-gradient(circle at 45% 55%, oklch(0.74 0.16 330 / .38), transparent 68%);
      animation: float4 44s ease-in-out infinite; }

/* ---- the glass -------------------------------------------------------- */
@keyframes riseIn { from { opacity:0; transform: translateY(18px) scale(.97); }
                    to   { opacity:1; transform: none; } }
@keyframes sheen  { 0% { transform: translateX(-130%) rotate(8deg); }
                    55%,100% { transform: translateX(160%) rotate(8deg); } }
@keyframes shake  { 10%,90%{transform:translateX(-2px)} 30%,70%{transform:translateX(4px)}
                    50%{transform:translateX(-4px)} }

.card {
  position: relative; z-index: 1; width: 100%; max-width: 392px;
  padding: 38px 34px 30px; border-radius: 26px; overflow: hidden;
  background: linear-gradient(150deg, rgba(255,255,255,.68), rgba(255,255,255,.42));
  backdrop-filter: blur(34px) saturate(1.9);
  -webkit-backdrop-filter: blur(34px) saturate(1.9);
  border: 1px solid var(--edge);
  box-shadow:
    0 1px 0 rgba(255,255,255,.95) inset,
    0 -1px 0 rgba(255,255,255,.35) inset,
    0 30px 70px -24px rgba(18,20,42,.42),
    0 2px 12px rgba(18,20,42,.07);
  animation: riseIn .55s cubic-bezier(.2,.85,.25,1) both;
}
/* A single slow highlight travelling across the glass. */
.card::after {
  content: ""; position: absolute; top: -60%; bottom: -60%; left: 0; width: 45%;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.42) 50%, transparent 70%);
  animation: sheen 9s ease-in-out infinite; pointer-events: none;
}
.card.bad { animation: shake .42s cubic-bezier(.36,.07,.19,.97) both; }

.mark { display: flex; align-items: center; gap: 10px; }
.mark .sq {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  background: linear-gradient(145deg, oklch(0.68 0.19 258), oklch(0.55 0.2 275));
  box-shadow: 0 4px 12px -3px oklch(0.6 0.2 265 / .6), 0 1px 0 rgba(255,255,255,.5) inset;
  display: grid; place-items: center; color: #fff; font: 700 12px var(--mono);
}
.mark .n { font-size: 15px; font-weight: 700; letter-spacing: -.02em; }
.mark .n small { display: block; font: 400 10.5px var(--mono); color: var(--muted);
  letter-spacing: .04em; margin-top: 1px; }

h1 { margin: 26px 0 4px; font-size: 25px; font-weight: 700; letter-spacing: -.03em; }
.lede { margin: 0 0 22px; font-size: 13px; color: var(--muted); line-height: 1.5; }

label { display: block; font: 600 10px var(--mono); letter-spacing: .13em;
  color: var(--muted); margin-bottom: 7px; }
.field { position: relative; margin-bottom: 14px; }
input {
  width: 100%; padding: 13px 15px; border-radius: 13px; font: 14px var(--sans);
  color: var(--ink); background: rgba(255,255,255,.62);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 1px 2px rgba(18,20,42,.05) inset;
  transition: border-color .18s, box-shadow .18s, background .18s;
  -webkit-appearance: none;
}
input::placeholder { color: #a9abb8; }
input:focus {
  outline: none; background: rgba(255,255,255,.82);
  border-color: oklch(0.68 0.19 258 / .65);
  box-shadow: 0 0 0 4px oklch(0.68 0.19 258 / .16);
}

button {
  width: 100%; margin-top: 8px; padding: 13px 16px; border: 0; border-radius: 13px;
  font: 600 14px var(--sans); color: #fff; cursor: pointer; position: relative;
  background: linear-gradient(140deg, oklch(0.62 0.19 258), oklch(0.52 0.2 272));
  box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 12px 26px -12px oklch(0.55 0.2 265 / .9);
  transition: transform .16s, filter .16s, box-shadow .16s;
}
button:hover:not(:disabled) { filter: brightness(1.07); transform: translateY(-1px); }
button:active:not(:disabled) { transform: translateY(0) scale(.99); }
button:disabled { opacity: .65; cursor: default; }

.msg { margin-top: 14px; font-size: 12.5px; line-height: 1.5; min-height: 18px;
  color: oklch(0.5 0.19 25); }
.foot { margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.6);
  font: 400 10.5px/1.6 var(--mono); color: #8b8d9b; }
.foot b { color: #6f7180; font-weight: 600; }

@media (max-width: 420px) {
  .card { padding: 30px 24px 24px; border-radius: 22px; }
  h1 { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .blob, .card, .card::after { animation: none !important; }
}
