.account-page {
  max-width: 536px;
  margin: clamp(24px, 6vw, 84px) auto;
  padding: 0 20px;
}
.account-page .auth-card {
  min-width: 0;
  padding: clamp(24px, 4vw, 44px);
  overflow-wrap: anywhere;
  box-shadow: 0 5px 18px rgb(15 27 61 / 5%);
}
.account-page .auth-card h1 { font-size: clamp(30px, 3.2vw, 44px); }
.account-page .auth-card p { line-height: 1.55; }
.account-page .auth-field input { border-radius: 10px; }
.account-page .errorlist, .account-page .form-error { color: #b42318; }
.account-page .auth-switch a { text-decoration: underline; text-underline-offset: .2em; }
.account-password { display: flex; align-items: stretch; gap: 6px; }
.account-password input { min-width: 0; flex: 1; }
.account-password button {
  background: white; color: #075f43; border: 1px solid #779b8c; border-radius: 10px;
  padding: 0 12px; min-height: 44px; min-width: 58px; cursor: pointer; font-weight: 650;
}
.account-hint { color: var(--muted); font-size: .9rem; }

.account-page:is(.account-register, .account-state) {
  position: relative;
  isolation: isolate;
  overflow: clip;
  display: grid;
  min-height: calc(100svh - 72px);
  max-width: none;
  margin: 0;
  padding: clamp(26px, 6vw, 84px) 20px;
  background: #f4fbf8;
}
.account-page:is(.account-register, .account-state)::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(72vw, 940px);
  height: clamp(300px, 52vw, 650px);
  pointer-events: none;
  border-radius: 48% 66% 51% 42%;
  background: #dff5eb;
  transform: rotate(-11deg);
}
.account-state { grid-template-columns: minmax(0, 544px); align-content: start; justify-content: center; }
.account-state::before { inset: -28% auto auto 26%; }
.account-page:is(.account-register, .account-state) .auth-card {
  padding: clamp(24px, 4vw, 48px);
  border: none;
  border-radius: 24px;
  box-shadow: 0 12px 36px rgb(16 84 72 / 8%);
}
.account-state .auth-card { margin-top: clamp(0px, 4vw, 38px); }
.account-state .auth-card h1 { text-wrap: balance; }
.account-state .auth-card p:last-child { margin-bottom: 0; }
.account-state .auth-switch { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); text-align: start; }
.account-actions { margin-top: 24px; }
.account-notice { padding: 12px 16px; border-radius: 10px; background: #fff6e8; }
.account-symbol {
  position: relative;
  display: block;
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
  border-radius: 16px;
  background: var(--mint);
  color: var(--green);
}
.account-symbol::before, .account-symbol::after { content: ""; position: absolute; }
.account-symbol--mail::before {
  inset: 18px 14px;
  border: 2px solid currentColor;
  border-radius: 5px;
}
.account-symbol--mail::after {
  inset: 16px 20px auto;
  height: 16px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.account-symbol--verify::before {
  inset: 14px;
  border: 2px solid currentColor;
  border-radius: 50%;
}
.account-symbol--verify::after {
  inset: 22px auto auto 23px;
  width: 10px;
  height: 8px;
  border: solid currentColor;
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg);
}
.account-symbol--expired { color: #885710; background: #fff3de; }
.account-symbol--expired::before { inset: 14px; border: 2px solid currentColor; border-radius: 50%; }
.account-symbol--expired::after { inset: 20px auto auto 27px; width: 7px; height: 10px; border: solid currentColor; border-width: 0 0 2px 2px; }
.account-symbol--lock::before { inset: 15px 20px auto; height: 15px; border: 2px solid currentColor; border-radius: 9px 9px 0 0; }
.account-symbol--lock::after { inset: 26px 16px 15px; border: 2px solid currentColor; border-radius: 5px; }

.account-register {
  grid-template-columns: minmax(0, 510px) minmax(340px, 510px);
  justify-content: center;
  align-items: center;
  gap: clamp(28px, 6vw, 100px);
}
.account-register::before { inset: 9% auto auto -12%; }
.account-register-intro { min-width: 0; padding-inline: clamp(12px, 2.5vw, 32px); }
.account-register-intro p { max-width: 30ch; font-size: clamp(18px, 2vw, 23px); line-height: 1.5; }
.account-register-intro .account-register-display {
  margin: 0;
  max-width: 13ch;
  font: 800 clamp(36px, 5vw, 64px)/1.07 "Nunito Sans", "Avenir Next", Avenir, system-ui, sans-serif;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.account-register-intro img { display: block; width: 100%; height: auto; margin-top: 32px; }
.account-register .auth-card h1 { margin-bottom: 10px; }
.account-register .auth-form { margin-top: 22px; gap: 16px; }
.account-register .auth-switch { padding-top: 20px; border-top: 1px solid var(--line); }
@media (max-width: 740px) {
  .account-state .auth-card { margin-top: 0; }
  .account-register { grid-template-columns: minmax(0, 544px); }
  .account-register .auth-card { grid-row: 1; }
  .account-register-intro { display: none; }
}
