/* Chord Lens login. Dark-only; the hero is drawn, not photographed.
   Tokens and component look ported from chord-lens-website's public/assets/base.css
   so this page reads as the same product as chordlens.heartbeat.me, not a
   lookalike maintained separately.
   Served under: default-src 'none'; style-src 'self'; script-src 'self';
   img-src 'self' data:; form-action 'self'; frame-ancestors 'none'
   — so: no inline style attributes, no webfont, no CDN, no JS. */

:root {
  color-scheme: dark;

  /* ---- chord-lens-website's own tokens, carried over verbatim ---- */
  --ink-900: #05060a;
  --ink-850: #08090e;
  --ink-800: #0d0f16;
  --ink-700: #12151e;
  --ink-600: #191d28;
  --line: #232936;
  --line-soft: #1b202b;
  --line-strong: #313a4c;

  --text: #eef0f5;
  --text-dim: #a4adbe;
  --text-faint: #6e7789;

  --accent: #e01432;
  --accent-hot: #ff2a45;
  --accent-soft: rgba(224, 20, 50, 0.14);
  --accent-line: rgba(224, 20, 50, 0.42);

  --amber: #ffdd00;
  --amber-soft: rgba(255, 221, 0, 0.12);
  --amber-line: rgba(255, 221, 0, 0.38);

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(0.32, 0.72, 0, 1);

  /* ---- roles specific to this page (the site has no auth form) ---- */
  --dot-chords: #8a5cf6;
  --dot-lyrics: var(--chord-ink, #f2b25c);
  --dot-stems: #3ec8c0;
  --dot-key: #5fd08a;

  --step-2: 8px;  --step-3: 12px; --step-4: 16px;
  --step-6: 24px; --step-8: 32px; --step-10: 40px; --step-12: 48px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--ink-850);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.shell { display: grid; grid-template-columns: 1fr; min-height: 100%; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: var(--step-8) var(--step-6);
  background:
    radial-gradient(120% 90% at 10% -10%, var(--accent-soft) 0%, rgba(224, 20, 50, 0) 60%),
    radial-gradient(110% 80% at 100% 110%, rgba(255, 221, 0, 0.08) 0%, rgba(255, 221, 0, 0) 62%),
    linear-gradient(160deg, var(--ink-800) 0%, var(--ink-850) 52%, var(--ink-900) 100%);
}

/* strings and frets, drawn rather than photographed */
.hero::before {
  content: "";
  position: absolute;
  inset: -10% -20%;
  z-index: -2;
  background:
    repeating-linear-gradient(100deg, rgba(238,240,245,.06) 0 1px, rgba(238,240,245,0) 1px 34px),
    repeating-linear-gradient(10deg,  rgba(238,240,245,.04) 0 2px, rgba(238,240,245,0) 2px 132px);
  mask-image: radial-gradient(90% 70% at 50% 50%, #000 0%, transparent 78%);
  transform: rotate(-4deg);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(5,6,10,.1) 0%, rgba(5,6,10,.6) 100%);
}

.hero__inner {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  min-height: 0;
  max-width: 560px;
  margin-inline: auto;
}

.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand__mark { display: block; width: 30px; height: 30px; border-radius: 22%; flex: none; }
.brand__word { font-size: 18px; font-weight: 700; letter-spacing: -.01em; color: var(--text); }

/* Centered in whatever height the brand row leaves -- "middle-center" of the
   panel, not pinned to a corner, so it reads as the page's one focal point
   rather than a footnote under a logo. */
.hero__body {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
}

.eyebrow {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 var(--step-4);
  font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-hot);
}
.eyebrow__rule {
  width: 24px; height: 2px; border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--accent-hot), var(--accent));
}

.hero__headline {
  margin: 0 0 var(--step-4);
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.1; font-weight: 700; letter-spacing: -.02em;
  text-wrap: balance;
}
.hero__headline span { display: block; }
.hero__headline span + span { color: var(--text-dim); }

.hero__lede { margin: 0; max-width: 44ch; font-size: 15px; color: var(--text-dim); }

.tags { display: flex; flex-wrap: wrap; min-width: 0; gap: var(--step-2); margin: var(--step-6) 0 0; padding: 0; list-style: none; }

.tag {
  display: inline-flex; align-items: center; gap: var(--step-2);
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  background: var(--ink-700);
  font-size: 13px; color: var(--text); white-space: nowrap;
}
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-hot); }
.tag--chords::before { background: var(--dot-chords); }
.tag--lyrics::before { background: var(--dot-lyrics); }
.tag--stems::before  { background: var(--dot-stems); }
.tag--key::before    { background: var(--dot-key); }

/* ---------- auth pane ---------- */

.auth { display: flex; justify-content: center; padding: var(--step-10) var(--step-6) var(--step-12); background: var(--ink-850); }
.auth__inner { width: 100%; max-width: 400px; margin: auto 0; }

.auth__title { margin: 0 0 var(--step-2); font-size: 30px; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; color: var(--text); }
.auth__sub { margin: 0 0 var(--step-8); font-size: 15px; color: var(--text-dim); text-wrap: pretty; }

.gbtn {
  display: flex; align-items: center; justify-content: center; gap: var(--step-3);
  width: 100%; min-height: 52px; padding: 14px var(--step-6);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-700);
  color: var(--text);
  font: inherit; font-size: 15px; font-weight: 500;
  text-decoration: none; cursor: pointer;
  transition: transform .18s var(--ease), background-color 160ms ease, border-color 160ms ease;
}
.gbtn:hover { transform: translateY(-1px); background: var(--ink-600); border-color: var(--line-strong); }
.gbtn:active { transform: translateY(0); }
.gbtn__g { width: 18px; height: 18px; flex: none; }

:where(a, button, [tabindex]):focus-visible { outline: 3px solid var(--accent-hot); outline-offset: 2px; border-radius: var(--radius); }

.note { margin: var(--step-6) 0 0; font-size: 13px; color: var(--text-faint); }
.note a { color: var(--text); text-underline-offset: 3px; }

.identity {
  display: flex; align-items: center; gap: var(--step-3);
  padding: var(--step-4); margin: 0 0 var(--step-6);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--ink-700);
}
.identity__avatar {
  display: grid; place-items: center;
  width: 44px; height: 44px; flex: none; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-hot), var(--accent));
  color: #fff; font-size: 18px; font-weight: 700; text-transform: uppercase;
}
.identity__text { min-width: 0; }
.identity__name { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; color: var(--text); }
.identity__email { font-size: 13px; color: var(--text-dim); overflow-wrap: anywhere; }

/* Amber, not the brand red, so a notice never reads as another red button
   competing with "Continue with Google" for attention. */
.banner {
  display: flex; gap: var(--step-3);
  padding: var(--step-4); margin: 0 0 var(--step-6);
  border: 1px solid var(--amber-line); border-radius: var(--radius);
  background: var(--amber-soft);
  font-size: 14px; color: var(--text-dim);
}
.banner__icon { flex: none; width: 20px; height: 20px; color: var(--amber); }
.banner__title { display: block; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.banner p { margin: 0; }

/* ---------- size classes ---------- */

@media (max-width: 839px) {
  .auth { padding-top: var(--step-8); }
  .auth__inner { margin: 0; }          /* no dead vertical gap under the hero band */
}

@media (min-width: 600px) {
  .hero { padding: var(--step-10); }
  .auth { padding: var(--step-12) var(--step-10); }
}

@media (min-width: 840px) {
  .shell { grid-template-columns: 1fr 1fr; height: 100dvh; min-height: 0; overflow: hidden; }
  .hero { padding: var(--step-12); }   /* stays overflow:hidden — the drawn motif overflows by design */
  .auth { overflow-y: auto; padding: var(--step-12); }
}

@media (min-width: 1200px) {
  .hero { padding: 64px; }
  .auth__inner { max-width: 420px; }
}

@media (min-width: 1600px) {
  .hero__inner { max-width: 640px; }
  .auth__inner { margin-inline: 0 auto; }
}

@media (min-width: 840px) and (max-height: 620px) {
  .shell { height: auto; min-height: 100dvh; overflow: visible; }
  .hero, .auth { overflow: visible; }
}

@media (prefers-reduced-motion: reduce) { .gbtn { transition: none; } }

@media (forced-colors: active) {
  .gbtn, .identity, .banner, .tag { border-color: CanvasText; }
  .hero::before, .hero::after { display: none; }
}
