/* Sign in / sign up / password flows: a focused two-part layout. The art side shows real covers from the platform. */
body.auth-page .nav-side, body.auth-page .tabbar, body.auth-page .topbar { display: none; }
body.auth-page .app { padding-left: 0; }
body.auth-page .main { padding: 0; }
body.auth-page { background: var(--bg); }

.auth { display: grid; min-height: 100vh; min-height: 100dvh; }
.auth-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s6); padding: calc(var(--s6) + var(--safe-top)) var(--gutter) calc(var(--s6) + var(--safe-bottom)); }
.auth-brand { align-self: flex-start; display: inline-flex; align-items: center; gap: 9px; font: 700 19px var(--font-display); letter-spacing: -.035em; }
.auth-brand .brand-word { display: inline; }
.auth-card { width: min(100%, 400px); display: grid; gap: var(--s6); }
.auth-head h1 { font-size: clamp(30px, 8vw, 38px); font-weight: 750; letter-spacing: -.04em; line-height: 1.05; text-wrap: balance; }
.auth-head p { margin-top: var(--s2); color: var(--text-2); font-size: 16px; line-height: 1.45; text-wrap: balance; }
.auth-fine { display: flex; gap: var(--s3); color: var(--text-3); font-size: 13px; }
.auth-fine a:hover { color: var(--text); }

/* art side: phones get a slim banner, wide screens a full-height collage */
.auth-art { position: relative; isolation: isolate; overflow: hidden; height: 168px; background: linear-gradient(160deg, var(--artwork-primary), var(--artwork-bg) 80%); color: #fff; }
.auth-collage { position: absolute; z-index: -1; inset: -30% -12%; display: grid; grid-template-columns: repeat(9, 1fr); gap: 10px; transform: rotate(-9deg); opacity: .5; }
.auth-tile { position: relative; align-self: center; aspect-ratio: 1; overflow: hidden; border-radius: 10px; background: linear-gradient(155deg, hsl(var(--hue) 40% 38%), hsl(calc(var(--hue) + 40) 36% 20%)); box-shadow: 0 10px 30px rgb(0 0 0 / .35); }
.auth-tile img { width: 100%; height: 100%; object-fit: cover; }
.auth-pitch { position: absolute; inset: auto var(--gutter) var(--s5); }
.auth-statement { font: 750 22px/1.12 var(--font-display); letter-spacing: -.03em; text-shadow: 0 2px 24px rgb(0 0 0 / .4); }
.auth-statement em { font-style: normal; color: rgb(255 255 255 / .72); }
.auth-art::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(to top, rgb(0 0 0 / .55), transparent 70%); }

@media (min-width: 900px) {
  .auth { grid-template-columns: minmax(0, 1.15fr) minmax(420px, 1fr); }
  .auth-art { height: auto; min-height: 100vh; min-height: 100dvh; }
  .auth-collage { inset: -20% -25%; grid-template-columns: repeat(3, 1fr); gap: 18px; opacity: .9; transform: rotate(-12deg) scale(1.05); align-content: center; }
  .auth-tile { border-radius: 14px; }
  .auth-tile:nth-child(3n + 2) { transform: translateY(54px); }
  .auth-tile:nth-child(3n) { transform: translateY(-28px); }
  .auth-art::after { background: linear-gradient(to right, rgb(0 0 0 / .1), rgb(0 0 0 / .5)), linear-gradient(to top, rgb(0 0 0 / .6), transparent 55%); }
  .auth-pitch { inset: auto var(--s12) var(--s12); }
  .auth-statement { font-size: clamp(34px, 3.6vw, 56px); line-height: 1.05; letter-spacing: -.045em; }
  .auth-panel { padding: var(--s10) var(--s12); }
}
@media (prefers-reduced-motion: no-preference) {
  @media (min-width: 900px) { .auth-collage { animation: collage 40s ease-in-out infinite alternate; } }
  @keyframes collage { from { translate: 0 -2%; } to { translate: 0 2%; } }
}

/* form pieces specific to these pages */
.auth-form { gap: var(--s4); }
.auth-form .field label { font-size: 13px; color: var(--text-2); font-weight: 600; letter-spacing: .01em; }
.auth-form .field input:not([type="checkbox"]) { min-height: 50px; font-size: 16px; border-radius: 12px; }
.input-affix .toggle-pw { margin-right: 6px; min-width: 44px; min-height: 40px; padding: 0 10px; border-radius: 8px; color: var(--text-2); font-size: 13px; font-weight: 600; }
.input-affix .toggle-pw:hover { color: var(--text); background: var(--fill); }
.field .input-affix input { min-height: 50px; }
.pw-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 2px; }
.pw-meter i { height: 3px; border-radius: 2px; background: var(--fill-hover); transition: background var(--t-base); }
.pw-meter[data-level="1"] i:nth-child(-n+1) { background: var(--danger); }
.pw-meter[data-level="2"] i:nth-child(-n+2) { background: #ff9f0a; }
.pw-meter[data-level="3"] i:nth-child(-n+3) { background: #c8d438; }
.pw-meter[data-level="4"] i { background: #2fb457; }
.auth-row { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); }
.auth-alt { color: var(--text-2); font-size: 15px; text-align: center; }
.auth-note { padding: var(--s3) var(--s4); border-radius: var(--r-sm); background: var(--fill); color: var(--text-2); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.auth-note b { color: var(--text); }
.auth-state { display: grid; justify-items: start; gap: var(--s3); }
.auth-state .icon { width: 44px; height: 44px; font-size: 44px; color: var(--accent-text); }
.auth-form .btn--primary { min-height: 52px; font-size: 16px; border-radius: 12px; }
