/* The login pages are drawn from the Control Room's own parts: its brand
   mark, its panel, its lamp and its button. A browser that is not signed in
   cannot load /admin/assets/admin.css, so the rules those parts need are
   repeated here word for word from that file. */

:root {
  color-scheme: dark;
  --canvas: #070912;
  --sidebar: #090b14;
  --panel: #10131f;
  --panel-raised: #151927;
  --panel-soft: #0c0f19;
  --line: rgba(255, 255, 255, 0.085);
  --line-strong: rgba(255, 255, 255, 0.14);
  --ink: #f6f7fb;
  --muted: #8e96ab;
  --quiet: #60687d;
  --cyan: #22d3ee;
  --purple: #8b5cf6;
  --green: #34d399;
  --amber: #f5b94c;
  --red: #fb7185;
  --status: var(--amber);
  font-family: Inter, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--canvas); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% -10%, rgba(124, 92, 255, 0.11), transparent 34%),
    var(--canvas);
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 45px;
  padding: 0 10px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  padding: 9px;
  border: 1px solid rgba(34, 211, 238, 0.34);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(34, 211, 238, 0.13), rgba(139, 92, 246, 0.13));
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.08);
}

.brand-mark i {
  width: 3px;
  border-radius: 4px;
  background: linear-gradient(to top, var(--purple), var(--cyan));
}
.brand-mark i:nth-child(1) { height: 11px; }
.brand-mark i:nth-child(2) { height: 20px; }
.brand-mark i:nth-child(3) { height: 15px; }

.brand > span:last-child { display: flex; flex-direction: column; }
.brand strong { font-size: 13px; letter-spacing: .17em; }
.brand small { margin-top: 2px; color: var(--cyan); font-size: 8px; font-weight: 850; letter-spacing: .22em; }

h1, h2, h3, p { overflow-wrap: anywhere; }

.overall-pill, .status-badge {
  --status: var(--amber);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  border: 1px solid color-mix(in srgb, var(--status) 28%, transparent);
  border-radius: 999px;
  color: var(--status);
  background: color-mix(in srgb, var(--status) 7%, var(--panel));
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.status-dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--status); box-shadow: 0 0 10px color-mix(in srgb, var(--status) 70%, transparent); }
.status-badge { padding: 6px 8px; font-size: 7px; }
.status-badge.error, .status-badge.degraded { --status: var(--red); }

.button {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-height: 43px;
  padding: 0 16px;
  border: 1px solid rgba(34, 211, 238, .25);
  border-radius: 11px;
  color: #dffbff;
  background: linear-gradient(120deg, rgba(34, 211, 238, .12), rgba(139, 92, 246, .1));
  font-size: 11px;
  font-weight: 750;
}
.button:hover { border-color: rgba(34, 211, 238, .52); transform: translateY(-1px); }
.twitch-button { display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px; border-radius: 6px; color: #fff; background: #9146ff; font-size: 14px; font-weight: 700; text-decoration: none; }
.twitch-button:hover { background: #772ce8; }
.twitch-button:focus-visible { outline: 2px solid rgba(145, 70, 255, .6); outline-offset: 2px; }
.twitch-button svg { width: 18px; height: 18px; fill: currentColor; }
.button.secondary { border-color: var(--line-strong); color: #cdd2df; background: var(--panel); }

.song-panel { position: relative; padding: 24px; border: 1px solid var(--line); border-radius: 19px; background: rgba(13, 16, 26, .78); }
.song-panel h2 { margin: 0 0 18px; font-size: 17px; letter-spacing: -.02em; }
.song-actions { display: flex; align-items: center; gap: 10px; }

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

/* Where those parts sit on a page that has no sidebar. */

body { display: grid; place-items: center; min-height: 100vh; margin: 0; padding: 24px; }
main { width: min(340px, 100%); padding: 32px 28px 28px; display: grid; justify-items: center; gap: 22px; }
main .brand { padding: 0; }
main .status-badge { text-align: center; }
main .song-actions { width: 100%; justify-content: center; }
main .twitch-button { width: 100%; justify-content: center; }
