/* Log in, sign up and redeem pages. Loaded after home.css, which supplies the palette,
   logo, buttons, pill and keyframes. */

.auth { min-height: 100vh; display: flex; }

.auth-main {
  flex: 1 1 520px; min-width: 0;
  display: flex; flex-direction: column;
  padding: clamp(20px, 4vw, 40px) clamp(16px, 5vw, 64px);
}
.auth-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.auth-back {
  display: inline-flex; align-items: center; min-height: 44px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  color: var(--muted); text-decoration: none;
}
.auth-center { flex: 1; display: flex; align-items: center; padding: 48px 0; }
.auth-form { width: 100%; max-width: 420px; }
.auth-form .eyebrow { margin-bottom: 18px; }
.auth-form h1 {
  font-weight: 800; font-size: clamp(40px, 4.6vw, 56px);
  line-height: 0.95; letter-spacing: -0.05em; text-transform: uppercase;
}
.auth-sub { margin: 16px 0 32px; color: var(--muted); }

.alert {
  display: flex; gap: 10px; align-items: flex-start;
  margin-bottom: 20px; padding: 14px 16px; border-radius: 14px;
  background: rgba(239, 98, 74, 0.1); border: 1px solid rgba(239, 98, 74, 0.4);
  color: #f7a090; font-size: 14px;
}
.alert svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }

.oauth { display: flex; flex-direction: column; gap: 12px; }
.btn-oauth {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; min-height: 56px; border-radius: 16px;
  background: var(--ink); color: var(--bg);
  font-weight: 700; font-size: 16px; text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.btn-oauth:hover { background: var(--amber); color: var(--bg); transform: translateY(-1px); }
.btn-oauth.primary { background: var(--amber); }
.btn-oauth.primary:hover { background: #fcd34d; }
.btn-oauth svg { width: 20px; height: 20px; flex-shrink: 0; }

.auth-legal { margin-top: 16px; font-size: 13px; color: var(--dim); }
.auth-legal a { color: var(--muted); }

.auth-links {
  margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--muted);
}
.auth-links a { color: var(--amber); font-weight: 700; text-decoration: none; }
.auth-links a:hover { text-decoration: underline; }

.auth-foot { display: flex; gap: 18px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; }
.auth-foot a, .auth-foot span { color: var(--dim); text-decoration: none; }

/* ---------- right-hand art panel ---------- */
.auth-art {
  flex: 1 1 560px; min-width: 0; position: relative; overflow: hidden;
  background: var(--s1); border-left: 1px solid rgba(248, 250, 252, 0.08);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 56px;
}
.auth-art-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.3) saturate(1.1); transform: scale(1.15); }

/* log in: last record spun */
.spun { position: relative; width: min(420px, 100%); }
.spun-stack { position: relative; padding-right: 22%; }
.spun-disc {
  position: absolute; top: 4%; right: 0; width: 76%; aspect-ratio: 1 / 1; border-radius: 50%;
  background: repeating-radial-gradient(circle, #050505 0 2px, #1a1a1a 2px 3px);
  display: grid; place-items: center; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55);
  animation: spin 1.8s linear infinite;
}
.spun-disc img { width: 34%; aspect-ratio: 1 / 1; border-radius: 50%; object-fit: cover; }
.spun-cover { position: relative; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6); }
.spun-meta { margin-top: 32px; }
.spun-meta .mono { font-size: 11px; letter-spacing: 0.16em; color: var(--dim); }
.spun-title { margin-top: 8px; font-weight: 800; font-size: 32px; letter-spacing: -0.03em; line-height: 1.05; }
.spun-artist { margin-top: 4px; color: var(--muted); }

/* sign up: side A tracklist under a big record */
.lp {
  position: absolute; top: -12%; right: -18%; width: 64%; aspect-ratio: 1 / 1; border-radius: 50%;
  background: repeating-radial-gradient(circle, #050505 0 3px, #141414 3px 4px);
  display: grid; place-items: center; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  animation: spin 8s linear infinite;
}
.lp .final-label { width: 36%; }
.tracklist { position: relative; width: 100%; max-width: 460px; }
.tracklist-head {
  padding-bottom: 14px; border-bottom: 1px solid var(--line-strong);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: var(--dim);
}
.tracklist ol { list-style: none; margin: 0; padding: 0; }
.tracklist li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 20px 0; border-bottom: 1px solid rgba(248, 250, 252, 0.08); }
.tracklist li:last-child { border-bottom: 0; }
.tracklist .step-num { padding-top: 4px; }
.tracklist b { display: block; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.tracklist span { display: block; margin-top: 2px; font-size: 15px; color: var(--muted); }

/* redeem: centered card */
.redeem { position: relative; min-height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
.redeem-top { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: clamp(20px, 4vw, 40px) clamp(16px, 5vw, 64px); }
.redeem-disc {
  position: absolute; bottom: -260px; left: -200px; width: 560px; aspect-ratio: 1 / 1; border-radius: 50%;
  background: repeating-radial-gradient(circle, #050505 0 3px, #121212 3px 4px);
  display: grid; place-items: center; opacity: 0.85;
  animation: spin 10s linear infinite;
}
.redeem-disc .final-label { background: #1f1f23; }
.redeem-disc .final-label span { border-color: rgba(248, 250, 252, 0.06); }
.redeem-disc .final-label i { background: var(--bg); }
.redeem-main { position: relative; z-index: 1; flex: 1; display: grid; place-items: center; padding: 24px 16px 64px; }
.redeem-card {
  width: 100%; max-width: 460px; padding: clamp(28px, 5vw, 44px); border-radius: 28px;
  background: var(--s1); border: 1px solid var(--line); box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45);
}
.redeem-card h1 { font-weight: 800; font-size: clamp(32px, 4vw, 42px); line-height: 1; letter-spacing: -0.04em; text-transform: uppercase; }
.redeem-card .auth-sub { margin: 14px 0 28px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; }
.redeem-form { display: flex; flex-direction: column; gap: 14px; }
.redeem-form label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: var(--dim); }
.redeem-form input {
  width: 100%; min-height: 60px; padding: 0 18px; border-radius: 16px;
  border: 1px solid rgba(248, 250, 252, 0.16); background: var(--bg); color: var(--ink);
  font-family: var(--mono); font-size: 20px; letter-spacing: 0.18em; text-transform: uppercase; text-align: center;
}
.redeem-form input::placeholder { color: #64748b; }
.redeem-form input:focus { outline: none; border-color: var(--amber); }
.redeem-form button { width: 100%; border: 0; cursor: pointer; font-family: inherit; }
.redeem-foot { position: relative; z-index: 1; display: flex; justify-content: center; padding: 0 16px 32px; }

@media (max-width: 880px) {
  .auth-art { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .spun-disc, .lp, .redeem-disc { animation: none; }
}
