.account-page { min-height: 100svh; }

.auth-layout {
  position: relative;
  width: 100%;
  max-width: none;
  padding: clamp(6rem, 35svh, 23rem) 7.3% clamp(3rem, 7vh, 6rem);
}
.auth-column { width: min(100%, 29rem); min-width: 0; }
.auth-column h1 {
  font-size: clamp(2.4rem, 4.1vw, 3.6rem);
  line-height: 1.04;
  font-weight: 650;
  letter-spacing: -.048em;
  text-wrap: balance;
}
.intro-copy, .switch-mode { color: var(--muted); }
.intro-copy { max-width: 42ch; margin-top: .8rem; line-height: 1.55; }
.switch-mode { margin-top: 1.25rem; }
#account-form, .key-box { display: grid; gap: 1.1rem; margin-top: 1.55rem; }
.auth-field { display: grid; gap: .45rem; }
#chatgpt-login { width: 100%; margin-top: 1.6rem; }
.account-divider { display: flex; align-items: center; gap: .9rem; margin-block: 1rem; color: var(--muted); font-size: .875rem; }
.account-divider::before, .account-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
#chatgpt-option:not([hidden]) ~ #account-form { margin-top: 0; }

.label-row { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .4rem; }
.label-row a, .switch-mode a { color: var(--ink); text-decoration-color: var(--control-line); }
.label-row a:hover, .switch-mode a:hover { text-decoration-color: var(--ink); }
.label-row a { font-size: .9rem; }
.auth-field input:-webkit-autofill {
  -webkit-text-fill-color: var(--ink);
  box-shadow: 0 0 0 50px #13191d inset;
  caret-color: var(--ink);
}
.password-control { position: relative; }
.password-control input { padding-right: 3.2rem; }
.reveal-password {
  position: absolute;
  inset: 1px 1px 1px auto;
  display: grid;
  width: 2.8rem;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: var(--muted);
}
.reveal-password:hover { color: var(--ink); }
.eye-icon { width: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.6; }
.eye-slash { display: none; }
.reveal-password[aria-pressed="true"] .eye-slash { display: block; }
.field-hint { color: var(--muted); font-size: .875rem; line-height: 1.5; }
.auth-action { width: fit-content; min-width: min(100%, 11rem); margin-top: .25rem; }
.account-error { padding: .75rem .9rem; border-inline-start: 2px solid #e99c98; color: #ffc6c3; background: rgba(63, 25, 31, .65); }
.key-box { gap: .55rem; }
.key-box textarea { resize: vertical; user-select: all; font-family: var(--mono); }
#copy-key { justify-self: start; margin-top: .35rem; }
#copy-status { margin-block: .65rem 1.1rem; }

@media (max-width: 47rem) {
  .account-page .prism-backdrop { opacity: .64; background-size: auto 78%; background-position: right top; }
  .auth-layout { padding: clamp(3rem, 15svh, 7.5rem) clamp(1.25rem, 6vw, 2.5rem) 3.5rem; }
  .auth-column { margin-inline: auto; }
}
