/* hq.bytera.tech: the sign-in, welcome and plain pages. Follows bytera-website/DESIGN.md ("The Drawing
   Sheet"); the design it came from is ui/login-v1.html, which the owner approved on 19 November 2026. */
:root {
  --paper: #f3f0e8;
  --card: #fbf9f4;
  --ink: #0c0c14;
  --ink-soft: #4a4740;
  --ink-muted: #6e6a62;
  --hairline: rgba(12, 12, 20, 0.2);
  --ghost: rgba(12, 12, 20, 0.5);
  --blue: #2563eb;
  --rose: #f43f5e;
  --amber: #f59e0b;
  --cyan: #06b6d4;
  --sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --gutter: clamp(24px, 6vw, 112px);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Header */
.top {
  height: 75px; border-bottom: 1px solid var(--hairline);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand svg { width: 30px; height: 30px; }
.brand-word { font-weight: 800; font-size: 24px; letter-spacing: -0.03em; line-height: 1; }
.brand-word .e { color: var(--rose); }
.brand:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; border-radius: 6px; }
.label { font: 500 11px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }

/* Page */
main {
  min-height: calc(100vh - 75px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  align-items: center; gap: clamp(32px, 5vw, 96px);
  max-width: 1280px; margin: 0 auto;
  padding: 40px var(--gutter) 64px;
}
main.single { grid-template-columns: minmax(0, 440px); justify-content: center; }

/* The drawing: each part of the mark is one check */
.board { width: 100%; max-width: 560px; justify-self: center; }
.board svg { display: block; width: 100%; height: auto; overflow: visible; }
.construct { fill: none; stroke: var(--hairline); stroke-width: .45; stroke-dasharray: 1.6 2.4; }
.part .shape { fill: transparent; stroke: var(--ghost); stroke-width: .64; stroke-dasharray: 2.6 2.2; }
.part.is-now .shape { stroke: var(--ink); animation: march 1.6s linear infinite; }
.part.is-set .shape { fill: var(--c); stroke: var(--c); stroke-dasharray: none; animation: none; }
@keyframes march { to { stroke-dashoffset: -9.6; } }
.p-amber { --c: var(--amber); }
.p-rose { --c: var(--rose); }
.p-blue { --c: var(--blue); }
.p-dot { --c: var(--cyan); }
.welcome .part .shape { animation: fill .5s ease forwards; }
.welcome .p-amber .shape { animation-delay: .1s; }
.welcome .p-rose .shape { animation-delay: .3s; }
.welcome .p-blue .shape { animation-delay: .5s; }
.welcome .p-dot .shape { animation-delay: .7s; }
@keyframes fill { to { fill: var(--c); stroke: var(--c); stroke-dasharray: none; } }

.lead polyline { fill: none; stroke: var(--ghost); stroke-width: 1.3; stroke-dasharray: 4 4; }
.lead circle { fill: var(--ghost); }
.lead text { font: 500 12px var(--mono); letter-spacing: .12em; fill: var(--ink-muted); }
.lead.is-now polyline { stroke: var(--ink); stroke-dasharray: none; }
.lead.is-now circle { fill: var(--ink); }
.lead.is-now text { fill: var(--ink); }
.welcome .lead { opacity: 0; transition: opacity .5s .9s; }

/* The card */
.card {
  width: 100%;
  background: var(--card); border: 1.3px solid var(--ink); border-radius: 16px;
  box-shadow: 0 30px 60px -28px rgba(20, 40, 50, 0.38);
  padding: 30px 32px 28px;
}
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.mini { width: 26px; height: 26px; flex: none; }
.mini .shape { fill: rgba(12, 12, 20, .13); }
.mini .is-now .shape { fill: rgba(12, 12, 20, .42); }
.mini .is-set .shape, .welcome .mini .shape { fill: var(--c); }
h1 { margin: 0 0 8px; font-weight: 700; letter-spacing: -0.035em; line-height: 1.12; font-size: clamp(26px, 2.4vw, 32px); }
.intro { margin: 0 0 22px; color: var(--ink-soft); font-size: 15.5px; }
.small { margin: 16px 0 0; font-size: 13.5px; color: var(--ink-muted); }

.msg { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 18px; font-size: 14.5px; line-height: 1.45; color: var(--ink); }
.msg::before { content: ""; flex: none; width: 18px; height: 7px; margin-top: 7px; border-radius: 4px; background: var(--rose); transform: rotate(45deg); }
.msg.info::before { background: var(--blue); transform: none; width: 7px; height: 7px; border-radius: 50%; }

/* Google's own button style (light theme): white, grey outline, the four-colour G, Roboto Medium. */
.google {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; height: 48px; padding: 0 16px;
  background: #ffffff; color: #1f1f1f; border: 1px solid #747775; border-radius: 9999px;
  font: 500 15px/20px 'Roboto', var(--sans); letter-spacing: .25px; text-decoration: none;
  transition: background .15s, box-shadow .15s;
}
.google svg { width: 20px; height: 20px; flex: none; }
.google:hover { background: #f8faff; box-shadow: 0 1px 2px rgba(60, 64, 67, .3), 0 1px 3px 1px rgba(60, 64, 67, .15); }
.google:active { background: #eef2fb; }
.google:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.link { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.3px; text-underline-offset: 3px; text-decoration-color: var(--hairline); }
.link:hover { text-decoration-color: var(--ink); }
.progress { height: 1.3px; background: var(--hairline); border-radius: 1px; overflow: hidden; margin: 6px 0 4px; }
.progress span { display: block; height: 100%; width: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; animation: grow 1.9s cubic-bezier(.4, 0, .2, 1) .3s forwards; }
@keyframes grow { to { transform: scaleX(1); } }

@media (max-width: 1180px) { main { grid-template-columns: minmax(0, 1fr) minmax(0, 384px); } }
@media (max-width: 860px) {
  main, main.single { grid-template-columns: minmax(0, 1fr); padding-top: 28px; justify-items: center; }
  .board { display: none; }
  .card { max-width: 440px; }
}
@media (max-width: 480px) {
  .top { padding: 0 16px; height: 64px; }
  main, main.single { padding: 20px 16px 40px; min-height: calc(100vh - 65px); align-items: start; }
  .card { padding: 24px 20px 22px; border-radius: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0s !important; animation-delay: 0s !important; transition: none !important; }
  .part.is-now .shape { animation: none !important; }
}
