/* =========================================================
   MUSIK LAUSCH – Anmelden, Registrieren, Warteseite
   Gleiche Gestaltung wie der Player (Farben, Schrift, Bausteine)
========================================================= */

/* Optional: Cinzel (Trajan-ähnlich) selbst hosten – siehe UMZUG.md.
@font-face {
  font-family: "Cinzel";
  src: url("../fonts/cinzel-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
*/

:root {
  --abyss: #030814;
  --panel: #091731;
  --raised: #0f2244;
  --line: rgba(120, 200, 255, 0.09);
  --line-strong: rgba(0, 212, 255, 0.30);
  --cyan: #00D4FF;
  --cyan-soft: rgba(0, 212, 255, 0.12);
  --teal: #00FFCC;
  --amber: #FFB547;
  --ice: #E6F7FF;
  --text: #C4DDEC;
  --muted: #7F9AB2;
  --faint: #4C6682;
  --danger: #FF5470;

  --font-display: "Cinzel", "Trajan Pro", "Trajan", Georgia, "Noto Serif", "Times New Roman", serif;
  --font-ui: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 100% 0%, rgba(0, 110, 190, 0.22), transparent 60%),
    radial-gradient(900px 600px at 0% 100%, rgba(0, 60, 120, 0.25), transparent 60%),
    linear-gradient(180deg, #040b1c 0%, var(--abyss) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}

input { -webkit-user-select: text; user-select: text; font: inherit; color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; touch-action: manipulation; }
img { display: block; }
svg { width: 20px; height: 20px; flex: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 8px; }

/* ---------- Knöpfe ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn-primary { background: var(--cyan); color: var(--abyss); }
.btn-primary:hover { background: #4fe2ff; }
.btn-primary:active { transform: scale(.98); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--ice); }
.btn-ghost:hover { border-color: var(--cyan); background: var(--cyan-soft); }
.btn-block { width: 100%; }

/* ---------- Meldungen ---------- */
.notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid;
  font-size: 14px;
  line-height: 1.45;
}
.notice svg { width: 18px; height: 18px; margin-top: 1px; }
.notice.is-error { background: rgba(255, 84, 112, .10); border-color: rgba(255, 84, 112, .35); color: #FFC3CD; }
.notice.is-error svg { color: var(--danger); }
.notice.is-ok { background: rgba(0, 255, 204, .08); border-color: rgba(0, 255, 204, .30); color: #C8FFF1; }
.notice.is-ok svg { color: var(--teal); }
.notice.is-wait { background: rgba(255, 181, 71, .09); border-color: rgba(255, 181, 71, .32); color: #FFE2B8; }
.notice.is-wait svg { color: var(--amber); }

/* ---------- Formulare ---------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field-label { font-size: 13px; font-weight: 500; color: var(--muted); }
.field input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(0, 0, 0, .25);
  color: var(--ice);
  font-size: 16px; /* verhindert Auto-Zoom auf dem iPhone */
  outline: 0;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 212, 255, .15); }
.pw { position: relative; }
.pw input { padding-right: 48px; }
.pw-toggle {
  position: absolute;
  top: 3px;
  right: 3px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: var(--faint);
}
.pw-toggle:hover { color: var(--ice); }
.pw-toggle .ico-hide, .pw-toggle[aria-pressed="true"] .ico-show { display: none; }
.pw-toggle[aria-pressed="true"] .ico-hide { display: block; }
.hint { font-size: 13px; color: var(--muted); }
.hint:empty { display: none; }
.hint.is-ok { color: var(--teal); }
.hint.is-ok::before { content: "✓ "; }
.form-note { font-size: 13px; color: var(--muted); text-align: center; }

.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--cyan); flex: none; }
.check-sub { color: var(--muted); }

/* ---------- Karte ---------- */
.auth {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
}
.auth-card {
  width: min(420px, 100%);
  padding: 36px 32px 32px;
  border-radius: 22px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(12, 29, 60, .92), rgba(8, 21, 48, .92));
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .3);
  display: grid;
  gap: 22px;
}
.auth-head { text-align: center; }
.auth-logo {
  width: 76px;
  height: 76px;
  margin: 0 auto 16px;
  filter: drop-shadow(0 0 18px rgba(0, 212, 255, .45));
}
.auth-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ice);
  padding-left: .16em; /* gleicht den Buchstabenabstand optisch aus */
}
.auth-sub { margin-top: 8px; font-size: 15px; color: var(--muted); line-height: 1.55; }

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
}
.tab {
  display: grid;
  place-items: center;
  height: 38px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: color .15s, background-color .15s;
}
.tab:hover { color: var(--ice); }
.tab[aria-current="page"] { background: rgba(0, 212, 255, .14); color: var(--ice); box-shadow: inset 0 0 0 1px var(--line-strong); }
.auth .btn-block { margin-top: 4px; }

/* ---------- Als App installieren ---------- */
.install-btn {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px dashed var(--line-strong);
  color: var(--cyan);
  font-size: 14px;
  font-weight: 600;
  transition: background-color .15s, border-color .15s;
}
.install-btn svg { width: 18px; height: 18px; }
.install-btn:hover { background: var(--cyan-soft); border-color: var(--cyan); }

/* ---------- Warteseite ---------- */
.wait-mark { position: relative; width: 76px; margin: 0 auto 18px; }
.wait-mark img { width: 76px; height: 76px; opacity: .55; filter: grayscale(.3); }
.wait-lock {
  position: absolute;
  right: -8px;
  bottom: -6px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #1b2a40;
  color: var(--amber);
  box-shadow: 0 0 0 3px #0a1a36, inset 0 0 0 1px rgba(255, 181, 71, .45);
}
.wait-lock svg { width: 17px; height: 17px; }
.wait-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: .02em;
  color: var(--ice);
  overflow-wrap: anywhere;
}
.wait-actions { display: grid; gap: 10px; }

@media (max-width: 720px) {
  .auth { padding: 24px 12px; align-items: start; }
  .auth-card { padding: 28px 20px 24px; margin-top: 4vh; }
  .auth-title { font-size: 25px; letter-spacing: .12em; padding-left: .12em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
