/* Sign in, sign up, password pages: art panel on the left, form on the right (form only on phones). */
.auth-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 480px);
  gap: 0;
}

.auth-art {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 120px clamp(24px, 6vw, 96px) 48px;
  border-right: 1px solid var(--line-soft);
  background: radial-gradient(700px 400px at 30% 40%, rgba(139, 108, 255, 0.18), transparent 70%);
  overflow: hidden;
}
.auth-art .logo { position: absolute; top: 32px; left: clamp(24px, 6vw, 96px); }
.art-quote { margin: 0; font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.08; max-width: 12em; }
.auth-art .faint { margin: 0; font-size: 1.05rem; }

.fan { position: relative; height: 260px; margin: 40px 0 18px; }
.fan-card {
  position: absolute;
  left: calc(50% - 75px + var(--x));
  top: 10px;
  width: 150px;
  height: 214px;
  border-radius: 14px;
  background: linear-gradient(150deg, var(--c1), var(--c2));
  box-shadow: var(--shadow-lift), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  transform: rotate(var(--r));
  transform-origin: 50% 110%;
  overflow: hidden;
  transition: transform 0.3s;
}
.fan-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(255, 255, 255, 0.45), transparent 42%); }
.fan-card.holo { background: var(--holo); }
.fan-card span { position: absolute; left: 10px; bottom: 10px; z-index: 1; padding: 3px 8px; border-radius: 7px; background: rgba(10, 14, 26, 0.78); color: #eef1fb; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; }
.fan:hover .fan-card { transform: rotate(calc(var(--r) * 1.35)); }

.auth-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px clamp(20px, 4vw, 48px);
  padding-bottom: calc(40px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--panel) 80%, transparent);
}
.auth-card form { width: 100%; max-width: 380px; margin: 0 auto; }
.auth-card .alert { width: 100%; max-width: 380px; margin-left: auto; margin-right: auto; }
.auth-card h1 { margin: 0 0 6px; font-size: 1.7rem; font-weight: 800; }
.auth-card p.muted { margin: 0 0 18px; line-height: 1.45; }
.auth-card form > h1 + .field { margin-top: 20px; }
.auth-card small { font-size: 0.78rem; }
.auth-mobile-logo { display: none; margin: 0 auto 28px; }

.btn.wide { width: 100%; margin-top: 6px; }
.auth-links { margin: 20px 0 0; text-align: center; font-size: 0.92rem; color: var(--muted); }

.link-button {
  display: block;
  width: 100%;
  margin-top: 12px;
  border: 0;
  background: none;
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .auth-card { justify-content: flex-start; padding-top: calc(48px + env(safe-area-inset-top)); background: transparent; }
  .auth-mobile-logo { display: inline-flex; }
}
