.auth-page { overflow-y: auto; background-image: radial-gradient(circle, #ddd 1px, transparent 1px); background-size: 36px 36px; background-position: 18px 18px; }
.auth-shell { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(40px, 8vw, 150px); max-width: 1440px; min-height: calc(100svh - 58px); margin: 0 auto; padding: 146px 8% 64px; }
.auth-story { padding-block: 10px; }
.auth-eyebrow, .auth-index, .auth-step, .auth-footer { font-family: 'Courier New', monospace; font-size: 10px; line-height: 1.6; letter-spacing: 1.2px; color: #777; }
.auth-eyebrow { margin: 0 0 40px; }
.auth-page .auth-title { margin: 0; font-size: clamp(64px, 7.2vw, 110px); line-height: .98; letter-spacing: -.075em; white-space: normal; transform-style: flat; will-change: auto; }
.auth-title span { display: block; font-family: 'Arial Black', Arial, sans-serif; }
.auth-page .auth-title em { display: block; margin: 0; padding-bottom: .05em; font: inherit; font-family: 'Arial Black', Arial, sans-serif; letter-spacing: inherit; transform: none; }
/* Size the longer login statement from its actual column width. */
.auth-page[data-auth-page="login"] .auth-story { container-type: inline-size; min-width: 0; }
.auth-page[data-auth-page="login"] .auth-title { font-size: clamp(30px, 4.5vw, 72px); font-size: clamp(30px, 12.5cqw, 72px); line-height: 1.08; letter-spacing: -.055em; }
.auth-page[data-auth-page="login"] .auth-title span { display: block; white-space: nowrap; }
.auth-page[data-auth-page="login"] .auth-title span::after { content: none; }
.auth-story-copy { margin: 32px 0 0; font-size: 14px; line-height: 1.95; color: #777; letter-spacing: .02em; }
.auth-index { margin-top: 50px; }
.auth-content { width: 100%; max-width: 440px; justify-self: end; }
.auth-heading { position: relative; margin-bottom: 30px; }
.auth-heading h2 { margin: 8px 0 10px; font-size: 29px; font-weight: 600; letter-spacing: -.04em; }
.auth-heading p { margin: 0; font-size: 12px; color: #777; line-height: 1.65; }
.auth-form { display: flex; flex-direction: column; gap: 20px; }
.form-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.form-field label, .avatar-upload-copy label { font-size: 12px; color: #333; letter-spacing: .04em; }
.form-field input, .form-field select { width: 100%; min-height: 42px; border: 0; border-bottom: 1px solid #ccc; border-radius: 0; padding: 10px 0; background: transparent; color: #080808; font: inherit; font-size: 13px; outline: none; }
.form-field input::placeholder { color: #999; }
.form-field input:focus, .form-field select:focus { border-bottom-color: #080808; box-shadow: 0 1px 0 #080808; }
.form-field input[aria-invalid="true"] { border-bottom-color: #080808; border-bottom-style: dashed; }
.form-field small { font-size: 10px; color: #888; line-height: 1.5; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.password-field { position: relative; }
.password-field input { padding-right: 43px; }
.password-toggle { position: absolute; right: 0; top: 0; bottom: 0; border: 0; padding: 0 2px; background: transparent; font: inherit; font-size: 10px; color: #777; cursor: pointer; }
.submit-button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 47px; margin-top: 7px; border: 1px solid #080808; padding: 12px 17px; background: #080808; color: #fff; font: inherit; font-size: 13px; letter-spacing: .06em; cursor: pointer; }
.submit-button:hover { background: #333; }
.submit-button:disabled { opacity: .55; cursor: wait; }
.submit-button > span:last-child { font-size: 20px; line-height: 1; }
.auth-switch { margin: 0; padding-top: 2px; text-align: center; color: #888; font-size: 11px; }
.auth-switch a { margin-left: 8px; color: #080808; text-decoration: underline; text-underline-offset: 4px; }
.avatar-uploader { position: relative; display: flex; align-items: center; gap: 18px; padding-bottom: 18px; border-bottom: 1px solid #e3e3e3; }
.avatar-preview { position: relative; display: grid; place-items: center; flex: 0 0 66px; width: 66px; height: 66px; border: 1px solid #ccc; border-radius: 50%; overflow: hidden; background: var(--paper); }
.avatar-preview > span { font-size: 26px; font-weight: 300; color: #999; }
.avatar-preview img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: cover; object-position: center; filter: none; }
.avatar-upload-copy p { margin: 7px 0; font-size: 10px; color: #888; }
.avatar-actions { display: flex; gap: 16px; }
.text-button { padding: 0; border: 0; background: transparent; font: inherit; font-size: 11px; color: #080808; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.remove-avatar { color: #888; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.avatar-uploader:focus-within .avatar-preview { outline: 1px solid #080808; outline-offset: 3px; }
.form-status { margin: 0; font-size: 12px; line-height: 1.6; color: #080808; border-left: 2px solid #080808; padding-left: 10px; }
.auth-footer { display: flex; justify-content: space-between; align-items: center; padding: 12px 4.2% 28px; }
.auth-footer a { color: #777; text-decoration: none; font-family: Arial, sans-serif; font-size: 11px; }
.auth-footer a:hover { color: #080808; }
.auth-page button:focus-visible, .auth-page a:focus-visible { outline: 1px solid #080808; outline-offset: 4px; }
@media (min-width: 1700px) { .auth-shell { padding-top: 180px; } }
@media (max-width: 900px) { .auth-shell { gap: 40px; padding-inline: 6%; } .auth-page .auth-title { font-size: 64px; } }
@media (max-width: 640px) {
  .auth-shell { grid-template-columns: 1fr; gap: 36px; padding: 155px 7% 46px; min-height: auto; }
  .auth-story { padding: 0; } .auth-eyebrow { margin-bottom: 17px; font-size: 8px; }
  .auth-page .auth-title { font-size: 44px; line-height: 1.05; }
  .auth-title span, .auth-page .auth-title em { display: inline; }
  .auth-title span::after { content: ' '; }
  .auth-story-copy { margin-top: 16px; font-size: 12px; } .auth-index { display: none; }
  .auth-content { max-width: none; } .auth-heading { margin-bottom: 25px; } .auth-heading h2 { font-size: 26px; }
  .form-row { gap: 18px; } .auth-footer { font-size: 8px; }
}
