/* The sign-in page. Same look as the board (app.css): Inter, the dark ink of the board's top bar with its amber glow,
   one white card. Its own small file because it is the only stylesheet served to someone who is not signed in yet. */

:root {
  --ink: #0F1729;
  --ink-2: #334155;
  --muted: #5B6B80;
  --line: #E3E8EF;
  --line-strong: #CBD3DD;
  --surface: #FFFFFF;
  --accent: #F59F0A;
  --accent-hover: #E08E05;
  --bad: #B42318;
  --bad-bg: #FEECEB;
  --on-dark: #A9B6C8;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; color: var(--ink);
  background:
    radial-gradient(900px 480px at 18% -10%, rgba(245, 159, 10, .20), transparent 65%),
    radial-gradient(700px 420px at 100% 110%, rgba(47, 111, 222, .16), transparent 60%),
    var(--ink);
  background-attachment: fixed;
  font: 400 15px/1.5 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, p { margin: 0; }
button, input { font: inherit; color: inherit; }

.wrap { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 32px 16px; }

.card {
  width: 100%; max-width: 408px; padding: 38px 38px 40px;
  background: var(--surface); border-radius: 18px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .38), 0 2px 8px rgba(0, 0, 0, .2);
}

.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 34px; white-space: nowrap; }
.mark { display: inline-flex; }
.mark svg { width: 34px; height: 34px; display: block; }
.mark rect { fill: var(--ink); }
.mark path { fill: var(--accent); }
.brand-name { font-weight: 700; font-size: 18px; letter-spacing: .1em; }
.brand-sep { width: 1px; height: 18px; background: var(--line); }
.brand-sub { color: var(--muted); font-size: 14px; }

h1 { font-size: 24px; line-height: 1.25; font-weight: 700; letter-spacing: -.02em; }
.lead { margin-top: 6px; color: var(--muted); font-size: 14px; }

.msg { margin-top: 20px; padding: 10px 12px; border-radius: 10px; background: var(--bad-bg); color: var(--bad); font-size: 14px; font-weight: 500; }

form { margin-top: 26px; display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field input {
  width: 100%; height: 48px; padding: 0 14px; font-size: 16px;   /* 16px: a phone does not zoom in on focus */
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; outline: 0;
  transition: border-color .15s, box-shadow .15s;
}
.field input:hover { border-color: var(--muted); }
.field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(245, 159, 10, .22); }

/* the site's own call-to-action: amber with dark text */
button {
  margin-top: 8px; height: 48px; border: 0; border-radius: 10px; cursor: pointer;
  background: var(--accent); color: var(--ink); font-size: 15px; font-weight: 700;
  transition: background .15s;
}
button:hover { background: var(--accent-hover); }
button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
button[disabled] { opacity: .7; cursor: default; }

.foot { max-width: 400px; text-align: center; text-wrap: balance; color: var(--on-dark); font-size: 13px; }

@media (max-width: 480px) {
  .wrap { justify-content: flex-start; padding-top: 48px; }
  .card { padding: 30px 22px 30px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
