:root {
  color-scheme: dark;
  --ink: #fff3dd;
  --muted: #c8b9a2;
  --gold: #f2c779;
  font: 100%/1.5 var(--body-type);
  background: #0b0a09;
  color: var(--ink);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.account-layout { display: grid; min-height: 100svh; grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr); }
.account-visual {
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at 50% 55%, #533219, #21150e 60%, #0c0907);
  border-inline-end: 1px solid #e2b56d39;
}
.account-visual img { width: 100%; height: auto; mask-image: radial-gradient(ellipse, #000 51%, transparent 77%); }
.account-form {
  padding: clamp(1.3rem, 4vw, 4rem);
  background: radial-gradient(ellipse at 100% 0%, #4e2b193d, transparent 55%), #100d0b;
}
.account-header { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.brand { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--gold); font: 700 1.13rem/1 var(--brand-type); text-decoration: none; letter-spacing: .055em; white-space: nowrap; }
.brand span { width: 1.2rem; height: 1.9rem; background: url('/media/collection.webp') 35.7% 13.7% / 1210% auto no-repeat; mix-blend-mode: screen; }
.back, .legacy { color: var(--muted); font-size: 0.875rem; text-underline-offset: 0.23em; }
.form-content { width: min(100%, 27rem); margin: clamp(2rem, 7vh, 5rem) auto 0; }
h1 { margin: 0 0 1.45rem; font: italic 400 clamp(3.35rem, 5.7vw, 5rem)/0.95 var(--display); text-transform: uppercase; }
h1 em { display: block; color: var(--gold); }
.photo-picker { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 1.55rem; position: relative; width: fit-content; color: var(--gold); cursor: pointer; font-size: 0.95rem; }
.photo-picker:focus-within { outline: 2px solid var(--gold); outline-offset: 6px; border-radius: 8px; }
.photo-picker input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.photo-circle { display: grid; place-items: center; flex: none; width: 62px; height: 62px; overflow: hidden; border-radius: 50%; background: radial-gradient(ellipse at 20% 5%, #553522, #1a120b); border: 1px solid #b58a50; }
.photo-preview { width: 100%; height: 100%; object-fit: cover; }
.field { display: block; margin: 0 0 0.35rem; font-weight: 650; }
input:not([type="file"]) { width: 100%; min-height: 3.35rem; padding: 0.65rem 0.85rem; border: 1px solid #76583a; border-radius: 0.45rem; color: var(--ink); background: #0b0908; }
#email { margin-bottom: 1rem; }
.password-field { position: relative; }
#password { padding-inline-end: 5.25rem; }
.password-toggle { position: absolute; inset: 0 0.45rem 0 auto; padding-inline: 0.45rem; border: 0; color: var(--gold); background: none; font-size: 0.875rem; }
#password-hint { color: var(--muted); font-size: 0.875rem; margin: 0.35rem 0 0; }
#form-error { color: #ffb7a6; margin: 0.8rem 0 0; }
.submit { width: 100%; min-height: 3.45rem; margin-top: 1.4rem; padding: 0.5rem 1rem; border-radius: 0.45rem; border: 1px solid #e8bd79; background: linear-gradient(115deg, #ffe3b2, #d2a362); color: #201308; font-weight: 750; }
.submit:hover { background: #ffdc9f; }
.submit:disabled { opacity: .65; cursor: wait; }
.switch { margin: 1rem 0 0; color: var(--muted); }
.switch button { color: var(--gold); border: 0; padding: 0.3rem 0; background: none; text-decoration: underline; text-underline-offset: 0.22em; }
.legacy { display: inline-block; margin-top: 0.35rem; }
@media (max-width: 760px) {
  .account-layout { display: block; }
  .account-visual { display: none; }
  .account-form { min-height: 100svh; padding: max(1rem, env(safe-area-inset-top)) max(1.25rem, env(safe-area-inset-right)) max(2rem, env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left)); }
  .form-content { margin-top: 2.2rem; }
}
