:root {
  --ink: #131A18;
  --ink-2: #4C5855;
  --ink-3: #7B8683;
  --line: #E5E9E6;
  --line-strong: #CDD5D1;
  --bg-soft: #F3F6F4;
  --brand: #0F7B62;
  --brand-dark: #0B6350;
  --brand-soft: #E6F3EE;
  --accent: #E4A33C;
  --danger: #B42318;
  --radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  background: #FFFFFF;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.icon { width: 18px; height: 18px; flex: none; }
.icon--22 { width: 22px; height: 22px; }
.icon--14 { width: 14px; height: 14px; }

.auth { min-height: 100dvh; display: grid; grid-template-columns: 1fr; }

/* ---------- Brand panel ---------- */

.brand {
  background: var(--brand);
  color: #FFFFFF;
  padding: 24px 20px 28px;
  display: flex;
}

.brand__inner {
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.brand__lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  align-self: flex-start;
}

.brand__mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.16);
}

.brand__name { font-size: 17px; font-weight: 600; }

.brand__copy { display: flex; flex-direction: column; gap: 12px; }

.brand__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  margin: 0;
  padding: 5px 12px 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.92);
}

.brand__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.brand h1 {
  margin: 0;
  font-size: 26px;
  line-height: 1.28;
  font-weight: 600;
}

.brand__lede {
  margin: 0;
  max-width: 44ch;
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.76);
}

.brand__points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
  flex-direction: column;
  gap: 14px;
}

.point { display: flex; align-items: flex-start; gap: 12px; }

.point__icon {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}

.point__body { display: flex; flex-direction: column; }
.point__title { font-size: 14.5px; font-weight: 600; }
.point__desc { font-size: 13px; color: rgba(255, 255, 255, 0.68); }

.brand__foot {
  display: none;
  margin: 0;
  max-width: 44ch;
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.58);
}

/* ---------- Form panel ---------- */

.panel {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 28px 20px 56px;
}

.panel__inner { width: 100%; max-width: 420px; }

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin-bottom: 26px;
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.tab {
  appearance: none;
  border: 0;
  border-radius: 6px;
  padding: 9px 8px;
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.tab:hover { color: var(--ink); }

.tab[aria-selected="true"] {
  background: #FFFFFF;
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(16, 24, 20, 0.09);
}

.pane { display: none; }
.pane.is-active { display: block; animation: pane-in 0.22s ease both; }

@keyframes pane-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

.pane__head { margin-bottom: 22px; }
.pane__head h2 { margin: 0 0 5px; font-size: 21px; font-weight: 600; }
.pane__head p { margin: 0; font-size: 13.5px; color: var(--ink-3); }

.field { margin-bottom: 16px; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field > label {
  display: block;
  margin-bottom: 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
}

.control { position: relative; display: flex; align-items: center; }

.control__icon {
  position: absolute;
  left: 12px;
  display: grid;
  place-items: center;
  color: var(--ink-3);
  pointer-events: none;
  transition: color 0.15s ease;
}

.control input {
  width: 100%;
  height: 46px;
  padding: 0 44px 0 40px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #FFFFFF;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.control input::placeholder { color: var(--ink-3); }

.control select {
  width: 100%;
  height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #FFFFFF;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}

.control select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 123, 98, 0.14);
}

.label-note { font-weight: 400; color: var(--ink-3); }

.control input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 123, 98, 0.14);
}

.control:focus-within .control__icon { color: var(--brand); }

.control__action {
  position: absolute;
  right: 6px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-3);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.control__action:hover { background: var(--bg-soft); color: var(--ink); }
.control__action.is-on { color: var(--brand); }

.error { margin: 6px 0 0; font-size: 12.5px; color: var(--danger); }

.form__note {
  margin: 12px 0 0;
  font-size: 12.5px;
  color: var(--ink-3);
  text-align: center;
}

.field.is-invalid .control input { border-color: var(--danger); }
.field.is-invalid .control input:focus { box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.12); }
.field.is-invalid .control__icon { color: var(--danger); }

.strength { margin-top: 10px; }
.strength__bars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.strength__bars span {
  height: 4px;
  border-radius: 999px;
  background: var(--line);
  transition: background-color 0.2s ease;
}
.strength__label { margin: 6px 0 0; font-size: 12.5px; color: var(--ink-3); }
.strength__label b { font-weight: 600; }

.strength[data-level="1"] .strength__bars span:nth-child(-n+1) { background: var(--danger); }
.strength[data-level="1"] .strength__label b { color: var(--danger); }
.strength[data-level="2"] .strength__bars span:nth-child(-n+2) { background: var(--accent); }
.strength[data-level="2"] .strength__label b { color: #A9701A; }
.strength[data-level="3"] .strength__bars span { background: var(--brand); }
.strength[data-level="3"] .strength__label b { color: var(--brand); }

/* ---------- Checkbox ---------- */

.check {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-2);
  cursor: pointer;
}

.check input {
  position: absolute;
  top: 3px;
  left: 0;
  width: 18px;
  height: 18px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.check__box {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--line-strong);
  border-radius: 5px;
  background: #FFFFFF;
  color: transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.check input:checked + .check__box {
  background: var(--brand);
  border-color: var(--brand);
  color: #FFFFFF;
}

.check input:focus-visible + .check__box { box-shadow: 0 0 0 3px rgba(15, 123, 98, 0.2); }

.check__text a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }

.check--tight { align-items: center; }
.check--tight .check__box { margin-top: 0; }

.field--check { margin-bottom: 20px; }

.form__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 2px 0 22px;
}

.link {
  font-size: 13.5px;
  color: var(--brand);
  text-decoration: none;
  white-space: nowrap;
}
.link:hover { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:active { transform: translateY(1px); }

.btn--primary {
  width: 100%;
  background: var(--brand);
  color: #FFFFFF;
}
.btn--primary:hover { background: var(--brand-dark); }
.btn--primary[disabled] { opacity: 0.75; cursor: progress; }

.btn--ghost {
  background: #FFFFFF;
  border-color: var(--line-strong);
  color: var(--ink);
  font-weight: 500;
  font-size: 14px;
}
.btn--ghost:hover { background: var(--bg-soft); border-color: var(--ink-3); }

.btn--link {
  height: auto;
  padding: 6px;
  margin-top: 4px;
  background: transparent;
  border: 0;
  color: var(--ink-3);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.btn--link:hover { color: var(--ink); }

.spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.btn.is-loading .spinner { display: block; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Done state ---------- */

.done { animation: pane-in 0.22s ease both; }

.done__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
}

.done h3 { margin: 0 0 8px; font-size: 20px; font-weight: 600; }
.done p { margin: 0 0 20px; font-size: 14px; line-height: 1.7; color: var(--ink-2); }
.done b { font-weight: 600; color: var(--ink); }
.done .btn--link { display: flex; margin-inline: auto; }

/* ---------- Third-party ---------- */

.alt {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 26px 0 16px;
  font-size: 12.5px;
  color: var(--ink-3);
}

.alt::before, .alt::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.social { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.social .icon { width: 17px; height: 17px; }

.panel__foot {
  margin: 20px 0 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-3);
}

.disclaimer {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--ink-3);
}

/* ---------- Help widget ---------- */

.help-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--brand);
  color: #FFFFFF;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(19, 26, 24, 0.22);
  transition: background-color 0.15s ease;
}

.help-fab:hover { background: var(--brand-dark); }
.help-fab[aria-expanded="true"] { background: var(--ink); }

.help-panel {
  position: fixed;
  right: 22px;
  bottom: 86px;
  z-index: 41;
  width: min(340px, calc(100vw - 32px));
  max-height: min(72vh, 520px);
  overflow-y: auto;
  padding: 18px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(19, 26, 24, 0.2);
  text-align: left;
}

.help-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.help-panel__title { margin: 0; font-size: 17px; font-weight: 600; color: var(--ink); }

.help-panel__close {
  width: 32px;
  height: 32px;
  flex: none;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-3);
  cursor: pointer;
}

.help-panel__close:hover { background: var(--bg-soft); color: var(--ink); }

.help-list { list-style: none; margin: 0; padding: 0; }
.help-item { border-top: 1px solid var(--line); }
.help-item:first-child { border-top: 0; }

.help-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.help-q:hover { color: var(--brand); }

.help-q .icon {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--ink-3);
  transition: transform 0.15s ease;
}

.help-q[aria-expanded="true"] .icon { transform: rotate(180deg); }

.help-a {
  margin: 0 0 14px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-3);
}

.help-panel__foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.help-panel__foot p { margin: 0; font-size: 12.5px; color: var(--ink-3); }
.help-panel__foot a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 50;
  max-width: calc(100vw - 40px);
  padding: 11px 16px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #FFFFFF;
  font-size: 13.5px;
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Desktop ---------- */

@media (min-width: 900px) {
  .auth { grid-template-columns: 1fr 1fr; }

  .brand { padding: 48px 56px; align-items: center; }
  .brand__inner { gap: 30px; }
  .brand h1 { font-size: 36px; }
  .brand__lede { font-size: 15px; }
  .brand__points { display: flex; }
  .brand__foot { display: block; }

  .panel { align-items: center; padding: 48px 40px; }
  .pane__head h2 { font-size: 23px; }
}

@media (min-width: 1240px) {
  .brand { padding: 64px 72px; }
  .brand h1 { font-size: 40px; }
  .panel__inner { max-width: 440px; }
}

@media (max-width: 400px) {
  .social { grid-template-columns: 1fr; }
  .brand h1 { font-size: 23px; }
  .form__row { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* =========================================================
   Liquid Glass theme — iOS inspired
   Overrides the visual layer only. Layout rules stay as they are.
   ========================================================= */

:root {
  --ink: #101614;
  --ink-2: #4A5652;
  --ink-3: #7C8783;
  --line: rgba(16, 24, 20, 0.08);
  --line-strong: rgba(16, 24, 20, 0.14);
  --bg-soft: rgba(255, 255, 255, 0.5);
  --brand: #12836A;
  --brand-dark: #0C6A55;
  --brand-soft: rgba(18, 131, 106, 0.12);
  --accent: #E4A33C;
  --danger: #C0392B;
  --radius: 14px;
  --glass: rgba(255, 255, 255, 0.6);
  --glass-strong: rgba(255, 255, 255, 0.8);
  --glass-line: rgba(255, 255, 255, 0.7);
  --glass-blur: saturate(180%) blur(22px);
  --shadow-1: 0 1px 2px rgba(16, 24, 20, 0.06);
  --shadow-2: 0 10px 30px rgba(16, 24, 20, 0.1);
  --shadow-3: 0 22px 60px rgba(16, 24, 20, 0.18);
  --spring: cubic-bezier(0.22, 1, 0.36, 1);
}

body {
  background: linear-gradient(165deg, #EDF3F0 0%, #F5F3EE 40%, #ECF1F6 74%, #F3F4F2 100%);
  background-attachment: fixed;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Roboto, system-ui, sans-serif;
}

/* ---------- Brand panel ---------- */

.brand {
  border-radius: 0 28px 28px 0;
  background: linear-gradient(160deg, #1B9C7E 0%, #12836A 46%, #0A5C4A 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.brand__mark {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.brand__eyebrow {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.point__icon {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* ---------- Form panel ---------- */

.panel__inner {
  padding: 26px 24px;
  border: 1px solid var(--glass-line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-2), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  animation: lg-card 0.44s var(--spring) both;
}

/* ---------- Segmented control ---------- */

.tabs {
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 1px 2px rgba(16, 24, 20, 0.05);
}

.tab {
  border-radius: 999px;
  transition: background-color 0.24s ease, color 0.24s ease, box-shadow 0.24s ease;
}

.tab[aria-selected="true"] {
  background: #FFFFFF;
  box-shadow: 0 2px 8px rgba(16, 24, 20, 0.12);
}

/* ---------- Fields ---------- */

.control input,
.control select {
  border: 1px solid rgba(16, 24, 20, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 2px rgba(16, 24, 20, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.control input:focus,
.control select:focus {
  background: #FFFFFF;
  border-color: rgba(18, 131, 106, 0.55);
  box-shadow: 0 0 0 4px rgba(18, 131, 106, 0.16);
}

.control__action {
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s var(--spring);
}

.control__action:active { transform: scale(0.92); }

.check__box { border-radius: 7px; }
.check input:checked + .check__box {
  background: linear-gradient(180deg, rgba(30, 150, 122, 0.98), rgba(15, 120, 96, 0.98));
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 12px rgba(15, 123, 98, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* ---------- Buttons ---------- */

.btn {
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 0.2s var(--spring), background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn:hover { background: var(--glass-strong); }
.btn:active { transform: scale(0.96); }

.btn--primary {
  border-color: rgba(255, 255, 255, 0.4);
  background: linear-gradient(180deg, rgba(30, 150, 122, 0.98), rgba(15, 120, 96, 0.98));
  color: #FFFFFF;
  box-shadow: 0 8px 20px rgba(15, 123, 98, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn--primary:hover {
  background: linear-gradient(180deg, rgba(34, 164, 133, 0.98), rgba(15, 123, 98, 0.98));
}

.btn--link {
  border: 0;
  background: none;
  box-shadow: none;
}

.done__icon {
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(18, 131, 106, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  animation: lg-pop 0.4s var(--spring) both;
}

/* ---------- Help widget ---------- */

.help-fab {
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: linear-gradient(180deg, rgba(30, 150, 122, 0.98), rgba(15, 120, 96, 0.98));
  box-shadow: 0 10px 30px rgba(15, 123, 98, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: transform 0.24s var(--spring), background-color 0.2s ease;
}

.help-fab:hover { transform: scale(1.05); }
.help-fab:active { transform: scale(0.94); }
.help-fab[aria-expanded="true"] {
  background: linear-gradient(180deg, #2A3431, #101614);
  box-shadow: 0 10px 30px rgba(16, 24, 20, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.help-panel {
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.84);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-3), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transform-origin: bottom right;
  animation: lg-pop 0.3s var(--spring) both;
}

/* ---------- Toast ---------- */

.toast {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(16, 22, 20, 0.82);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  box-shadow: var(--shadow-2);
  transition: opacity 0.28s ease, transform 0.34s var(--spring);
}

/* ---------- Motion ---------- */

.pane.is-active { animation: lg-view 0.34s var(--spring) both; }

@keyframes lg-card {
  from { opacity: 0; transform: translateY(16px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

@keyframes lg-view {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes lg-pop {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 899px) {
  .brand { border-radius: 0 0 28px 28px; }
}

/* ---------- Living gradient on the brand panel ---------- */

.brand {
  background: linear-gradient(160deg, #1B9C7E 0%, #12836A 46%, #0A5C4A 100%);
  background-size: 170% 170%;
  animation: lg-drift 24s ease-in-out infinite alternate;
}

.btn { position: relative; overflow: hidden; }

.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(100deg, transparent 18%, rgba(255, 255, 255, 0.38) 45%, transparent 72%);
  opacity: 0;
  pointer-events: none;
}

.btn--primary:hover::after {
  opacity: 1;
  animation: lg-sheen 1.1s ease;
}

@keyframes lg-sheen {
  from { transform: translateX(-120%); }
  to { transform: translateX(120%); }
}

@keyframes lg-drift {
  from { background-position: 0% 0%; }
  to { background-position: 100% 100%; }
}

/* =========================================================
   Midnight Purple — the auth page palette
   Deep indigo-violet base, champagne gold accent, glass surfaces.
   ========================================================= */

:root {
  --ink: #F3F0FB;
  --ink-2: #CCC5E3;
  --ink-3: #968EB6;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --bg-soft: rgba(255, 255, 255, 0.06);
  --brand: #8A6BFF;
  --brand-dark: #6E4EE8;
  --brand-soft: rgba(138, 107, 255, 0.18);
  --accent: #E8C46A;
  --danger: #FF7A7A;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-strong: rgba(255, 255, 255, 0.1);
  --glass-line: rgba(255, 255, 255, 0.14);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-2: 0 14px 40px rgba(0, 0, 0, 0.5);
  --shadow-3: 0 28px 70px rgba(0, 0, 0, 0.6);
}

body {
  background: linear-gradient(165deg, #0E0A1A 0%, #1B1130 42%, #0B0817 100%);
  background-attachment: fixed;
  color: var(--ink);
}

/* ---------- Brand panel ---------- */

.brand {
  border-radius: 0 28px 28px 0;
  background: linear-gradient(160deg, #2C1B52 0%, #45288F 45%, #150C2B 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.brand__mark,
.brand__eyebrow,
.point__icon {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
}

.brand__dot { background: var(--accent); }

/* ---------- Form panel ---------- */

.panel__inner {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.pane__head p { color: var(--ink-3); }

/* ---------- Segmented control ---------- */

.tabs {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
}

.tab { color: var(--ink-2); }
.tab:hover { color: var(--ink); }

.tab[aria-selected="true"] {
  background: rgba(255, 255, 255, 0.13);
  color: #FFFFFF;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

/* ---------- Fields ---------- */

.control input,
.control select {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

.control input::placeholder { color: #6F6890; }
.control__icon { color: #8B83AC; }

.control input:focus,
.control select:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(138, 107, 255, 0.85);
  box-shadow: 0 0 0 4px rgba(138, 107, 255, 0.22);
}

.control:focus-within .control__icon { color: var(--brand); }
.control__action { color: #8B83AC; }
.control__action:hover { background: rgba(255, 255, 255, 0.09); color: var(--ink); }

.check__box {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
}

.check input:checked + .check__box {
  border-color: rgba(255, 255, 255, 0.3);
  background: linear-gradient(180deg, #8A6BFF, #5F3FD9);
  box-shadow: 0 4px 12px rgba(95, 63, 217, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.strength__bars span { background: rgba(255, 255, 255, 0.12); }

/* ---------- Buttons ---------- */

.btn {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn:hover { background: rgba(255, 255, 255, 0.12); }

.btn--primary {
  border-color: rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, #8A6BFF, #5F3FD9);
  color: #FFFFFF;
  box-shadow: 0 10px 30px rgba(95, 63, 217, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn--primary:hover {
  background: linear-gradient(180deg, #9779FF, #6A48E8);
}

.btn--link { color: var(--ink-3); }
.btn--link:hover { color: var(--ink); }

.done__icon {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(138, 107, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.alt { color: var(--ink-3); }
.alt::before, .alt::after { background: rgba(255, 255, 255, 0.1); }

/* ---------- Help widget ---------- */

.help-fab {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, #8A6BFF, #5F3FD9);
  box-shadow: 0 10px 30px rgba(95, 63, 217, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.help-fab[aria-expanded="true"] {
  background: linear-gradient(180deg, #2A2440, #14101F);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.help-panel {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(28, 21, 46, 0.82);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.help-panel__title { color: var(--ink); }
.help-item { border-top-color: rgba(255, 255, 255, 0.08); }
.help-q { color: var(--ink); }
.help-a { color: var(--ink-3); }
.help-panel__foot { border-top-color: rgba(255, 255, 255, 0.08); }

/* ---------- Toast ---------- */

.toast {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(24, 18, 40, 0.9);
  color: var(--ink);
}

/* ---------- Legal pages ---------- */

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 22px 80px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.75;
}

.legal__brand {
  display: inline-block;
  margin-bottom: 32px;
  color: #FFFFFF;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
}

.legal h1 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.25;
}

.legal__meta {
  margin: 0 0 28px;
  color: var(--ink-3);
  font-size: 13px;
}

.legal h2 {
  margin: 34px 0 10px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 600;
}

.legal p { margin: 0 0 14px; }

.legal ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 14px;
  padding-left: 22px;
}

.legal a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.legal strong { color: var(--ink); font-weight: 600; }

.legal__table {
  width: 100%;
  margin: 0 0 18px;
  border-collapse: collapse;
  font-size: 14px;
}

.legal__table th,
.legal__table td {
  padding: 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: top;
}

.legal__table tr:first-child th,
.legal__table tr:first-child td { border-top: 0; }

.legal__table th {
  width: 160px;
  color: var(--ink);
  font-weight: 600;
}

.legal__foot {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 560px) {
  .legal { padding: 36px 18px 60px; }
  .legal h1 { font-size: 26px; }

  .legal__table,
  .legal__table tbody,
  .legal__table tr,
  .legal__table th,
  .legal__table td { display: block; width: auto; }

  .legal__table tr {
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .legal__table tr:first-child { border-top: 0; }
  .legal__table th,
  .legal__table td { padding: 0; border: 0; }
  .legal__table th { margin-bottom: 4px; }
}
