/* ==========================================================================
   VALSTR: the sign-in page (Camelot CM3, 30 Oct 2026)
   The Hub's design on one centred card: colours, type, radius, shadow and easing come from the platform tokens in
   css/styles.css (docs/design/tokens.md), which loads first. Motion is the Hub's page entry, and stops under Reduce
   Motion.
   ========================================================================== */

.auth-page{min-height:100svh;}

.auth{
  min-height:100svh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:28px;
  padding:40px 16px;
}

.auth-brand{display:flex;align-items:center;gap:12px;}
.auth-mark{display:block;width:auto;height:44px;}
.auth-word{display:block;width:auto;height:28px;}

.auth-card{
  width:100%;
  max-width:440px;
  padding:36px 36px 32px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.auth-card h1{margin:0 0 8px;font-size:30px;font-weight:700;line-height:1.15;letter-spacing:-.02em;color:var(--fg);}
.auth-lede{margin:0 0 24px;color:var(--fg-2);}
.auth-error{margin:0 0 20px;padding:10px 14px;border-radius:12px;background:var(--risk-soft);color:var(--risk);font-weight:600;}

/* The Hub's primary: a flat brand pill at 600. It brightens and lifts slightly on hover. */
.auth-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  width:100%;
  padding:12px 20px;
  border-radius:999px;
  background:var(--brand);
  color:#fff;
  font-size:15px;
  font-weight:600;
  text-decoration:none;
  transition:filter .2s var(--ease),transform .2s var(--ease),box-shadow .2s var(--ease);
}
.auth-btn:hover{filter:brightness(1.1);transform:translateY(-1px);box-shadow:0 8px 20px color-mix(in srgb, var(--brand) 25%, transparent);}
.auth-btn:active{transform:none;box-shadow:none;}
.auth-btn:focus-visible{outline:2px solid var(--brand-text);outline-offset:3px;}
.auth-ms-chip{display:grid;place-items:center;flex:none;width:26px;height:26px;border-radius:7px;background:#fff;}
.auth-ms{display:block;width:16px;height:16px;}

.auth-legal{font-size:12.5px;color:var(--fg-3);}

/* The Hub's page entry (tokens.md, Motion): each part fades and rises, 90ms apart, 600ms each. Backwards fill only,
   as the Hub's (lesson P70). */
.auth-enter{animation:auth-rise .6s var(--ease) backwards;}
.auth-enter--1{animation-delay:90ms;}
.auth-enter--2{animation-delay:180ms;}
@keyframes auth-rise{from{opacity:0;transform:translateY(10px);}to{opacity:1;transform:none;}}

@media (prefers-reduced-motion:reduce){
  .auth-enter{animation:none;}
  .auth-btn{transition:none;}
  .auth-btn:hover{transform:none;}
}

@media (max-width:520px){
  .auth{gap:22px;padding:28px 16px;}
  .auth-card{padding:28px 22px 24px;}
  .auth-card h1{font-size:26px;}
}
/* Sign-in follows the device setting (the person is not known yet) through CSS alone, so the page runs no script: the
   dark values are css/styles.css's dark block, kept the same by CamelotDarkTest (Camelot CM9), and the wordmark is the
   light one, as in the tray. */
@media (prefers-color-scheme: dark){
  :root{
    color-scheme: dark;
    --shadow: 0 1px 2px rgba(0,0,0,.4);
    --shadow-lift: 0 20px 50px rgba(0,0,0,.55);
    --bg: #141318;
    --surface: #1D1C23;
    --sunk: #18171D;
    --line: #2C2B33;
    --line-strong: #3B3A44;
    --fg: #F2F0EF;
    --fg-2: #BDBAC2;
    --fg-3: #8C8994;
    --brand: #0618F5;
    --brand-text: #929BFF;
    --brand-soft: #1A1D4C;
    --rail: #0D0C10;
    --data: #4352FF;
    --track: #2D2C35;
    --ok: #4FC79B;
    --warn: #F2A25C;
    --risk: #FF7B6F;
    --c1: #3443FF;
    --c2: #6A75FF;
    --c3: #A4AAFF;
    --c4: #57555F;
  }
  .auth-word{content:url("/assets/branding/valstr-wordmark-light.png");}
}
