:root {
  color-scheme: dark;
  --bg: #080b12;
  --bg-elevated: rgba(18, 22, 34, 0.74);
  --bg-elevated-solid: #141824;
  --bg-recessed: rgba(255, 255, 255, 0.045);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.17);
  --text: #f4f6fb;
  --text-muted: #9da4b8;
  --text-dim: #737a8e;
  --accent: #f59e49;
  --accent-soft: rgba(245, 158, 73, 0.16);
  --lime: #d5edaa;
  --lime-soft: rgba(213, 237, 170, 0.14);
  --rose: #f6a39a;
  --rose-soft: rgba(246, 163, 154, 0.12);
  --ease-apple: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans Variable', 'DM Sans', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
a {
  font: inherit;
}

[hidden] {
  display: none !important;
}

input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear,
input[data-has-toggle]::-ms-reveal,
input[data-has-toggle]::-ms-clear {
  display: none !important;
  width: 0;
  height: 0;
}

.login-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(88px);
  opacity: 0.72;
  transform: translate3d(0, 0, 0);
}

.orb-warm {
  width: min(56vw, 620px);
  height: min(56vw, 620px);
  top: -18%;
  left: -10%;
  background: radial-gradient(circle, rgba(245, 158, 73, 0.24) 0%, rgba(210, 96, 56, 0.08) 48%, transparent 72%);
  animation: orbFloatA 16s ease-in-out infinite alternate;
}

.orb-cool {
  width: min(54vw, 600px);
  height: min(54vw, 600px);
  right: -12%;
  bottom: -20%;
  background: radial-gradient(circle, rgba(98, 138, 240, 0.2) 0%, rgba(62, 92, 178, 0.08) 50%, transparent 72%);
  animation: orbFloatB 19s ease-in-out infinite alternate;
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes orbFloatA {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(28px, 22px, 0) scale(1.06); }
}

@keyframes orbFloatB {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-24px, -20px, 0) scale(1.05); }
}

.login-shell {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  max-width: 1160px;
  margin: 0 auto;
  padding: 20px 28px 34px;
}

.login-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  transition: opacity 0.2s var(--ease-apple);
}

.brand-link:hover {
  opacity: 0.88;
}

.brand-link img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pill-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 550;
  text-decoration: none;
  transition: color 0.18s var(--ease-apple), border-color 0.18s var(--ease-apple), background 0.18s var(--ease-apple), transform 0.12s var(--ease-apple);
}

.pill-link:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.08);
}

.pill-link:active {
  transform: scale(0.97);
}

.login-stage {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 444px);
  align-items: center;
  gap: clamp(28px, 4.6vw, 68px);
  padding: clamp(20px, 3.6vh, 46px) 0;
}

.login-showcase {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 520px;
}

.showcase-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.045);
  color: #cdd3e3;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.showcase-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(213, 237, 170, 0.16);
}

.login-showcase h1 {
  margin: 0;
  font-size: clamp(34px, 4.1vw, 52px);
  line-height: 1.03;
  letter-spacing: -0.045em;
  font-weight: 760;
  color: #fbfcff;
}

.headline-accent {
  display: block;
  background: linear-gradient(108deg, #f8f9ff 10%, #ffd7bc 54%, #f59e49 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.login-hero-art {
  position: relative;
  width: 100%;
  height: 368px;
  margin-top: 8px;
  user-select: none;
  isolation: isolate;
}

.login-hero-art::before {
  content: "";
  position: absolute;
  inset: -12% -6%;
  background:
    radial-gradient(ellipse at 52% 42%, rgba(245, 158, 73, 0.2), transparent 56%),
    radial-gradient(ellipse at 28% 72%, rgba(124, 108, 206, 0.2), transparent 52%);
  pointer-events: none;
  z-index: 0;
}

.login-orbit {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.login-orbit.one {
  width: 300px;
  height: 300px;
  left: 50%;
  top: 44%;
  border: 1px solid rgba(255, 255, 255, 0.085);
  transform: translate(-54%, -50%);
  animation: orbitSpin 54s linear infinite;
}

.login-orbit.two {
  width: 210px;
  height: 210px;
  left: 50%;
  top: 44%;
  border: 1px dashed rgba(245, 158, 73, 0.22);
  transform: translate(-54%, -50%);
  animation: orbitSpin 38s linear infinite reverse;
}

@keyframes orbitSpin {
  from { transform: translate(-54%, -50%) rotate(0deg); }
  to { transform: translate(-54%, -50%) rotate(360deg); }
}

.login-album {
  position: absolute;
  aspect-ratio: 1;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #141928;
  box-shadow: 0 26px 56px rgba(0, 0, 0, 0.56), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  will-change: transform;
}

.login-album img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.album-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(132deg, rgba(255, 255, 255, 0.26), transparent 36%, transparent 74%, rgba(255, 255, 255, 0.08));
  pointer-events: none;
}

.login-album.left {
  width: 118px;
  left: 16px;
  top: 96px;
  z-index: 1;
  opacity: 0.88;
  transform: rotate(-13deg);
  animation: floatLeft 7.4s ease-in-out infinite;
}

.login-album.right {
  width: 114px;
  right: 22px;
  top: 22px;
  z-index: 1;
  opacity: 0.92;
  transform: rotate(11deg);
  animation: floatRight 8.1s ease-in-out infinite;
}

.login-album.main {
  width: 172px;
  left: 146px;
  top: 32px;
  z-index: 2;
  border-color: rgba(255, 255, 255, 0.26);
  transform: rotate(-5deg);
  animation: floatMain 6.8s ease-in-out infinite;
}

@keyframes floatMain {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-5deg); }
  50% { transform: translate3d(0, -10px, 0) rotate(-3.5deg); }
}

@keyframes floatLeft {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-13deg); }
  50% { transform: translate3d(-4px, -7px, 0) rotate(-11deg); }
}

@keyframes floatRight {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(11deg); }
  50% { transform: translate3d(4px, 7px, 0) rotate(13deg); }
}

.float-chip {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  background: rgba(16, 21, 35, 0.78);
  backdrop-filter: blur(18px) saturate(165%);
  -webkit-backdrop-filter: blur(18px) saturate(165%);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  font-size: 11px;
  font-weight: 620;
  letter-spacing: 0.01em;
  color: #edf0fa;
  white-space: nowrap;
}

.palette-chip {
  left: 4px;
  top: 16px;
  animation: chipFloatA 6.4s ease-in-out infinite;
}

.lang-chip {
  right: 4px;
  top: 178px;
  animation: chipFloatB 7.2s ease-in-out infinite;
}

@keyframes chipFloatA {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -6px, 0); }
}

@keyframes chipFloatB {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, 6px, 0); }
}

.palette-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.palette-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--dot, #f59e49);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.lang-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7ef2d4;
  box-shadow: 0 0 10px rgba(126, 242, 212, 0.7);
}

.lang-tag {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #b7c2df;
  padding-left: 4px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.floating-song-card {
  position: absolute;
  left: 18px;
  right: 36px;
  bottom: 8px;
  z-index: 5;
  border-radius: 22px;
  padding: 16px 18px 15px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(150deg, rgba(20, 26, 44, 0.84), rgba(13, 17, 29, 0.92));
  backdrop-filter: blur(26px) saturate(185%);
  -webkit-backdrop-filter: blur(26px) saturate(185%);
  box-shadow: 0 28px 68px rgba(0, 0, 0, 0.62), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  animation: songFloat 7.8s ease-in-out infinite;
}

@keyframes songFloat {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -5px, 0); }
}

.floating-song-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.floating-song-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.mini-cover {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(135deg, #f59e49, #242942);
}

.mini-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.floating-song-title {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.floating-song-title strong {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 670;
  color: #f8faff;
  letter-spacing: -0.015em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.floating-song-title span {
  font-size: 11px;
  color: var(--text-muted);
}

.playing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(245, 158, 73, 0.78);
  animation: dotPulse 1.8s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 0.6; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.2); }
}

.eq-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 14px;
  flex-shrink: 0;
}

.eq-bars span {
  width: 2.5px;
  border-radius: 2px;
  background: rgba(255, 232, 210, 0.92);
  animation: eqPulse 1.3s ease-in-out infinite;
}

.eq-bars span:nth-child(1) { height: 7px; animation-delay: 0s; }
.eq-bars span:nth-child(2) { height: 13px; animation-delay: 0.2s; }
.eq-bars span:nth-child(3) { height: 9px; animation-delay: 0.42s; }

@keyframes eqPulse {
  0%, 100% { transform: scaleY(0.55); opacity: 0.7; }
  50% { transform: scaleY(1); opacity: 1; }
}

.floating-words {
  display: flex;
  flex-wrap: wrap;
  gap: 0 6px;
  font-size: 15.5px;
  line-height: 1.35;
  letter-spacing: -0.02em;
  font-weight: 660;
}

.floating-words span {
  color: rgba(244, 246, 251, 0.36);
  transition: color 0.35s var(--ease-apple), text-shadow 0.35s var(--ease-apple);
}

.floating-words span.is-lit {
  color: #ffffff;
  text-shadow: 0 2px 18px rgba(245, 158, 73, 0.38);
}

.floating-words span.is-past {
  color: rgba(244, 246, 251, 0.8);
}

.floating-subline {
  margin: 5px 0 11px;
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255, 200, 149, 0.88);
  letter-spacing: -0.01em;
}

.floating-progress {
  position: relative;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.floating-progress i {
  display: block;
  width: 62%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffe2c8, #f59e49);
  box-shadow: 0 0 12px rgba(245, 158, 73, 0.5);
  animation: progSlide 10s linear infinite;
}

@keyframes progSlide {
  from { width: 22%; }
  to { width: 88%; }
}

.login-card {
  position: relative;
  border-radius: 26px;
  padding: 30px 28px 28px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  box-shadow: 0 32px 84px rgba(0, 0, 0, 0.56), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.card-head {
  margin-bottom: 20px;
}

.card-head h2 {
  margin: 0 0 6px;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: #fff;
}

.card-head p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-muted);
}

.mode-tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 4px;
  margin-bottom: 22px;
  border-radius: 13px;
  background: var(--bg-recessed);
  border: 1px solid rgba(255, 255, 255, 0.08);
  --tab-index: 0;
}

.mode-indicator {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc((100% - 8px) / 3);
  height: calc(100% - 8px);
  border-radius: 9.5px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
  transform: translateX(calc(var(--tab-index) * 100%));
  transition: transform 0.28s var(--ease-apple);
  pointer-events: none;
}

.mode-tab {
  position: relative;
  z-index: 1;
  appearance: none;
  border: 0;
  background: none;
  padding: 8px 6px;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.18s var(--ease-apple);
}

.mode-tab[aria-selected="true"] {
  color: #fff;
}

.mode-tab:hover:not([aria-selected="true"]) {
  color: #dce1ee;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field[hidden] {
  display: none;
}

.field-label {
  font-size: 12px;
  font-weight: 600;
  color: #d6dbe9;
  letter-spacing: 0.005em;
}

.field-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.field input {
  width: 100%;
  height: 45px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 11, 18, 0.62);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.18s var(--ease-apple), box-shadow 0.18s var(--ease-apple), background 0.18s var(--ease-apple);
}

.field input[data-has-toggle] {
  padding-right: 44px;
}

.field input::placeholder {
  color: var(--text-dim);
}

.field input:focus {
  border-color: rgba(245, 158, 73, 0.72);
  background: rgba(11, 15, 25, 0.9);
  box-shadow: 0 0 0 3.5px rgba(245, 158, 73, 0.16);
}

.toggle-pass {
  position: absolute;
  right: 7px;
  appearance: none;
  border: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: color 0.16s, background 0.16s;
}

.toggle-pass:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.toggle-pass svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.field-hint {
  font-size: 11.5px;
  color: var(--text-dim);
  line-height: 1.4;
}

.field-hint[data-state="ok"] {
  color: var(--lime);
}

.auth-status {
  min-height: 0;
  font-size: 12.5px;
  line-height: 1.5;
  border-radius: 11px;
  color: var(--lime);
}

.auth-status:empty {
  display: none;
}

.auth-status:not(:empty) {
  padding: 11px 13px;
  border: 1px solid rgba(213, 237, 170, 0.24);
  background: var(--lime-soft);
}

.auth-status[data-error="true"] {
  color: var(--rose);
  border-color: rgba(246, 163, 154, 0.28);
  background: var(--rose-soft);
}

.submit-btn {
  position: relative;
  appearance: none;
  border: 0;
  height: 46px;
  margin-top: 4px;
  border-radius: 13px;
  background: #f4f2ec;
  color: #0e1015;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.34);
  transition: transform 0.14s var(--ease-apple), opacity 0.18s, background 0.18s;
}

.submit-btn:hover:not(:disabled) {
  background: #ffffff;
  transform: translateY(-1px);
}

.submit-btn:active:not(:disabled) {
  transform: scale(0.985);
}

.submit-btn:disabled {
  opacity: 0.65;
  cursor: progress;
}

.btn-spinner {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(14, 16, 21, 0.22);
  border-top-color: #0e1015;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.secondary-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  min-height: 24px;
}

.text-btn {
  appearance: none;
  border: 0;
  background: none;
  padding: 4px 0;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  text-underline-offset: 3px;
  transition: color 0.16s;
}

.text-btn:hover {
  color: #fff;
  text-decoration: underline;
}

.signedin-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.signedin-box[hidden],
.auth-panel[hidden] {
  display: none;
}

.signedin-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 15px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.signedin-avatar {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  flex-shrink: 0;
  background: linear-gradient(155deg, #3c2b21, #191a24 72%);
  border: 1px solid rgba(245, 158, 73, 0.36);
  color: #f6c28f;
  font-size: 20px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.signedin-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.signedin-meta strong {
  font-size: 15px;
  font-weight: 650;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.signedin-meta span {
  font-size: 12.5px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.signedin-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  width: 100%;
}

.primary-link,
.outline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.14s var(--ease-apple), background 0.18s, border-color 0.18s;
}

.primary-link {
  background: #f4f2ec;
  color: #0e1015;
}

.primary-link:hover {
  background: #fff;
  transform: translateY(-1px);
}

.outline-btn {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.outline-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.primary-link:active,
.outline-btn:active {
  transform: scale(0.985);
}

.login-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 12px;
  color: var(--text-dim);
}

.login-footer nav {
  display: flex;
  gap: 16px;
}

.login-footer a {
  color: var(--text-muted);
  text-decoration: none;
}

.login-footer a:hover {
  color: #fff;
}

@media (max-width: 960px) {
  .login-stage {
    grid-template-columns: minmax(0, 480px);
    justify-content: center;
    gap: 28px;
    padding-top: 18px;
  }

  .login-showcase {
    max-width: none;
    gap: 14px;
  }

  .login-hero-art {
    height: 316px;
  }

  .login-album.main {
    width: 152px;
    left: 140px;
  }

  .login-album.left {
    width: 102px;
  }

  .login-album.right {
    width: 100px;
  }

  .login-showcase h1 {
    font-size: clamp(30px, 6.2vw, 40px);
  }
}

@media (max-width: 720px) {
  .login-hero-art {
    display: none;
  }
}

@media (max-width: 520px) {
  .login-shell {
    padding: 16px 16px 26px;
  }

  .login-card {
    padding: 24px 20px 22px;
    border-radius: 22px;
  }

  .mode-tab {
    font-size: 11.5px;
    padding: 8px 4px;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .login-card,
  .floating-song-card,
  .float-chip {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--bg-elevated-solid);
  }
}

@media (prefers-reduced-motion: reduce) {
  .orb-warm,
  .orb-cool,
  .login-orbit,
  .login-album,
  .float-chip,
  .floating-song-card,
  .playing-dot,
  .eq-bars span,
  .floating-progress i,
  .btn-spinner {
    animation: none;
  }

  .mode-indicator,
  .submit-btn,
  .oauth-btn,
  .pill-link,
  .primary-link,
  .outline-btn,
  .floating-words span {
    transition: none;
  }
}

.oauth-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.oauth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 14px;
  font: inherit;
  font-size: 14.5px;
  font-weight: 640;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease, border-color 0.16s ease, opacity 0.16s ease;
}

.oauth-btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.oauth-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.oauth-btn--google {
  background: #ffffff;
  color: #101218;
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.oauth-btn--google:hover:not(:disabled) {
  background: #f3f5f9;
  transform: translateY(-1px);
}

.oauth-btn--apple {
  background: rgba(255, 255, 255, 0.08);
  color: #fbfcff;
  border-color: rgba(255, 255, 255, 0.2);
}

.oauth-btn--apple:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.34);
  transform: translateY(-1px);
}

.oauth-note {
  margin: 14px 0 0;
  color: #9ba3b7;
  font-size: 12.5px;
  line-height: 1.5;
  text-align: center;
}

.native-handoff {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(213, 237, 170, 0.08);
  border: 1px solid rgba(213, 237, 170, 0.24);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.native-handoff p {
  margin: 0;
  font-size: 13px;
  color: #dce4d0;
}
