/* The login panel. Tokens are the app's own (coaching/shell.html :root), so the
   panel is a cream sheet on the shell's chrome, like every panel in the app.
   Plain geometry only: no backdrop-filter, no SVG filters. */
@font-face{font-family:Manrope;src:url(/fonts/Manrope.woff2) format('woff2');font-weight:200 800;font-display:swap}

:root{
  --white:#FCFAF7; --ink:#241E1A; --soft:#4F443C; --mute:#706359; --hair:#C6B7A9;
  --hairs:#E4DAD0; --sand:#F8F4EF; --paper:#fff; --alarmt:#8B503E;
  --sans:Manrope,-apple-system,Segoe UI,Arial,sans-serif;
  --s2:8px; --s3:12px; --s4:16px; --s5:24px; --s6:32px;
  --t2:12.5px; --t3:13.5px; --t4:15px; --t5:16px;
  /* The app's corners (shell/shell.html :root): one ramp, continuous where the
     browser can draw it. */
  --k:1; --corner:round;
  --r2:calc(12px*var(--k)); --r3:calc(20px*var(--k));
  --gap:12px;
  --shell:#3A322C;
}
@supports (corner-shape:superellipse(1.5)){:root{--k:1.32;--corner:superellipse(1.5)}}

*{box-sizing:border-box}
[hidden]{display:none!important}
html,body{margin:0}
body{min-height:100vh;min-height:100dvh;background:var(--shell);color:var(--ink);
  font-family:var(--sans);font-size:var(--t5);line-height:1.5;
  -webkit-font-smoothing:antialiased}
/* the app's rule: no focus rings; fields say focus with their border instead */
:focus,:focus-visible{outline:none}
/* a long press on a button, a link or the mark brings up no sheet and picks up no text; the fields keep theirs */
a,button,img{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
/* nor does one anywhere else on the page: nothing here is text to take away */
html{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
input,textarea{-webkit-user-select:text;user-select:text}

.ground{min-height:100vh;min-height:100dvh;display:grid;place-items:center;
  padding:max(var(--gap),env(safe-area-inset-top)) var(--gap) max(var(--gap),env(safe-area-inset-bottom))}
/* From a Home Screen the page runs under the phone's status bar, whose clock is white: the strip
   behind it stays the night brown whatever the rail is set to. In a browser the page begins
   under that bar, the inset is 0 and so is the strip. */
body::before{content:"";position:fixed;z-index:5;left:0;right:0;top:0;height:env(safe-area-inset-top);background:#3A322C}
.card{width:min(100%,392px);background:var(--white);border:1px solid var(--hairs);
  border-radius:var(--r3);corner-shape:var(--corner);padding:40px var(--s6) var(--s6);
  box-shadow:0 1px 3px rgba(36,30,26,.12),0 18px 48px -16px rgba(36,30,26,.55)}

.mark{margin:0 0 var(--s6);display:flex;justify-content:center;line-height:0}
.mark img{display:block;width:150px;height:auto}

.note{margin:0 0 var(--s5);text-align:center;font-size:var(--t4);line-height:1.45;color:var(--soft);
  text-wrap:balance}
.legend{margin:0;font:700 var(--t5)/1.3 var(--sans);letter-spacing:-.02em;color:var(--ink)}

.view{display:flex;flex-direction:column}
.form{display:flex;flex-direction:column;gap:var(--s3)}

.gbtn{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:44px;
  padding:0 var(--s5);background:var(--paper);color:var(--ink);border:1px solid var(--hairs);
  border-radius:999px;font:700 var(--t3) var(--sans);letter-spacing:-.01em;text-decoration:none;
  cursor:pointer;transition:background-color .14s ease-out,border-color .14s ease-out}
.gbtn:hover{background:var(--sand);border-color:var(--hair)}
.gbtn svg{flex:none}

.rule{height:0;margin:var(--s5) 0;border:0;border-top:1px solid var(--hairs)}
/* Google only where the server says it has a client (auth/routes.js loginPage):
   otherwise no Google button, and no rule under it. */
:root:not([data-google="on"]) .gbtn,:root:not([data-google="on"]) .gbtn+.rule{display:none}

.field{display:flex;flex-direction:column;gap:6px;font:600 var(--t3)/1.2 var(--sans);color:var(--soft)}
.field input{width:100%;min-height:44px;padding:0 14px;background:var(--paper);color:var(--ink);
  border:1px solid var(--hairs);border-radius:var(--r2);corner-shape:var(--corner);font:400 var(--t4) var(--sans);
  transition:border-color .14s ease-out}
.field input:hover{border-color:var(--hair)}
.field input:focus{border-color:var(--ink)}
.field input[readonly]{background:var(--sand);color:var(--soft)}

.btn{width:100%;min-height:44px;margin-top:var(--s2);padding:0 20px;background:var(--ink);color:var(--white);
  border:0;border-radius:999px;font:700 var(--t3) var(--sans);letter-spacing:-.01em;cursor:pointer;
  transition:background-color .14s ease-out}
.btn:hover{background:var(--soft)}
.btn[disabled]{opacity:.5;cursor:default}
.btn[disabled]:hover{background:var(--ink)}

.link{align-self:center;margin-top:var(--s4);padding:6px 8px;background:none;border:0;cursor:pointer;
  font:600 var(--t2) var(--sans);color:var(--mute);text-underline-offset:2px}
.link:hover{color:var(--ink);text-decoration:underline}

.err{margin:0;font-size:var(--t3);line-height:1.5;color:var(--alarmt)}
#flash{margin:0 0 var(--s5);text-align:center;text-wrap:balance}
.ok{margin:0;font-size:var(--t3);line-height:1.5;color:var(--soft)}

@media(max-width:420px){
  .card{padding:32px var(--s5) var(--s5)}
}
@media(prefers-reduced-motion:reduce){
  .gbtn,.btn,.field input{transition:none}
}
