.account-auth { color-scheme: only light; background: var(--paper); }
.auth-shell {
  --auth-ink: var(--ink-plum);
  --auth-border: #c3b8a8;
  max-width: 66rem;
  margin: 0 auto;
  padding: clamp(1.75rem, 5vw, 4.75rem) clamp(1rem, 3vw, 2.25rem);
  color: var(--auth-ink);
}
.auth-paired {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  grid-template-areas: "form landscape";
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
.auth-shell .auth-landscape { grid-area: landscape; }
.auth-card { grid-area: form; min-width: 0; width: 100%; max-width: 29rem; margin-inline: auto; }
.auth-single .auth-card { max-width: 31rem; }
.auth-shell .auth-back {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 2.5rem;
  margin: 0 0 .85rem; color: #485e53; font-size: .91rem; font-weight: 650; text-decoration: none;
}
.auth-back:hover { text-decoration: underline; }
.auth-card h1 {
  margin: 0; color: var(--auth-ink); font-size: clamp(2.25rem, 3.9vw, 3.45rem);
  font-weight: 790; letter-spacing: -.053em; line-height: 1.04; text-wrap: balance;
}
.auth-lead { margin: .85rem 0 1.65rem; color: #4e5c55; font-size: 1.04rem; line-height: 1.55; overflow-wrap: anywhere; }
.auth-form { display: grid; gap: 1.05rem; }
.auth-name-pair { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: .85rem; }
.password-rules {
  display: flex; flex-wrap: wrap; gap: .35rem .95rem; list-style: none;
  margin: -.55rem 0 .05rem; padding: 0; font-size: .88rem; color: #4d5d54;
}
.password-rules li { display: inline-flex; align-items: center; gap: .35rem; min-height: 1.45rem; }
.rule-mark {
  display: inline-flex; width: 1rem; height: 1rem; flex: none; align-items: center; justify-content: center;
  border: 1.5px solid #748478; border-radius: 50%;
}
.password-rules li[data-met=true] { color: #21563c; }
.password-rules li[data-met=true] .rule-mark { background: #2d6649; border-color: #2d6649; }
.password-rules li[data-met=true] .rule-mark::after {
  content: ""; width: .42rem; height: .24rem; border-left: 2px solid white; border-bottom: 2px solid white;
  transform: translateY(-1px) rotate(-45deg);
}
.password-match { margin: -.55rem 0 0; color: #884437; font-size: .9rem; }
.password-match:empty { display: none; }
.password-match[data-match=true] { color: #21563c; }
@media (max-width: 390px) { .auth-name-pair { grid-template-columns: 1fr; } }
.auth-card .field { margin: 0; display: grid; gap: .4rem; }
.auth-card .field label { font-weight: 670; color: #2d3a34; font-size: .94rem; }
.auth-card .field input {
  width: 100%; min-height: 3.05rem; padding: .66rem .85rem; border-radius: .6rem;
  border: 1px solid var(--auth-border); background: var(--surface); font-size: 1rem; color: var(--auth-ink);
}
.auth-card .field input:focus-visible { outline: 3px solid #426b5b; outline-offset: 2px; }
.auth-label-row { display: flex; justify-content: space-between; gap: .5rem; align-items: baseline; flex-wrap: wrap; }
.auth-label-row a, .auth-footnote a { font-size: .9rem; font-weight: 640; color: #814333; }
.auth-password { display: grid; grid-template-columns: minmax(0, 1fr) auto; background: var(--surface); border: 1px solid var(--auth-border); border-radius: .6rem; }
.auth-card .auth-password input { border: 0; background: transparent; }
.auth-password:focus-within { outline: 3px solid #426b5b; outline-offset: 2px; }
.auth-card .auth-password input:focus-visible { outline: 0; }
.auth-password button { align-self: stretch; padding: 0 .8rem; min-width: 4.75rem; color: #40594d; font-weight: 650; font-size: .88rem; }
.auth-password button:focus-visible { outline-offset: -4px; }
.auth-card .auth-button {
  font: inherit; font-weight: 700; min-height: 3rem; width: 100%; padding: .72rem 1rem; border: 1px solid transparent;
  border-radius: .4rem; display: flex; align-items: center; justify-content: center; text-align: center;
  line-height: 1.3; text-decoration: none; cursor: pointer;
}
.auth-card .auth-button.outlined { color: var(--auth-ink); background: var(--surface); border-color: var(--auth-border); }
.auth-card .auth-button.outlined:hover { background: #eef2e9; }
.auth-divider { display: flex; align-items: center; gap: .8rem; margin: 1.45rem 0 .85rem; color: #556158; font-size: .9rem; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: #d1d7cd; }
.auth-footnote { margin: 1.2rem 0 0; font-size: .94rem; line-height: 1.6; text-align: center; color: #526158; }
.auth-card small, .auth-card .helptext { color: #54645b; font-size: .875rem; line-height: 1.5; }
.auth-card .errorlist { padding: 0; margin: 0; list-style: none; font-size: .94rem; color: #8b2c22; }
.auth-errors { border-left: 3px solid #b45547; background: #fff0e9; padding: .75rem .9rem; }
.auth-card input[aria-invalid=true] { border-color: #ad4839; }
.auth-address { display: grid; gap: .2rem; padding: .85rem 1rem; border: 1px solid var(--warm-edge); border-radius: .65rem; background: var(--surface); }
.auth-address span, .auth-detail { color: var(--sage-ink); font-size: .92rem; }
.auth-address strong { overflow-wrap: anywhere; }
.auth-address a { justify-self: start; color: var(--coral-ink); }
.auth-help { margin-top: 1.3rem; padding-top: .75rem; border-top: 1px solid var(--warm-edge); }
.auth-help summary { color: var(--sage-ink); font-weight: 650; cursor: pointer; }
.auth-help p, .auth-detail { margin: .75rem 0; line-height: 1.55; }
.auth-honey { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 700px) {
  .auth-paired { display: block; }
  .auth-shell { padding: 1.25rem clamp(1rem, 5vw, 2rem) 2rem; }
  .auth-card .auth-back { margin-bottom: .6rem; }
}
