@font-face {
  font-family: Inter;
  src: url('./assets/inter.ttf') format('truetype');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'PT Serif';
  src: url('./assets/pt-serif-bold.ttf') format('truetype');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --canvas: #ecf3fe;
  --surface: #fff;
  --subtle: #e3eefa;
  --ink: #17273b;
  --muted: #53677e;
  --border: #cedded;
  --border-strong: #6291bc;
  --primary: #285f91;
  --primary-hover: #194c78;
  --on-primary: #fff;
  --focus: #255e98;
  --shadow: 0 6px 12px rgba(18, 43, 71, 0.1);
  --heading-font: 'PT Serif', Georgia, serif;
}

:root[data-theme='burgundy'] {
  --canvas: #f8f7f5;
  --subtle: #f2eeeb;
  --ink: #24282d;
  --muted: #62666a;
  --border: #ddd6d3;
  --border-strong: #a9828f;
  --primary: #752b40;
  --primary-hover: #5d2033;
  --focus: #8b3850;
  --shadow: 0 6px 12px rgba(71, 31, 45, 0.1);
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --canvas: #101923;
  --surface: #1b2b3a;
  --subtle: #263c50;
  --ink: #f1f6fb;
  --muted: #bdc9d5;
  --border: #41566b;
  --border-strong: #87b1d2;
  --primary: #9dcdf1;
  --primary-hover: #b8e0fc;
  --on-primary: #122437;
  --focus: #b9e0ff;
  --shadow: 0 6px 12px rgba(0, 0, 0, 0.21);
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
}

h1, h2, p {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible, a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

h1[tabindex='-1']:focus {
  outline: none;
}

.app-shell {
  width: min(100%, 480px);
  min-height: 100svh;
  margin-inline: auto;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) calc(32px + env(safe-area-inset-bottom)) env(safe-area-inset-left);
}

.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  min-height: 54px;
  padding-inline: 12px;
}

.wordmark {
  grid-column: 2;
  margin-top: 9px;
  color: var(--primary);
  font: 700 24px/30px var(--heading-font);
}

.skip {
  justify-self: end;
  min-height: 44px;
  margin-top: 4px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
}

.teacher {
  --portrait-width: min(260px, calc(100% - 72px));
  position: relative;
  padding-block: 18px 11px;
}

.portrait {
  position: relative;
  width: var(--portrait-width);
  aspect-ratio: 260 / 248;
  margin-inline: auto;
  padding: 5px;
  transform: translateX(-13px);
  border-radius: 65px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.portrait-inner {
  position: relative;
  height: 100%;
  border-radius: 60px;
  overflow: hidden;
  background: var(--subtle);
}

.portrait-setting {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait-person {
  position: absolute;
  top: -1.7%;
  left: -10.4%;
  width: 122.4%;
  height: auto;
}

.icon {
  display: inline-block;
  width: 23px;
  height: 23px;
  flex: none;
  background: currentColor;
  mask: var(--icon) center / contain no-repeat;
}

.icon-rays {
  --icon: url('./assets/rays.svg');
  position: absolute;
  top: -5px;
  left: calc(50% + min(81px, 20vw));
  width: 49px;
  height: 43px;
  color: var(--primary);
}

.teacher-card {
  position: absolute;
  right: max(14px, calc(50% - 123px));
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 226px;
  min-height: 64px;
  padding: 5px 10px 5px 16px;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: var(--subtle);
  box-shadow: var(--shadow);
}

.icon-cap {
  --icon: url('./assets/graduation.svg');
  width: 31px;
  height: 31px;
  color: var(--primary);
}

.teacher-info {
  padding-inline-start: 11px;
  border-inline-start: 1px solid var(--border);
}

.teacher-name {
  font: 700 16px/20px var(--heading-font);
}

.teacher-role {
  color: var(--muted);
  font-size: 10px;
  line-height: 12px;
}

.introduction {
  margin: 14px clamp(24px, 8.7vw, 34px) 0 clamp(26px, 11vw, 46px);
}

.introduction h1 {
  font: 700 clamp(26px, 7.7vw, 30px)/1.13 var(--heading-font);
}

.introduction p {
  max-width: 320px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 16px;
  line-height: 20px;
}

.actions {
  display: grid;
  gap: 12px;
  margin: 19px clamp(16px, 6vw, 23px) 0;
}

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  text-decoration: none;
}

.button-primary {
  gap: 13px;
  border-color: transparent;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 18px;
  line-height: 22px;
}

@media (hover: hover) {
  .button:hover { background: var(--subtle); }
  .button-primary:hover { background: var(--primary-hover); }
}

.button:active { background: var(--subtle); box-shadow: none; }
.button-primary:active { background: var(--primary-hover); }

.icon-add { --icon: url('./assets/person-add.svg'); }
.icon-person { --icon: url('./assets/person.svg'); color: var(--muted); }
.icon-telegram { --icon: url('./assets/telegram.svg'); color: var(--primary); }

.duration {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 11px;
  color: var(--muted);
  font-size: 12px;
  line-height: 18px;
}

.icon-clock {
  --icon: url('./assets/auth-clock.svg');
  width: 18px;
  height: 18px;
}

.legal {
  margin: 34px 14px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 17px;
  text-align: center;
}

.legal button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

[data-screen='N04'] .introduction {
  margin-inline-start: clamp(26px, 11.8vw, 46px);
}

[data-screen='N04'] .introduction h1 {
  line-height: 34px;
}

[data-screen='N04'] .teacher-info {
  align-self: flex-start;
  border-inline-start-color: var(--subtle);
}

[data-screen='N04'] .teacher-name {
  line-height: 18px;
}

:is([data-screen='N04'], .auth-login) .icon-rays {
  left: calc(50% + min(81px, 21vw));
  clip-path: inset(5px 0 0);
}

[data-screen='N04'] .actions .button {
  padding-inline-start: 24px;
}

[data-screen='N04'] .actions .button[href='#login'] {
  gap: 6px;
  padding-inline-start: 32px;
}

[data-screen='N04'] .actions .button[href='#telegram'] {
  gap: 20px;
  padding-inline-start: 34px;
}

.preview-message {
  width: min(360px, calc(100% - 32px));
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  color: var(--ink);
}

.preview-message::backdrop { background: rgba(16, 25, 35, 0.55); }
.preview-message h2 { font: 700 24px/30px var(--heading-font); }
.preview-message p { margin: 8px 0 20px; color: var(--muted); line-height: 1.5; }

.auth {
  --gutter: clamp(16px, 6vw, 23px);
}

.auth .topbar { position: relative; padding-inline: var(--gutter); }
.auth-signup .wordmark { margin-top: 13px; }

.back-circle {
  position: absolute;
  top: 4px;
  left: 15px;
  display: grid;
  width: 48px;
  height: 44px;
  place-items: center;
  color: var(--primary);
}

.back-circle::before {
  position: absolute;
  width: 36px;
  height: 36px;
  border: 1px solid transparent;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow);
  content: '';
}

.back-circle .icon { z-index: 1; }
.back-login .icon { --icon: url('./assets/login-arrow.svg'); width: 22px; height: 22px; }
.back-signup { left: 12px; top: 6px; }
.back-signup .icon { --icon: url('./assets/signup-arrow.svg'); width: 21px; height: 21px; }
.back-signup::before { width: 39px; height: 39px; border-color: var(--border); }

.teacher-compact {
  --portrait-width: min(242px, calc(100% - 72px));
  padding-bottom: 0;
}

.teacher-compact .portrait {
  aspect-ratio: 242 / 194;
  border-radius: 59px;
  transform: translateX(-9px);
}

.teacher-compact .portrait-inner { border-radius: 54px; }
.teacher-compact .portrait-person { left: -14.2%; top: -2.2%; width: 131.9%; }

.auth-intro {
  margin-inline: var(--gutter);
  text-align: center;
}

.auth-login .auth-intro { margin-top: 11px; }
.auth-signup .auth-intro { margin-top: 25px; }

.auth-intro h1 {
  font: 700 clamp(28px, 8.8vw, 34px)/1.235 var(--heading-font);
}

.auth-intro p {
  max-width: 320px;
  margin: 12px auto 0;
  padding-inline: 4px;
  color: var(--muted);
  font-size: 16px;
  line-height: 20px;
}

.auth-form { margin-inline: var(--gutter); }
.auth-login .auth-form { margin-top: 12px; }
.auth-signup .auth-form { margin-top: 19px; }

.auth-fields { display: grid; gap: 12px; }
.auth-login .auth-fields { gap: 13px; }

.field {
  position: relative;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.field:focus-within { outline: 2px solid var(--focus); }

.field input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  line-height: 20px;
}

.field input:focus { outline: none; }
.field input::placeholder { color: var(--muted); opacity: 1; }

.field-stacked {
  display: grid;
  align-content: center;
  gap: 3px;
  min-height: 59px;
  padding: 6px 19px;
}

.field-stacked > span, .field-stacked > label { font-weight: 700; }
.field-password .password-toggle { position: absolute; right: 8px; bottom: 2px; }
.field-password input { padding-right: 46px; }
.field-stacked .password-toggle { bottom: 1px; }

.password-toggle {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
}

.password-toggle[aria-pressed='true'] { color: var(--primary); background: var(--subtle); }
.eye-login .icon { --icon: url('./assets/login-eye.svg'); }
.eye-signup .icon { --icon: url('./assets/signup-eye.svg'); width: 22px; height: 22px; }

.text-link {
  border: 0;
  background: transparent;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.recovery {
  display: block;
  min-height: 42px;
  margin: 2px 0 0 auto;
  padding: 0;
}

.auth-actions { display: grid; gap: 13px; }
.auth-login .auth-actions { margin-top: 9px; }
.auth-actions a[href='#telegram'] { gap: 20px; padding-inline-start: 16px; }
.auth-signup .auth-actions { margin-top: 48px; }
.auth-signup .auth-actions a[href='#telegram'] { padding-inline-start: 32px; }

.auth-switch {
  margin: 25px var(--gutter) 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 21px;
  text-align: center;
}

.auth-switch .text-link { display: inline-block; padding: 0 0 0 4px; }

.auth-signup .auth-switch {
  display: grid;
  grid-template-columns: 151px 1fr;
  width: min(230px, 100%);
  margin: 27px auto 0;
  font-size: 14px;
  line-height: 17px;
  text-align: start;
}

.auth-signup .auth-switch .text-link { padding-inline-start: 0; }
.auth-login .legal { margin-top: 25px; }
.auth-signup .legal { margin-top: 17px; }

.auth-verification:not([hidden]) {
  display: flex;
  flex-direction: column;
  padding-bottom: calc(34px + env(safe-area-inset-bottom));
}

.auth-verification .wordmark {
  z-index: 1;
  margin-block-start: 15px;
  transform: translateX(8px);
  font-size: clamp(18px, 5.65vw, 22px);
  line-height: 26px;
}

.back-verification { top: 8px; left: 10px; z-index: 1; }
.back-verification::before { width: 40px; height: 40px; border-color: var(--border); }
.back-verification .icon { --icon: url('./assets/verify-arrow.svg'); }

.verification-filters { position: absolute; }

.verification-art {
  display: block;
  width: min(250px, 72%);
  height: auto;
  margin: -16px auto 0;
}

:root[data-theme='classic'] .verification-art { filter: url('#verification-classic'); }
:root[data-theme='dark'] .verification-art { filter: url('#verification-dark'); }

.verification-intro { position: relative; margin-top: -28px; }
.verification-intro h1 { font-size: clamp(32px, 10.3vw, 40px); line-height: 1.225; }
.verification-intro p { margin-top: 15px; font-size: 18px; line-height: 23px; }
.verification-intro .verification-address {
  margin-top: 12px;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-weight: 700;
  line-height: 24px;
}

.verification-form {
  max-width: 336px;
  margin: 20px auto 0;
  width: calc(100% - 2 * var(--gutter));
  transform: translateX(2px);
}

.otp { position: relative; }

.otp-cells { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.otp-cells span {
  position: relative;
  display: grid;
  min-height: 60px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
  font: 700 clamp(24px, 7.7vw, 30px)/35px Inter, system-ui, sans-serif;
}

.otp input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: transparent;
  caret-color: transparent;
  font-size: 16px;
}

.otp input:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.verification-form .otp:has(.otp-caret:empty) input:focus-visible { outline: none; }
.otp input::selection { background: transparent; color: transparent; }
.otp-caret:empty::after {
  width: 2px;
  height: 27px;
  background: var(--primary);
  content: '';
}

.verification-help { margin: 28px var(--gutter) 0; }
.verification-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 18px;
}
.verification-timer .icon { --icon: url('./assets/verify-clock.svg'); width: 19px; height: 25px; }

.verification-links {
  display: grid;
  grid-template-columns: minmax(0, 0.91fr) auto minmax(0, 1.09fr);
  align-items: center;
  gap: 8px;
  margin-top: 13px;
  text-align: center;
}

.verification-links .text-link {
  display: grid;
  min-height: 44px;
  place-items: center;
  padding: 3px;
  font-size: 14px;
  line-height: 19px;
}
.verification-links :disabled { cursor: default; }

.verification-actions {
  display: grid;
  gap: 15px;
  margin: auto clamp(16px, 5.4vw, 21px) 0;
  padding-top: 32px;
}

.verification-actions .button { min-height: 50px; border-radius: 25px; font-size: 18px; }

.auth-telegram:not([hidden]) { display: flex; flex-direction: column; padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
.auth-telegram .wordmark { margin-top: 13px; }
.telegram-content { margin-inline: clamp(22px, 10.25vw, 40px); }
.telegram-art { display: block; width: 100%; height: 196px; margin: 8px auto 13px; object-fit: contain; }
:root[data-theme='classic'] .telegram-art { filter: url('#verification-classic'); }
:root[data-theme='dark'] .telegram-art { filter: url('#verification-dark'); }
.telegram-content h1 { font: 700 clamp(27px, 8.2vw, 32px)/1.25 var(--heading-font); }
.telegram-content p { margin-top: 12px; color: var(--muted); line-height: 20px; }
.telegram-steps { display: grid; gap: 18px; margin: 12px 0 0; padding: 0 3px; list-style: none; counter-reset: step; }
.telegram-steps li { display: flex; align-items: center; gap: 15px; font-weight: 700; counter-increment: step; }
.telegram-steps li::before { display: grid; flex: 0 0 30px; height: 30px; place-items: center; border-radius: 13px; color: var(--primary); background: var(--subtle); content: counter(step); font-size: 14px; }
.telegram-actions { display: grid; gap: 9px; margin: auto var(--gutter) 0; padding-top: 24px; }
.telegram-actions .button { font-size: 18px; }
.telegram-actions .text-link { min-height: 44px; padding-inline-start: 18px; font-size: 14px; }

a.recovery { display: flex; width: fit-content; align-items: center; }
.auth-recovery:not([hidden]) { display: flex; flex-direction: column; }
.auth-recovery .wordmark { margin-top: 13px; font-size: clamp(19px, 6vw, 24px); }
.recovery-art { display: block; max-width: 80%; margin: 14px auto 11px; object-fit: contain; }
.auth-recovery-address .recovery-art { margin-top: 16px; margin-bottom: 16px; }
.auth-reset .recovery-art { margin-top: 12px; }
:root[data-theme='classic'] .recovery-art { filter: url('#verification-classic'); }
:root[data-theme='dark'] .recovery-art { filter: url('#verification-dark'); }
.auth-recovery-code h1 { font-size: clamp(30px, 9.25vw, 36px); }
.auth-recovery .auth-intro p { overflow-wrap: anywhere; }
.auth-recovery-address .auth-form { margin-top: 32px; }
.auth-recovery-address .field-inline { min-height: 64px; }
.auth-reset .auth-form { margin-top: 12px; }
.auth-reset .field-inline { min-height: 48px; }
.auth-reset .field-inline input { min-height: 46px; }
.auth-reset .password-rules { margin-top: 14px; min-height: 126px; }
.auth-recovery-code .wordmark { font-size: clamp(17px, 5.65vw, 22px); }
.auth-recovery-code .verification-form { transform: none; }
.auth-recovery-address .recovery-note { max-width: 314px; }
.auth-recovery-address, .auth-recovery-code { padding-bottom: calc(34px + env(safe-area-inset-bottom)); }
.recovery-actions { display: grid; gap: 13px; margin: auto var(--gutter) 0; padding-top: 18px; }
.recovery-actions .button { font-size: 18px; }
.recovery-note { max-width: 326px; margin: 22px auto 0; padding-inline: 12px; text-align: center; color: var(--muted); font-size: 14px; line-height: 19px; }
.recovery-timer { margin-top: 14px; }
.recovery-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 8px var(--gutter) 0; }
.recovery-links .text-link { padding: 9px 0; font-size: 14px; }
.reset-note { margin-top: 10px; font-size: 12px; }

.skip-link { display: grid; align-items: center; text-decoration: none; }
.auth-teacher-intro:not([hidden]) { display: flex; flex-direction: column; }
.teacher-intro-header { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 20px; }
.teacher-intro-header .wordmark { margin: 0; font-style: italic; }
.teacher-intro-header .button { position: relative; width: auto; min-width: 76px; min-height: 35px; font-size: 14px; }
.teacher-intro-header .button::after { position: absolute; inset: -5px 0; content: ''; }
.teacher-intro-visual { position: relative; padding: 4px 0 0 18px; }
.teacher-intro-visual .portrait { width: min(275px, 76%); margin: 0; aspect-ratio: 275 / 285; transform: none; border-radius: 63px; }
.teacher-intro-visual .portrait-inner { border-radius: 58px; }
.teacher-intro-visual .portrait-person { top: 0; left: -9.8%; width: 124.5%; }
.teacher-intro-books { position: absolute; right: 12px; bottom: -10px; width: min(47%, 184px); height: auto; object-fit: contain; }
.teacher-intro-copy { margin: 10px 22px 0; }
.teacher-intro-copy h1 { font: 700 clamp(24px, 7.7vw, 30px)/1.13 var(--heading-font); }
.teacher-intro-copy em { color: var(--primary); font-style: normal; }
.teacher-intro-copy p { margin-top: 15px; color: var(--muted); line-height: 19px; }
.teacher-intro-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 20px 17px 0; padding: 0; list-style: none; }
.teacher-intro-features li { display: grid; justify-items: center; align-content: start; gap: 3px; min-height: 113px; padding: 4px 2px; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); font: 700 clamp(13px, 4.1vw, 16px)/20px var(--heading-font); text-align: center; }
.teacher-intro-features img { max-width: 100%; object-fit: contain; }
:root[data-theme='classic'] .teacher-intro-books, :root[data-theme='classic'] .teacher-intro-features img { filter: url('#verification-classic'); }
:root[data-theme='dark'] .teacher-intro-books, :root[data-theme='dark'] .teacher-intro-features img { filter: url('#verification-dark'); }
.teacher-intro-actions { margin: auto 17px 0; padding-top: 36px; }
.teacher-intro-actions .auth-switch { margin: 20px 0 0; font-size: 14px; }
.auth-teacher-intro [hidden] { display: none; }
.teacher-intro-actions { background: var(--canvas); }
.teacher-intro-personalized .teacher-intro-header { min-height: 49px; }
.teacher-intro-personalized .teacher-intro-visual .portrait { aspect-ratio: 276 / 274; }
.teacher-intro-personalized .teacher-intro-copy { margin: 36px 18px 0; }
.teacher-intro-personalized h1 { margin-inline: 10px; font-size: clamp(27px, 9.25vw, 36px); }
.teacher-intro-personalized .teacher-intro-copy > p { margin-top: 13px; font-size: 16px; }
.teacher-intro-personalized .teacher-intro-copy > p { margin-inline: 12px; }
.teacher-intro-time {
  display: grid;
  grid-template-columns: 34% minmax(0, 1fr);
  align-items: center;
  min-height: 82px;
  margin-top: 22px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 23px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.teacher-intro-time img { width: 50px; height: 54px; margin-inline: auto; object-fit: contain; }
.teacher-intro-time p { margin: 0; font-size: 14px; line-height: 17px; }
.teacher-start-actions { display: grid; gap: 15px; margin-inline: 18px; padding-top: 18px; }
.teacher-start-actions .button { min-height: 48px; }

.field-inline {
  display: flex;
  align-items: center;
  gap: 17px;
  min-height: 53px;
  padding-inline: 19px;
}

.field-inline .icon { width: 22px; height: 22px; color: var(--muted); }
.field-inline input { min-height: 50px; }
.icon-signup-person { --icon: url('./assets/signup-person.svg'); }
.icon-signup-mail { --icon: url('./assets/signup-mail.svg'); }
.icon-signup-lock { --icon: url('./assets/signup-lock.svg'); }

.password-rules {
  min-height: 135px;
  margin-top: 18px;
  padding: 12px 16px 14px 19px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.password-rules h2 {
  display: flex;
  align-items: center;
  gap: 13px;
  font: 700 18px/21px var(--heading-font);
}

.icon-signup-cap { --icon: url('./assets/signup-cap.svg'); width: 26px; height: 26px; color: var(--primary); }

.password-rules ul { display: grid; gap: 7px; margin: 7px 0 0; padding: 0; list-style: none; }
.password-rules li { display: flex; align-items: baseline; gap: 12px; color: var(--muted); font-size: 14px; line-height: 18px; }

.rule-indicator {
  position: relative;
  flex: 0 0 15px;
  align-self: center;
  height: 15px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
}

.rule-met .rule-indicator { border-color: var(--primary); background: var(--primary); }
.rule-met .rule-indicator::after {
  position: absolute;
  inset: 3px auto auto 3px;
  width: 7px;
  height: 4px;
  border-bottom: 1.5px solid var(--on-primary);
  border-left: 1.5px solid var(--on-primary);
  transform: rotate(-45deg);
  content: '';
}

.form-notice {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  background: var(--subtle);
  font-size: 14px;
  line-height: 20px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
