/* First migrated screen only. Original is entirely defined by historical CSS.
   Never set a font, color-scheme, layout or legacy variable on the whole HUB. */
/* Match the ID specificity of the historical body:has(#auth:not(.hidden)). */
html[data-ps-theme="studio"][data-ps-screen="auth"] body:has(#auth) {
  background:
    radial-gradient(ellipse 34% 48% at 16% 30%, #72d9d930, transparent 75%),
    radial-gradient(ellipse 38% 42% at 85% 25%, #e5b5722c, transparent 75%),
    var(--ps-bg);
}

html[data-ps-theme="studio"] #auth {
  font-family: var(--ps-font-ui);
  color: var(--ps-text);
  color-scheme: dark;
}

html[data-ps-theme="studio"] #auth .auth-card {
  border-radius: 9px;
  border-color: #7baaa480;
  background: linear-gradient(135deg, #173638f5, #09191ff5);
  box-shadow: inset 0 1px #c7fff016, 0 10px 28px #0005;
}

html[data-ps-theme="studio"] #auth .auth-card::before {
  border-radius: inherit;
  background: linear-gradient(135deg, #72e6df33, #c9a97722);
}

html[data-ps-theme="studio"] #auth .auth-wave { border-radius: inherit; }
html[data-ps-theme="studio"] #auth .auth-wave::before { background: #72d9d930; }
html[data-ps-theme="studio"] #auth .auth-wave::after { background: #e5b5722c; }

html[data-ps-theme="studio"] #auth .auth-logo-badge {
  background-image:
    linear-gradient(#10272b, #10272b),
    linear-gradient(135deg, #8fc6bb, #c9a977);
  box-shadow: inset 0 1px #bcf5ed17, 0 8px 32px #0005;
}

html[data-ps-theme="studio"] #auth .auth-product-name {
  font-weight: 600;
  letter-spacing: -.055em;
}

html[data-ps-theme="studio"] #auth .auth-product-name span { color: #f7faf5; }
html[data-ps-theme="studio"] #auth .auth-product-name strong { color: var(--ps-gold); font-weight: 600; }
html[data-ps-theme="studio"] #auth .auth-product-sub { color: var(--ps-gold-mid); font-weight: 600; }

html[data-ps-theme="studio"] #auth .auth-card h2 {
  color: var(--ps-ink);
  font-weight: 600;
}

html[data-ps-theme="studio"] #auth .auth-subtitle,
html[data-ps-theme="studio"] #auth .auth-footer { color: var(--ps-muted); }
html[data-ps-theme="studio"] #auth .auth-input-icon { color: var(--ps-gold-light); }

html[data-ps-theme="studio"] #auth input {
  font-family: var(--ps-font-ui);
  border-radius: 4px;
  border-color: var(--ps-line-strong);
  background: var(--ps-surface-soft);
  color: var(--ps-text);
}

html[data-ps-theme="studio"] #auth input::placeholder { color: var(--ps-muted); }
html[data-ps-theme="studio"] #auth input:focus {
  border-color: var(--ps-focus);
  background: var(--ps-bg-soft);
  box-shadow: 0 0 0 3px #72e6df33;
}

html[data-ps-theme="studio"] #auth .auth-login-btn {
  font-family: var(--ps-font-ui);
  font-weight: 600;
  border: 1px solid var(--ps-button-border);
  border-radius: 4px;
  background: var(--ps-button-bg);
  color: var(--ps-button-text);
  box-shadow: var(--ps-button-shadow);
  transition: background-color .2s ease, box-shadow .2s ease;
}

html[data-ps-theme="studio"] #auth .auth-login-btn:hover {
  background: var(--ps-button-hover);
  color: var(--ps-button-text);
  box-shadow: var(--ps-button-shadow);
}

html[data-ps-theme="studio"] #auth .auth-login-btn:focus-visible {
  outline: 3px solid var(--ps-focus);
  outline-offset: 4px;
}

html[data-ps-theme="studio"] #auth .auth-login-btn:disabled {
  opacity: .55;
  box-shadow: none;
  cursor: not-allowed;
}

html[data-ps-theme="studio"] #authStatus { color: var(--ps-gold-mid); }

@media (prefers-reduced-motion: reduce) {
  html[data-ps-theme="studio"] #auth input,
  html[data-ps-theme="studio"] #auth .auth-login-btn { transition: none; }
}
