:root {
  --auth-brand: #111318;
  --auth-brand-contrast: #ffffff;
  --auth-bg: #f6f7fb;
  --auth-bg-elevated: #fbfbfe;
  --auth-surface: rgba(255, 255, 255, .82);
  --auth-surface-solid: #ffffff;
  --auth-surface-muted: rgba(247, 248, 250, .88);
  --auth-text: #111318;
  --auth-muted: #6b7280;
  --auth-faint: #97a0af;
  --auth-line: rgba(17, 19, 24, .09);
  --auth-line-strong: rgba(17, 19, 24, .16);
  --auth-shadow: 0 28px 80px rgba(15, 23, 42, .12);
  --auth-shadow-soft: 0 14px 34px rgba(15, 23, 42, .08);
}

html[data-theme="dark"] {
  --auth-brand: #f3f5f8;
  --auth-brand-contrast: #111318;
  --auth-bg: #08080a;
  --auth-bg-elevated: #101012;
  --auth-surface: rgba(21, 21, 23, .88);
  --auth-surface-solid: #161618;
  --auth-surface-muted: rgba(29, 29, 32, .92);
  --auth-text: #f3f5f8;
  --auth-muted: #9aa3b2;
  --auth-faint: #6b7280;
  --auth-line: rgba(255, 255, 255, .08);
  --auth-line-strong: rgba(255, 255, 255, .16);
  --auth-shadow: 0 34px 90px rgba(0, 0, 0, .38);
  --auth-shadow-soft: 0 18px 38px rgba(0, 0, 0, .26);
}

body.auth-page {
  min-height: 100dvh;
  background:
    radial-gradient(760px 520px at 8% 0%, rgba(17, 19, 24, .075), transparent 64%),
    radial-gradient(820px 560px at 96% 100%, rgba(107, 114, 128, .12), transparent 60%),
    linear-gradient(150deg, var(--auth-bg-elevated), var(--auth-bg));
  color: var(--auth-text);
}

html[data-theme="dark"] body.auth-page {
  background:
    radial-gradient(760px 520px at 5% 0%, rgba(255, 255, 255, .07), transparent 62%),
    radial-gradient(880px 620px at 98% 100%, rgba(255, 255, 255, .04), transparent 58%),
    linear-gradient(150deg, #08080a, #0c0c0e 54%, #121214);
}

.auth-backdrop,
.auth-backdrop > * {
  position: fixed;
  pointer-events: none;
}

.auth-backdrop {
  inset: 0;
  overflow: hidden;
}

.auth-backdrop-grid {
  inset: 0;
  opacity: .2;
  background-image:
    linear-gradient(var(--auth-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--auth-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .48), transparent 78%);
}

.auth-backdrop-orbit {
  width: 520px;
  aspect-ratio: 1;
  border: 1px solid var(--auth-line);
  border-radius: 50%;
}

.auth-backdrop-orbit--one {
  top: -330px;
  left: -170px;
}

.auth-backdrop-orbit--two {
  right: -290px;
  bottom: -340px;
}

.auth-float-tools {
  z-index: 4;
  top: max(18px, env(safe-area-inset-top, 18px));
  right: max(18px, env(safe-area-inset-right, 18px));
}

.theme-toggle {
  width: 42px;
  min-height: 42px;
  border: 1px solid var(--auth-line);
  border-radius: 13px;
  background: color-mix(in srgb, var(--auth-surface-solid) 82%, transparent);
  color: var(--auth-text);
  box-shadow: var(--auth-shadow-soft);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.auth-shell {
  position: relative;
  z-index: 2;
  width: min(1160px, calc(100% - 40px));
  min-height: 100dvh;
  margin: 0 auto;
  padding: 22px 0;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(390px, .92fr) minmax(420px, 1.08fr);
  align-items: stretch;
  gap: 20px;
}

.auth-card,
.side-card {
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--auth-line-strong) 70%, transparent);
  background: color-mix(in srgb, var(--auth-surface-solid) 92%, transparent);
  box-shadow: 0 24px 70px color-mix(in srgb, #0f172a 11%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.auth-card {
  height: 100%;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 24px;
}

.auth-head {
  min-height: 72px;
  padding: 13px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--auth-line);
}

.brand-lockup {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--auth-brand);
  color: var(--auth-brand-contrast);
  box-shadow: none;
}

.brand-mark img {
  width: 31px;
  height: 31px;
  filter: none;
}

html[data-theme="dark"] .brand-mark img {
  filter: none;
}

.brand-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.brand-name {
  overflow: hidden;
  color: var(--auth-text);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.15;
  letter-spacing: -.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-tag {
  overflow: hidden;
  color: var(--auth-muted);
  font-size: 11px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mode-pill {
  min-height: 28px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--auth-line);
  border-radius: 999px;
  background: transparent;
  color: var(--auth-muted);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.mode-pill > .mode-pill-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--auth-brand);
}

.flash-stack {
  margin: 14px 22px 0;
}

.flash {
  border-color: var(--auth-line);
  border-radius: 13px;
  background: var(--auth-surface-muted);
  font-size: 12px;
}

.auth-card-body {
  flex: 1 1 auto;
  padding: 24px 28px 20px;
  display: grid;
  align-content: start;
  gap: 17px;
}

.form-title {
  display: grid;
  gap: 8px;
}

.auth-kicker,
.side-kicker {
  color: var(--auth-muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.form-title h1 {
  max-width: 15ch;
  color: var(--auth-text);
  font-size: clamp(1.95rem, 3.8vw, 2.55rem);
  line-height: 1;
  letter-spacing: -.045em;
}

.form-title p {
  max-width: 58ch;
  color: var(--auth-muted);
  font-size: 12.5px;
  line-height: 1.52;
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-form label {
  gap: 6px;
  color: var(--auth-muted);
  font-size: 11px;
  font-weight: 800;
}

.auth-card input,
.auth-card select,
.auth-card textarea {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border-color: var(--auth-line);
  border-style: solid;
  border-width: 1px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--auth-surface-muted) 72%, var(--auth-surface-solid));
  color: var(--auth-text);
  font: inherit;
  outline: none;
  box-sizing: border-box;
}

.auth-card textarea {
  padding-block: 10px;
  line-height: 1.35;
  resize: vertical;
}

.auth-card input::placeholder,
.auth-card textarea::placeholder {
  color: var(--auth-faint);
}

.auth-card input:focus,
.auth-card select:focus,
.auth-card textarea:focus {
  border-color: var(--auth-line-strong);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--auth-brand) 7%, transparent);
}

.auth-form .helper {
  margin: -5px 0 1px;
  color: var(--auth-muted);
  font-size: 10.5px;
  line-height: 1.4;
}

.auth-register-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 10px;
  row-gap: 8px;
}

.auth-register-field,
.auth-register-helper,
.auth-register-form > .actions {
  min-width: 0;
}

.auth-register-field--contact,
.auth-register-field--reason,
.auth-register-helper,
.auth-register-form > .actions {
  grid-column: 1 / -1;
}

.auth-register-helper {
  padding-inline: 2px;
}

.auth-register-field--reason textarea {
  min-height: 64px;
  max-height: 116px;
}

.auth-register-reason-hint {
  color: var(--auth-muted);
  font-size: 9.75px;
  font-weight: 600;
  line-height: 1.35;
}

.actions {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 8px;
}

.actions > button,
.actions > .ghostbtn {
  width: 100%;
  min-height: 44px;
  gap: 7px;
  border-radius: 12px;
  font-size: 12px;
}

.auth-card button[type="submit"] {
  border-color: var(--auth-brand);
  background: var(--auth-brand);
  color: var(--auth-brand-contrast);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--auth-brand) 13%, transparent);
}

.auth-form .actions > button::before,
.auth-form .actions > .ghostbtn::before {
  content: "";
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  background: currentColor;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

.auth-form .actions > button::before {
  -webkit-mask-image: url("/icons/check.svg");
  mask-image: url("/icons/check.svg");
}

.auth-form .actions > .ghostbtn::before {
  -webkit-mask-image: url("/icons/arrow-left.svg");
  mask-image: url("/icons/arrow-left.svg");
}

.auth-form[action="/login"] .actions > button::before,
.auth-form[action="/register"] .actions > .ghostbtn::before {
  -webkit-mask-image: url("/icons/log-in.svg");
  mask-image: url("/icons/log-in.svg");
}

.auth-form[action="/login"] .actions > .ghostbtn::before {
  -webkit-mask-image: url("/icons/user-plus.svg");
  mask-image: url("/icons/user-plus.svg");
}

.auth-form[action="/register"] .actions > button::before {
  -webkit-mask-image: url("/icons/shield-check.svg");
  mask-image: url("/icons/shield-check.svg");
}

.auth-form[action="/forgot-password"] .actions > button::before {
  -webkit-mask-image: url("/icons/key-round.svg");
  mask-image: url("/icons/key-round.svg");
}

.auth-form[action="/forgot-password"] .actions > .ghostbtn::before {
  -webkit-mask-image: url("/icons/arrow-left.svg");
  mask-image: url("/icons/arrow-left.svg");
}

.auth-card .ghostbtn {
  border-color: var(--auth-line);
  background: var(--auth-surface-muted);
  color: var(--auth-text);
}

.text-link {
  color: var(--auth-text);
  font-size: 11.5px;
  font-weight: 800;
}

.auth-trust-row {
  margin-top: auto;
  padding-top: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  border-top: 1px solid var(--auth-line);
  color: var(--auth-muted);
  font-size: 10px;
  font-weight: 700;
}

.auth-trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.auth-trust-row i {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  background: var(--auth-brand);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

.auth-trust-row span:first-child i {
  -webkit-mask-image: url("/icons/shield-check.svg");
  mask-image: url("/icons/shield-check.svg");
}

.auth-trust-row span:last-child i {
  -webkit-mask-image: url("/icons/key-round.svg");
  mask-image: url("/icons/key-round.svg");
}

.auth-side {
  min-width: 0;
  height: 100%;
}

.side-card {
  height: 100%;
  overflow: hidden;
  border-radius: 24px;
}

.side-card--suplime {
  display: grid;
  grid-template-columns: minmax(210px, .88fr) minmax(240px, 1.12fr);
  min-height: 0;
}

.auth-visual {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(185, 242, 13, .12), transparent 24%),
    linear-gradient(155deg, #111319, #171a22);
  color: #f8fafc;
}

/* Organic auth identity ---------------------------------------------------
   The sign-in surface borrows the lime and deep-green palette of the main
   workspace. Shapes stay code-native so the page remains light and crisp. */
:root {
  --auth-brand: #142018;
  --auth-brand-contrast: #ffffff;
  --auth-bg: #eef2e8;
  --auth-bg-elevated: #fbfaf5;
  --auth-surface: rgba(255, 255, 251, .9);
  --auth-surface-solid: #fffef9;
  --auth-surface-muted: rgba(243, 246, 238, .9);
  --auth-text: #142018;
  --auth-muted: #68736c;
  --auth-faint: #99a39c;
  --auth-line: rgba(40, 116, 15, .1);
  --auth-line-strong: rgba(40, 116, 15, .24);
  --auth-shadow: 0 30px 90px rgba(32, 54, 36, .12);
  --auth-shadow-soft: 0 14px 38px rgba(32, 54, 36, .08);
  --auth-lime: #b9f20d;
  --auth-lime-deep: #93c20a;
  --auth-green: #28740f;
  --auth-forest: #163c22;
  --auth-sage: #dfe8d7;
  --auth-cream: #f7f5ed;
}

html[data-theme="dark"] {
  --auth-brand: #b9f20d;
  --auth-brand-contrast: #10160f;
  --auth-bg: #0a0f0c;
  --auth-bg-elevated: #101713;
  --auth-surface: rgba(17, 24, 20, .92);
  --auth-surface-solid: #111815;
  --auth-surface-muted: rgba(25, 34, 28, .92);
  --auth-text: #f0f5ed;
  --auth-muted: #9ca99f;
  --auth-faint: #728076;
  --auth-line: rgba(185, 242, 13, .09);
  --auth-line-strong: rgba(185, 242, 13, .24);
  --auth-shadow: 0 34px 90px rgba(0, 0, 0, .42);
  --auth-shadow-soft: 0 16px 38px rgba(0, 0, 0, .3);
  --auth-sage: #1a2a20;
  --auth-cream: #111815;
}

body.auth-page {
  background:
    radial-gradient(760px 560px at -8% -6%, rgba(185, 242, 13, .13), transparent 66%),
    radial-gradient(700px 540px at 102% 104%, rgba(40, 116, 15, .13), transparent 66%),
    linear-gradient(145deg, #fbfaf6, #f1f4ec 54%, #edf1e7);
}

html[data-theme="dark"] body.auth-page {
  background:
    radial-gradient(720px 540px at -8% -8%, rgba(185, 242, 13, .08), transparent 64%),
    radial-gradient(720px 560px at 105% 108%, rgba(40, 116, 15, .14), transparent 66%),
    linear-gradient(145deg, #080d0a, #0c120e 56%, #111914);
}

.auth-backdrop-grid {
  opacity: .34;
  background-image: radial-gradient(circle, rgba(40, 116, 15, .18) .8px, transparent .9px);
  background-size: 24px 24px;
  mask-image: linear-gradient(120deg, rgba(0, 0, 0, .72), transparent 48%, rgba(0, 0, 0, .28));
}

html[data-theme="dark"] .auth-backdrop-grid {
  opacity: .18;
  background-image: radial-gradient(circle, rgba(185, 242, 13, .24) .8px, transparent .9px);
}

.auth-backdrop-orbit {
  border: 0;
  border-radius: 44% 56% 62% 38% / 58% 38% 62% 42%;
  background: color-mix(in srgb, var(--auth-sage) 68%, transparent);
  filter: blur(1px);
  opacity: .7;
}

.auth-backdrop-orbit--one {
  top: -350px;
  left: -185px;
  transform: rotate(18deg);
}

.auth-backdrop-orbit--two {
  right: -315px;
  bottom: -360px;
  transform: rotate(-24deg) scale(1.08);
}

.theme-toggle {
  border-color: color-mix(in srgb, var(--auth-green) 18%, var(--auth-line));
  border-radius: 16px;
  background: color-mix(in srgb, var(--auth-surface-solid) 88%, transparent);
  box-shadow: 0 12px 30px rgba(32, 54, 36, .1);
}

.auth-shell {
  width: min(1180px, calc(100% - 36px));
  gap: 18px;
}

.auth-card,
.side-card {
  border-color: color-mix(in srgb, var(--auth-green) 13%, var(--auth-line));
  background: color-mix(in srgb, var(--auth-surface-solid) 94%, transparent);
  box-shadow: var(--auth-shadow);
}

.auth-card {
  border-radius: 30px 30px 30px 20px;
  background:
    radial-gradient(280px 190px at 106% -8%, rgba(185, 242, 13, .12), transparent 72%),
    color-mix(in srgb, var(--auth-surface-solid) 94%, transparent);
}

html[data-theme="dark"] .auth-card {
  background:
    radial-gradient(300px 210px at 106% -8%, rgba(185, 242, 13, .07), transparent 72%),
    color-mix(in srgb, var(--auth-surface-solid) 95%, transparent);
}

.auth-head {
  min-height: 76px;
  padding-inline: 22px;
  border-bottom-color: color-mix(in srgb, var(--auth-green) 10%, var(--auth-line));
}

.brand-mark {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(185, 242, 13, .28);
  border-radius: 15px 15px 15px 10px;
  background:
    radial-gradient(circle at 30% 18%, rgba(185, 242, 13, .16), transparent 38%),
    linear-gradient(145deg, #152012, #080b08 74%);
  box-shadow: 0 8px 20px rgba(40, 116, 15, .14);
}

.brand-mark img,
html[data-theme="dark"] .brand-mark img {
  width: 72%;
  height: 72%;
  object-fit: contain;
  filter: none;
}

.brand-name {
  letter-spacing: -.035em;
}

.mode-pill {
  border-color: rgba(40, 116, 15, .14);
  background: rgba(185, 242, 13, .1);
  color: color-mix(in srgb, var(--auth-green) 84%, var(--auth-text));
}

html[data-theme="dark"] .mode-pill {
  border-color: rgba(185, 242, 13, .16);
  color: var(--auth-lime);
}

.mode-pill > .mode-pill-indicator {
  background: var(--auth-lime-deep);
  box-shadow: 0 0 0 4px rgba(185, 242, 13, .09);
}

.auth-kicker,
.side-kicker {
  color: color-mix(in srgb, var(--auth-green) 82%, var(--auth-muted));
}

html[data-theme="dark"] :is(.auth-kicker, .side-kicker) {
  color: var(--auth-lime);
}

.form-title h1 {
  max-width: 17ch;
  letter-spacing: -.05em;
}

.auth-card input,
.auth-card select,
.auth-card textarea {
  border-color: color-mix(in srgb, var(--auth-green) 10%, var(--auth-line));
  border-radius: 14px 14px 14px 9px;
  background: color-mix(in srgb, var(--auth-surface-muted) 78%, var(--auth-surface-solid));
}

.auth-card input:hover,
.auth-card select:hover,
.auth-card textarea:hover {
  border-color: color-mix(in srgb, var(--auth-green) 22%, var(--auth-line));
}

.auth-card input:focus,
.auth-card select:focus,
.auth-card textarea:focus {
  border-color: color-mix(in srgb, var(--auth-green) 60%, var(--auth-line-strong));
  box-shadow: 0 0 0 4px rgba(185, 242, 13, .12);
}

.actions > button,
.actions > .ghostbtn {
  border-radius: 14px 14px 14px 9px;
}

.auth-card button[type="submit"] {
  border-color: #17231a;
  background: #17231a;
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(22, 60, 34, .16);
}

.auth-card button[type="submit"]:hover {
  border-color: var(--auth-green);
  background: var(--auth-forest);
}

html[data-theme="dark"] .auth-card button[type="submit"] {
  border-color: var(--auth-lime);
  background: var(--auth-lime);
  color: #11170f;
}

.auth-card .ghostbtn {
  border-color: color-mix(in srgb, var(--auth-green) 12%, var(--auth-line));
  background: color-mix(in srgb, var(--auth-sage) 42%, var(--auth-surface-solid));
}

.auth-trust-row i {
  background: var(--auth-green);
}

html[data-theme="dark"] .auth-trust-row i {
  background: var(--auth-lime);
}

.side-card {
  border-radius: 30px 30px 20px 30px;
  background: color-mix(in srgb, var(--auth-cream) 94%, transparent);
}

.side-card--suplime {
  grid-template-columns: minmax(230px, .9fr) minmax(270px, 1.1fr);
}

.auth-visual {
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 42%, rgba(185, 242, 13, .14), transparent 22%),
    radial-gradient(circle at 16% 92%, rgba(185, 242, 13, .09), transparent 28%),
    linear-gradient(155deg, #183020, #0c1710 72%);
}

.auth-visual::before,
.auth-visual::after,
.auth-visual-line {
  border-color: rgba(185, 242, 13, .22);
  border-radius: 46% 54% 63% 37% / 56% 38% 62% 44%;
  opacity: .5;
}

.auth-visual::before {
  width: 330px;
  transform: rotate(18deg);
}

.auth-visual::after {
  width: 232px;
  border-radius: 61% 39% 46% 54% / 42% 58% 39% 61%;
  transform: rotate(-16deg);
}

.auth-visual-line--one {
  width: 146px;
  border-radius: 38% 62% 54% 46% / 58% 44% 56% 42%;
  transform: rotate(28deg);
}

.auth-visual-line--two {
  width: 430px;
  border-radius: 58% 42% 36% 64% / 45% 62% 38% 55%;
  transform: rotate(-12deg);
}

.auth-hero-mark {
  width: 148px;
  height: 148px;
  border-color: rgba(185, 242, 13, .42);
  border-radius: 43% 57% 58% 42% / 54% 41% 59% 46%;
  background:
    radial-gradient(circle at 32% 20%, rgba(255, 255, 255, .92), transparent 36%),
    linear-gradient(145deg, #f9faec, #dce8bd);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .72),
    0 22px 48px rgba(0, 0, 0, .24),
    0 0 0 10px rgba(185, 242, 13, .045);
}

.auth-hero-mark img,
html[data-theme="dark"] .auth-hero-mark img {
  width: 106px;
  height: 106px;
  filter: none;
}

.auth-visual-label {
  color: #ddeaCF;
  opacity: .72;
}

.auth-side-content {
  background:
    radial-gradient(260px 180px at 100% 0%, rgba(185, 242, 13, .08), transparent 74%),
    transparent;
}

.auth-side-copy h2 {
  color: var(--auth-text);
  letter-spacing: -.05em;
}

.auth-feature {
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
}

.auth-feature > span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50% 50% 50% 35%;
  background: rgba(185, 242, 13, .11);
  color: color-mix(in srgb, var(--auth-green) 82%, var(--auth-muted));
}

html[data-theme="dark"] .auth-feature > span {
  color: var(--auth-lime);
}

.chip-row span {
  border-color: rgba(40, 116, 15, .12);
  background: rgba(185, 242, 13, .08);
  color: color-mix(in srgb, var(--auth-green) 74%, var(--auth-muted));
}

html[data-theme="dark"] .chip-row span {
  border-color: rgba(185, 242, 13, .12);
  color: color-mix(in srgb, var(--auth-lime) 76%, var(--auth-muted));
}

.auth-side-note {
  border-color: rgba(40, 116, 15, .12);
  border-radius: 16px 16px 16px 10px;
  background: color-mix(in srgb, var(--auth-sage) 44%, var(--auth-surface-solid));
}

.auth-side-note-icon {
  border-radius: 50% 50% 50% 35%;
  background: linear-gradient(145deg, var(--auth-lime), var(--auth-lime-deep));
  box-shadow: 0 8px 18px rgba(40, 116, 15, .16);
}

@media (max-width: 1040px) and (min-width: 901px) {
  .side-card--suplime {
    grid-template-columns: minmax(190px, .8fr) minmax(245px, 1.2fr);
  }
}

@media (max-width: 900px) {
  .auth-shell {
    width: min(560px, calc(100% - 20px));
  }

  .auth-card {
    border-radius: 26px 26px 26px 18px;
  }
}

@media (max-width: 520px) {
  .auth-shell {
    width: 100%;
    padding-inline: 8px;
  }

  .auth-card {
    border-radius: 22px 22px 22px 15px;
  }

  .auth-head {
    padding-inline: 13px;
  }

  .brand-mark {
    border-radius: 13px 13px 13px 9px;
  }

  .auth-card input,
  .auth-card select,
  .auth-card textarea,
  .actions > button,
  .actions > .ghostbtn {
    border-radius: 12px 12px 12px 8px;
  }
}

/* Auth_EXAMPLE-inspired HelpDesk console ---------------------------------
   Desktop follows the reference's dark visual rail + calm form canvas, but
   replaces botanical imagery with a lightweight service topology. */
@media (min-width: 901px) {
  .auth-shell {
    width: min(1280px, calc(100% - 28px));
    padding-block: 14px;
    grid-template-columns: minmax(500px, 1.08fr) minmax(410px, .92fr);
    gap: 14px;
  }

  .auth-card {
    order: 2;
    border-radius: 28px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .2), transparent 22%),
      color-mix(in srgb, var(--auth-cream) 96%, var(--auth-surface-solid));
    box-shadow: 0 26px 78px rgba(29, 48, 33, .11);
  }

  html[data-theme="dark"] .auth-card {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .025), transparent 24%),
      #111815;
  }

  .auth-side {
    order: 1;
  }

  .auth-side .side-card--suplime {
    position: relative;
    display: block;
    overflow: hidden;
    border-color: rgba(185, 242, 13, .13);
    border-radius: 30px;
    background: #0d1710;
    box-shadow: 0 28px 84px rgba(12, 32, 18, .2);
  }

  .auth-card .auth-head {
    min-height: 82px;
    padding: 24px 34px 10px;
    justify-content: flex-end;
    border-bottom: 0;
  }

  .auth-card .auth-head .brand-lockup {
    display: none;
  }

  .auth-card .mode-pill {
    min-height: 31px;
    padding-inline: 11px;
    border-color: rgba(40, 116, 15, .16);
    background: rgba(185, 242, 13, .09);
    letter-spacing: .035em;
  }

  .auth-card-body {
    min-height: 0;
    padding: 34px clamp(42px, 5vw, 72px) 42px;
    display: flex;
    flex-direction: column;
  }

  .auth-page--login .auth-card-body {
    justify-content: center;
  }

  body.auth-page--register .auth-card-body {
    padding: 12px clamp(30px, 4vw, 54px) 28px;
    gap: 14px;
  }

  body.auth-page--register .auth-head {
    min-height: 66px;
    padding-top: 16px;
  }

  body.auth-page--register .form-title h1 {
    font-size: clamp(2rem, 3.2vw, 2.5rem);
  }

  .auth-page--login .form-title h1 {
    max-width: none;
    font-size: clamp(2.4rem, 3.6vw, 3.25rem);
    line-height: .98;
    white-space: nowrap;
  }

  .auth-page--login .form-title p {
    max-width: 48ch;
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.62;
  }

  .auth-page--login .auth-form {
    margin-top: 12px;
    gap: 14px;
  }

  .auth-page--login .auth-card input,
  .auth-page--login .auth-card select,
  .auth-page--login .auth-card textarea {
    min-height: 54px;
  }

  .auth-page--login .actions > button,
  .auth-page--login .actions > .ghostbtn {
    min-height: 50px;
  }

  .auth-trust-row {
    margin-top: auto;
  }

  .auth-page--login .auth-trust-row {
    margin-top: 22px;
  }
}

.auth-visual-brand {
  position: absolute;
  z-index: 7;
  top: 36px;
  left: 40px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: #f4f8ef;
}

.auth-visual-brand-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(185, 242, 13, .27);
  border-radius: 13px;
  background: rgba(185, 242, 13, .08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.auth-visual-brand-icon img {
  width: 28px;
  height: 28px;
  filter: none;
}

.auth-visual-brand-copy {
  display: grid;
  gap: 2px;
}

.auth-visual-brand-copy strong {
  font-size: 13px;
  font-weight: 850;
  letter-spacing: -.02em;
}

.auth-visual-brand-copy small {
  color: rgba(238, 246, 232, .48);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

@media (min-width: 901px) {
  .auth-side .auth-visual {
    position: absolute;
    inset: 0;
    min-height: 0;
    display: block;
    background:
      linear-gradient(rgba(185, 242, 13, .035) 1px, transparent 1px),
      linear-gradient(90deg, rgba(185, 242, 13, .035) 1px, transparent 1px),
      radial-gradient(circle at 73% 24%, rgba(185, 242, 13, .12), transparent 26%),
      radial-gradient(circle at 16% 88%, rgba(40, 116, 15, .22), transparent 34%),
      linear-gradient(145deg, #15251a, #0c1510 66%, #09100c);
    background-size: 44px 44px, 44px 44px, auto, auto, auto;
  }

  .auth-side .auth-visual::before,
  .auth-side .auth-visual::after,
  .auth-side .auth-visual-line {
    position: absolute;
    inset: auto;
    border-color: rgba(185, 242, 13, .16);
    opacity: 1;
  }

  .auth-side .auth-visual::before {
    content: "";
    width: 470px;
    height: 470px;
    top: 60px;
    right: -92px;
    border-radius: 50%;
    transform: none;
    box-shadow:
      0 0 0 58px rgba(185, 242, 13, .022),
      0 0 0 116px rgba(185, 242, 13, .014);
  }

  .auth-side .auth-visual::after {
    content: "";
    width: 290px;
    height: 290px;
    top: 150px;
    right: 0;
    border-radius: 43% 57% 62% 38% / 58% 42% 58% 42%;
    transform: rotate(-12deg);
  }

  .auth-side .auth-visual-line--one {
    width: 174px;
    height: 174px;
    top: 207px;
    right: 58px;
    border-radius: 44% 56% 38% 62% / 58% 41% 59% 42%;
    transform: rotate(24deg);
  }

  .auth-side .auth-visual-line--two {
    width: 620px;
    height: 620px;
    right: -188px;
    bottom: -310px;
    border-radius: 50%;
    transform: none;
    opacity: .48;
  }

  .auth-side .auth-hero-mark {
    position: absolute;
    z-index: 5;
    top: 222px;
    right: 73px;
    width: 144px;
    height: 144px;
    border-radius: 28px;
    border-color: rgba(185, 242, 13, .26);
    background: rgba(7, 14, 9, .78);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .08),
      0 24px 60px rgba(0, 0, 0, .34),
      0 0 0 10px rgba(185, 242, 13, .035);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .auth-side .auth-hero-mark img,
  html[data-theme="dark"] .auth-side .auth-hero-mark img {
    width: 102px;
    height: 102px;
    filter: none;
    transform: none;
  }

  .auth-side .auth-side-content {
    position: relative;
    z-index: 6;
    min-height: 100%;
    padding: 40px;
    justify-content: flex-end;
    gap: 17px;
    color: #f1f6ee;
    background: linear-gradient(180deg, transparent 38%, rgba(5, 11, 7, .08) 58%, rgba(5, 11, 7, .68));
  }

  .auth-side .auth-side-content .side-kicker {
    color: var(--auth-lime);
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    letter-spacing: .14em;
  }

  .auth-side .auth-side-copy {
    max-width: 510px;
  }

  .auth-side .auth-side-copy h2 {
    max-width: 11ch;
    color: #f5f8f2;
    font-size: clamp(2.5rem, 4.5vw, 4.2rem);
    line-height: .98;
  }

  .auth-side .auth-side-copy p {
    max-width: 54ch;
    color: rgba(236, 244, 232, .62);
    font-size: 12px;
    line-height: 1.6;
  }

  .auth-side .auth-feature-list {
    width: min(100%, 560px);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    border: 0;
  }

  .auth-side .auth-feature {
    min-width: 0;
    padding: 11px;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 8px;
    border: 1px solid rgba(225, 238, 218, .1);
    border-radius: 13px;
    background: rgba(255, 255, 255, .035);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .auth-side .auth-feature > span {
    width: 24px;
    height: 24px;
    color: var(--auth-lime);
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    background: rgba(185, 242, 13, .09);
  }

  .auth-side .auth-feature strong {
    color: #f0f5ed;
    font-size: 10px;
  }

  .auth-side .auth-feature small {
    overflow: hidden;
    color: rgba(236, 244, 232, .48);
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .auth-side .auth-side-content .chip-row {
    display: none;
  }

  .auth-side .auth-side-note {
    width: min(100%, 330px);
    margin-top: 0;
    border-color: rgba(185, 242, 13, .12);
    background: rgba(185, 242, 13, .055);
  }

  .auth-side .auth-side-note strong {
    color: #f0f5ed;
  }

  .auth-side .auth-side-note span:not(.auth-side-note-icon) {
    color: rgba(236, 244, 232, .5);
  }

  .auth-side .auth-visual-label {
    display: none;
  }
}

.auth-tech-status {
  position: absolute;
  z-index: 7;
  top: 40px;
  right: 40px;
  min-height: 30px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(185, 242, 13, .13);
  border-radius: 999px;
  background: rgba(6, 13, 8, .46);
  color: rgba(233, 241, 229, .48);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.auth-tech-status strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--auth-lime);
  font-size: inherit;
}

.auth-tech-status strong::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--auth-lime);
  box-shadow: 0 0 0 4px rgba(185, 242, 13, .08);
}

.auth-tech-nodes,
.auth-tech-node {
  position: absolute;
  z-index: 4;
}

.auth-tech-nodes {
  inset: 0;
}

.auth-tech-node {
  width: 9px;
  height: 9px;
  border: 2px solid #172318;
  border-radius: 50%;
  background: var(--auth-lime);
  box-shadow: 0 0 0 5px rgba(185, 242, 13, .07);
}

.auth-tech-node--one {
  top: 162px;
  right: 230px;
}

.auth-tech-node--two {
  top: 398px;
  right: 52px;
}

.auth-tech-node--three {
  top: 304px;
  right: 292px;
}

@media (max-width: 1080px) and (min-width: 901px) {
  body.auth-page .auth-shell {
    grid-template-columns: minmax(445px, 1.02fr) minmax(405px, .98fr);
  }

  .auth-side .auth-side-content {
    padding: 30px;
  }

  .auth-side .auth-side-copy h2 {
    font-size: clamp(2.25rem, 4vw, 3.25rem);
  }

  .auth-side .auth-feature small {
    display: none;
  }

  body.auth-page .auth-card-body {
    padding-inline: 38px;
  }

  .auth-page--login .form-title h1 {
    font-size: clamp(2.35rem, 3.55vw, 3rem);
  }
}

@media (max-width: 900px) {
  .auth-visual-brand,
  .auth-tech-status,
  .auth-tech-nodes {
    display: none;
  }

  .auth-card .auth-head .brand-lockup {
    display: flex;
  }

  .auth-card {
    background:
      linear-gradient(180deg, rgba(185, 242, 13, .035), transparent 180px),
      color-mix(in srgb, var(--auth-cream) 96%, var(--auth-surface-solid));
  }

  html[data-theme="dark"] .auth-card {
    background:
      linear-gradient(180deg, rgba(185, 242, 13, .035), transparent 180px),
      #111815;
  }

  .auth-page--login .form-title h1 {
    white-space: normal;
  }
}

.auth-visual::before,
.auth-visual::after,
.auth-visual-line {
  content: "";
  position: absolute;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: .12;
}

.auth-visual::before {
  width: 310px;
  aspect-ratio: 1;
}

.auth-visual::after {
  width: 220px;
  aspect-ratio: 1;
}

.auth-visual-line--one {
  width: 132px;
  aspect-ratio: 1;
}

.auth-visual-line--two {
  width: 390px;
  aspect-ratio: 1;
}

.auth-hero-mark {
  position: relative;
  z-index: 1;
  width: 142px;
  height: 142px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
  border-radius: 32px;
  background: color-mix(in srgb, currentColor 6%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
  transform: none;
}

.auth-hero-mark img {
  width: 104px;
  height: 104px;
  filter: none;
  transform: none;
}

html[data-theme="dark"] .auth-hero-mark img {
  filter: none;
}

.auth-visual-label {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 1;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .13em;
  opacity: .58;
}

.auth-side-content {
  padding: 28px 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 17px;
}

.auth-side-copy {
  display: grid;
  gap: 10px;
}

.auth-side-copy h2 {
  color: var(--auth-text);
  font-size: clamp(1.75rem, 2.8vw, 2.3rem);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.auth-side-copy p {
  color: var(--auth-muted);
  font-size: 12px;
  line-height: 1.5;
}

.auth-feature-list {
  display: grid;
  border-block: 1px solid var(--auth-line);
}

.auth-feature {
  padding: 10px 0;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
  border-bottom: 1px solid var(--auth-line);
}

.auth-feature:last-child {
  border-bottom: 0;
}

.auth-feature > span {
  color: var(--auth-faint);
  font-size: 9px;
  font-weight: 850;
}

.auth-feature div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.auth-feature strong {
  color: var(--auth-text);
  font-size: 11.5px;
}

.auth-feature small {
  color: var(--auth-muted);
  font-size: 9.5px;
  line-height: 1.35;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip-row span {
  min-height: 25px;
  padding: 0 8px;
  border-color: var(--auth-line);
  border-radius: 999px;
  background: var(--auth-surface-muted);
  color: var(--auth-muted);
  font-size: 9px;
  letter-spacing: .03em;
}

.auth-side-note {
  margin-top: auto;
  padding: 11px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  border: 1px solid var(--auth-line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--auth-surface-muted) 68%, transparent);
}

.auth-side-note-icon {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--auth-brand);
}

.auth-side-note > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.auth-side-note strong {
  color: var(--auth-text);
  font-size: 9.5px;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.auth-side-note span:not(.auth-side-note-icon) {
  color: var(--auth-muted);
  font-size: 9px;
  line-height: 1.35;
}

@media (min-width: 901px) {
  .auth-page--register .auth-shell {
    align-items: stretch;
    padding-block: 22px;
  }

  .auth-page--register .auth-card-body {
    padding-block: 20px;
    gap: 14px;
  }

  .auth-page--register .form-title h1 {
    font-size: 2.1rem;
  }

  .auth-page--register .auth-form {
    column-gap: 9px;
    row-gap: 7px;
  }

  .auth-page--register .auth-card input,
  .auth-page--register .auth-card select {
    min-height: 41px;
  }

  .auth-page--register .side-card--suplime {
    min-height: 0;
  }
}

@media (max-width: 1040px) and (min-width: 901px) {
  .auth-shell {
    grid-template-columns: minmax(360px, .9fr) minmax(380px, 1.1fr);
  }

  .side-card--suplime {
    grid-template-columns: minmax(175px, .76fr) minmax(230px, 1.24fr);
  }

  .auth-hero-mark {
    width: 120px;
    height: 120px;
  }

  .auth-hero-mark img {
    width: 88px;
    height: 88px;
  }
}

@media (max-width: 900px) {
  .auth-float-tools {
    top: max(10px, env(safe-area-inset-top, 10px));
    right: 10px;
  }

  .auth-shell {
    width: min(540px, calc(100% - 20px));
    min-height: auto;
    padding: calc(60px + env(safe-area-inset-top, 0px)) 0 calc(14px + env(safe-area-inset-bottom, 0px));
    grid-template-columns: 1fr;
    align-items: start;
  }

  .auth-side {
    display: none;
  }

  .auth-card {
    height: auto;
    border-radius: 22px;
  }

  .auth-card-body {
    flex: initial;
  }
}

@media (max-width: 520px) {
  .auth-shell {
    width: 100%;
    padding-inline: 8px;
  }

  .auth-head {
    min-height: 64px;
    padding: 10px 11px;
    gap: 8px;
  }

  .brand-lockup {
    gap: 8px;
  }

  .brand-mark {
    width: 39px;
    height: 39px;
    flex-basis: 39px;
    border-radius: 12px;
  }

  .brand-mark img {
    width: 27px;
    height: 27px;
  }

  .brand-tag {
    display: none;
  }

  .brand-name {
    font-size: 13px;
  }

  .mode-pill {
    min-height: 26px;
    padding-inline: 8px;
    font-size: 9.5px;
  }

  .auth-card-body {
    padding: 19px 15px 15px;
    gap: 14px;
  }

  .form-title {
    gap: 6px;
  }

  .form-title h1 {
    font-size: clamp(1.75rem, 9vw, 2.2rem);
  }

  .form-title p {
    font-size: 11px;
    line-height: 1.42;
  }

  .auth-form {
    gap: 9px;
  }

  .auth-card input,
  .auth-card select,
  .auth-card textarea {
    min-height: 42px;
  }

  .actions {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .actions > button,
  .actions > .ghostbtn {
    min-height: 41px;
  }

  .auth-trust-row {
    justify-content: space-between;
  }
}

@media (max-width: 520px) {
  .auth-page--register .auth-card-body {
    gap: 11px;
  }

  .auth-page--register .form-title p {
    font-size: 10.5px;
  }

  .auth-page--register .auth-register-form > .actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auth-page--register .auth-trust-row {
    padding-top: 10px;
  }
}

@media (max-width: 460px) {
  .auth-register-form {
    grid-template-columns: 1fr;
  }

  .auth-register-field,
  .auth-register-helper,
  .auth-register-form > .actions {
    grid-column: 1;
  }

  .auth-page--register .auth-register-form > .actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 360px) {
  .auth-shell {
    padding-top: calc(54px + env(safe-area-inset-top, 0px));
    padding-inline: 5px;
  }

  .auth-head {
    padding-inline: 9px;
  }

  .brand-mark {
    width: 35px;
    height: 35px;
    flex-basis: 35px;
  }

  .brand-name {
    max-width: 130px;
    font-size: 12px;
  }

  .auth-card-body {
    padding: 16px 12px 13px;
  }

  .auth-kicker {
    font-size: 9px;
  }

  .auth-trust-row {
    gap: 7px;
    font-size: 9px;
  }
}

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

@media (prefers-reduced-motion: no-preference) {
  @keyframes auth-surface-in {
    from { opacity: 0; transform: translateY(9px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes auth-mark-breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.018); }
  }

  .auth-card,
  .side-card {
    animation: auth-surface-in .42s cubic-bezier(.2, .75, .25, 1) both;
  }

  .side-card {
    animation-delay: .06s;
  }

  .auth-hero-mark {
    animation: auth-mark-breathe 5.5s ease-in-out infinite;
  }
}

/* Seamless responsive auth surface -------------------------------------
   The page reads as one workspace instead of two cards. */
body.auth-page {
  background:
    radial-gradient(circle at 12% 8%, rgba(87, 153, 51, .1), transparent 34%),
    linear-gradient(135deg, #edf2ea 0%, #f7f8f4 56%, #eef3ec 100%);
}

html[data-theme="dark"] body.auth-page {
  background:
    radial-gradient(circle at 13% 10%, rgba(91, 168, 49, .13), transparent 35%),
    linear-gradient(135deg, #09120c 0%, #0c1510 54%, #08100b 100%);
}

body.auth-page .auth-shell {
  width: min(1440px, 100%);
  min-height: 100svh;
  padding: clamp(14px, 2.25vw, 34px);
  gap: clamp(18px, 3.2vw, 56px);
}

body.auth-page .auth-card,
body.auth-page .side-card--suplime {
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
}

body.auth-page .auth-card::before,
body.auth-page .auth-card::after,
body.auth-page .side-card--suplime::before,
body.auth-page .side-card--suplime::after {
  box-shadow: none;
}

@media (min-width: 901px) {
  body.auth-page .auth-shell {
    grid-template-columns: minmax(420px, 1.06fr) minmax(390px, .94fr);
    align-items: stretch;
  }

  body.auth-page .auth-side .auth-visual {
    background:
      linear-gradient(rgba(151, 218, 83, .035) 1px, transparent 1px),
      linear-gradient(90deg, rgba(151, 218, 83, .035) 1px, transparent 1px),
      radial-gradient(circle at 72% 24%, rgba(185, 242, 13, .1), transparent 28%),
      radial-gradient(circle at 14% 88%, rgba(40, 116, 15, .14), transparent 36%);
    background-size: 44px 44px, 44px 44px, auto, auto;
  }

  body.auth-page .auth-side .auth-hero-mark {
    top: clamp(150px, 22vh, 190px);
  }

  body.auth-page .auth-side .auth-side-content {
    padding: clamp(28px, 3.5vw, 50px);
    background: linear-gradient(180deg, transparent 42%, rgba(4, 11, 6, .08) 64%, rgba(4, 11, 6, .28));
  }

  body.auth-page .auth-card .auth-head {
    padding-inline: clamp(16px, 3.5vw, 50px);
  }

  body.auth-page .auth-card-body {
    width: min(100%, 600px);
    margin-inline: auto;
    padding-inline: clamp(24px, 4vw, 58px);
  }

  body.auth-page--login .auth-card-body {
    padding-block: clamp(24px, 5vh, 52px);
  }

  body.auth-page .auth-side .auth-feature,
  body.auth-page .auth-side .auth-side-note {
    border: 0;
    border-left: 1px solid rgba(185, 242, 13, .2);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  body.auth-page .auth-side .auth-side-note {
    border-left: 0;
    border-top: 1px solid rgba(185, 242, 13, .15);
    padding-inline: 0;
  }

  html:not([data-theme="dark"]) body.auth-page .auth-side .auth-side-content {
    color: #173321;
    background: linear-gradient(180deg, transparent 42%, rgba(39, 93, 36, .025) 68%, rgba(39, 93, 36, .08));
  }

  html:not([data-theme="dark"]) body.auth-page .auth-visual-brand {
    color: #183321;
  }

  html:not([data-theme="dark"]) body.auth-page .auth-visual-brand-copy small,
  html:not([data-theme="dark"]) body.auth-page .auth-side .auth-side-copy p,
  html:not([data-theme="dark"]) body.auth-page .auth-side .auth-feature small,
  html:not([data-theme="dark"]) body.auth-page .auth-side .auth-side-note span:not(.auth-side-note-icon) {
    color: rgba(23, 51, 33, .62);
  }

  html:not([data-theme="dark"]) body.auth-page .auth-side .auth-side-copy h2,
  html:not([data-theme="dark"]) body.auth-page .auth-side .auth-feature strong,
  html:not([data-theme="dark"]) body.auth-page .auth-side .auth-side-note strong {
    color: #173321;
  }

  html:not([data-theme="dark"]) body.auth-page .auth-side .auth-feature,
  html:not([data-theme="dark"]) body.auth-page .auth-side .auth-side-note {
    border-color: rgba(39, 93, 36, .18);
  }

  html:not([data-theme="dark"]) body.auth-page .auth-side .auth-feature > span {
    color: #3d7d1e;
    background: rgba(107, 164, 61, .1);
  }
}

@media (max-width: 1120px) and (min-width: 901px) {
  body.auth-page .auth-shell {
    grid-template-columns: minmax(390px, 1fr) minmax(380px, 1fr);
    gap: 20px;
    padding: 16px 20px;
  }

  body.auth-page .auth-side .auth-side-content {
    padding: 28px;
  }

  body.auth-page .auth-side .auth-side-copy h2 {
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  }

  body.auth-page .auth-side .auth-hero-mark {
    top: clamp(145px, 20vh, 175px);
    right: 46px;
    width: 126px;
    height: 126px;
  }

  body.auth-page .auth-side .auth-hero-mark img {
    width: 88px;
    height: 88px;
  }

  body.auth-page .auth-side .auth-feature {
    padding: 9px;
  }
}

@media (max-width: 900px) {
  body.auth-page {
    background:
      linear-gradient(rgba(53, 108, 35, .035) 1px, transparent 1px),
      linear-gradient(90deg, rgba(53, 108, 35, .035) 1px, transparent 1px),
      radial-gradient(circle at 50% 0%, rgba(130, 205, 67, .12), transparent 40%),
      #f5f7f2;
    background-size: 48px 48px, 48px 48px, auto, auto;
  }

  html[data-theme="dark"] body.auth-page {
    background:
      linear-gradient(rgba(151, 218, 83, .025) 1px, transparent 1px),
      linear-gradient(90deg, rgba(151, 218, 83, .025) 1px, transparent 1px),
      radial-gradient(circle at 50% 0%, rgba(130, 205, 67, .09), transparent 42%),
      #0a120d;
    background-size: 48px 48px, 48px 48px, auto, auto;
  }

  body.auth-page .auth-shell {
    width: min(620px, 100%);
    min-height: 100svh;
    padding: calc(58px + env(safe-area-inset-top, 0px)) clamp(18px, 5vw, 38px) calc(22px + env(safe-area-inset-bottom, 0px));
    display: flex;
    align-items: center;
  }

  body.auth-page .auth-card {
    width: 100%;
  }

  body.auth-page .auth-head {
    min-height: 58px;
    padding: 4px 0 12px;
  }

  body.auth-page .auth-card-body {
    padding: clamp(22px, 5vw, 34px) 0 0;
  }

  body.auth-page .auth-trust-row {
    margin-top: 18px;
  }
}

@media (max-width: 520px) {
  body.auth-page .auth-shell {
    padding-inline: 18px;
    align-items: flex-start;
  }

  body.auth-page .auth-card-body {
    padding-top: 18px;
  }

  body.auth-page .form-title h1 {
    font-size: clamp(2rem, 10vw, 2.65rem);
  }

  body.auth-page .auth-form {
    gap: 11px;
  }

  body.auth-page .auth-card input,
  body.auth-page .auth-card select,
  body.auth-page .auth-card textarea,
  body.auth-page .actions > button,
  body.auth-page .actions > .ghostbtn {
    min-height: 46px;
  }
}

@media (max-width: 360px) {
  body.auth-page .auth-shell {
    padding-inline: 13px;
  }

  body.auth-page .brand-name {
    max-width: 160px;
  }
}

/* Stable auth scene and local technical typography --------------------- */
:root {
  --auth-display-font: Bahnschrift, "Segoe UI Variable Display", "Aptos Display", "Segoe UI", system-ui, sans-serif;
}

html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

@media (min-width: 901px) {
  body.auth-page .auth-shell {
    align-items: center;
  }

  body.auth-page .auth-side {
    height: clamp(520px, calc(100svh - 64px), 720px);
    min-height: 0;
    align-self: start;
    position: sticky;
    top: max(32px, calc((100svh - 720px) / 2));
  }

  body.auth-page .side-card--suplime {
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  body.auth-page .auth-side .auth-side-content {
    height: 100%;
    min-height: 0;
  }

  body.auth-page .auth-side .auth-side-copy h2 {
    font-family: var(--auth-display-font);
    font-weight: 300;
    font-stretch: condensed;
    letter-spacing: -.045em;
  }

  body.auth-page .auth-side .auth-visual-brand-copy strong,
  body.auth-page .auth-side .auth-side-content .side-kicker,
  body.auth-page .auth-side .auth-feature strong,
  body.auth-page .auth-side .auth-side-note strong {
    font-family: var(--auth-display-font);
  }

  body.auth-page .auth-side .auth-visual-brand-copy strong {
    font-weight: 500;
  }

  body.auth-page .auth-side .auth-hero-mark {
    top: clamp(112px, 18vh, 152px);
  }

  body.auth-page .auth-side .auth-side-content {
    padding-block: clamp(24px, 3vw, 38px);
  }

  body.auth-page .auth-side .auth-side-copy h2 {
    font-size: clamp(2.55rem, 4vw, 3.8rem);
  }

  body.auth-page--register .auth-card,
  body.auth-page--login .auth-card {
    align-self: center;
  }

  body.auth-page--register .auth-card-body {
    justify-content: center;
  }
}

/* Preserve the visual rail between login and registration. */
@view-transition {
  navigation: auto;
}

body.auth-page .auth-side {
  view-transition-name: auth-technical-scene;
}

body.auth-page .auth-card {
  view-transition-name: auth-form-scene;
}

body.auth-page .auth-float-tools {
  view-transition-name: auth-theme-tool;
}

body.auth-page .side-card--suplime {
  animation: none !important;
}

body.auth-page .auth-card-body,
body.auth-page .mode-pill {
  transition: opacity .16s ease, transform .16s ease;
}

html.auth-route-loading body.auth-page .auth-card {
  cursor: progress;
}

html.auth-route-loading body.auth-page .auth-card::after {
  content: "";
  position: absolute;
  z-index: 6;
  top: 0;
  left: 14%;
  width: 72%;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, currentColor 45%, transparent);
  opacity: .34;
  animation: auth-seamless-progress .8s ease-in-out infinite;
  pointer-events: none;
}

html.auth-route-loading body.auth-page .auth-card :is(a, button, input, select, textarea) {
  pointer-events: none;
}

html.auth-route-leaving body.auth-page .auth-card-body {
  opacity: 0;
  transform: translateY(5px);
}

html.auth-route-leaving body.auth-page .mode-pill {
  opacity: 0;
  transform: translateY(-3px);
}

::view-transition-old(auth-technical-scene),
::view-transition-new(auth-technical-scene),
::view-transition-old(auth-theme-tool),
::view-transition-new(auth-theme-tool) {
  animation-duration: .01s;
}

::view-transition-old(auth-form-scene) {
  animation: auth-form-route-out .18s ease both;
}

::view-transition-new(auth-form-scene) {
  animation: auth-form-route-in .24s ease both;
}

@keyframes auth-form-route-out {
  to { opacity: 0; transform: translateY(5px); }
}

@keyframes auth-form-route-in {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes auth-seamless-progress {
  0%, 100% { opacity: .12; transform: scaleX(.34); }
  50% { opacity: .48; transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  html.auth-route-leaving body.auth-page .auth-card-body,
  html.auth-route-leaving body.auth-page .mode-pill {
    transform: none;
  }
}

/* Main workspace tonal palette ----------------------------------------- */
:root {
  --auth-brand: #111111;
  --auth-brand-contrast: #ffffff;
  --auth-bg: #f5f5f5;
  --auth-bg-elevated: #ffffff;
  --auth-surface: rgba(255, 255, 255, .88);
  --auth-surface-solid: #ffffff;
  --auth-surface-muted: #f7f7f7;
  --auth-text: #111111;
  --auth-muted: #5f6368;
  --auth-faint: #8a8d91;
  --auth-line: rgba(17, 17, 17, .10);
  --auth-line-strong: rgba(17, 17, 17, .22);
  --auth-green: #111111;
  --auth-forest: #111111;
  --auth-sage: #eeeeee;
  --auth-cream: #f5f5f5;
}

html[data-theme="dark"] {
  --auth-brand: #f4f4f4;
  --auth-brand-contrast: #111111;
  --auth-bg: #050505;
  --auth-bg-elevated: #0a0a0a;
  --auth-surface: rgba(16, 16, 16, .92);
  --auth-surface-solid: #101010;
  --auth-surface-muted: #171717;
  --auth-text: #f4f4f4;
  --auth-muted: #b5b5b5;
  --auth-faint: #777777;
  --auth-line: rgba(255, 255, 255, .09);
  --auth-line-strong: rgba(255, 255, 255, .20);
  --auth-green: #f4f4f4;
  --auth-forest: #f4f4f4;
  --auth-sage: #171717;
  --auth-cream: #0a0a0a;
}

body.auth-page {
  background:
    radial-gradient(720px 480px at 8% -8%, rgba(17, 17, 17, .055), transparent 66%),
    radial-gradient(620px 460px at 102% 104%, rgba(17, 17, 17, .035), transparent 68%),
    linear-gradient(145deg, #f8f8f8 0%, #f5f5f5 54%, #eeeeee 100%);
}

html[data-theme="dark"] body.auth-page {
  background:
    radial-gradient(760px 500px at 10% -10%, rgba(255, 255, 255, .05), transparent 64%),
    radial-gradient(700px 500px at 104% 108%, rgba(185, 242, 13, .035), transparent 68%),
    linear-gradient(145deg, #030303 0%, #050505 55%, #0a0a0a 100%);
}

body.auth-page .auth-backdrop-grid {
  inset: 0;
  opacity: .42;
  background-image:
    linear-gradient(rgba(17, 17, 17, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 17, 17, .035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(115deg, rgba(0, 0, 0, .72), transparent 52%, rgba(0, 0, 0, .24));
}

html[data-theme="dark"] body.auth-page .auth-backdrop-grid {
  opacity: .28;
  background-image:
    linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
}

body.auth-page .auth-backdrop-orbit {
  border: 1px solid rgba(17, 17, 17, .065);
  border-radius: 50%;
  background: transparent;
  filter: none;
  opacity: 1;
}

body.auth-page .auth-backdrop-orbit--one {
  width: min(66vw, 820px);
  top: -540px;
  left: -260px;
  transform: none;
}

body.auth-page .auth-backdrop-orbit--two {
  width: min(58vw, 720px);
  right: -330px;
  bottom: -500px;
  transform: none;
}

html[data-theme="dark"] body.auth-page .auth-backdrop-orbit {
  border-color: rgba(255, 255, 255, .055);
}

@media (min-width: 901px) {
  body.auth-page .auth-side .auth-visual {
    background:
      linear-gradient(rgba(17, 17, 17, .032) 1px, transparent 1px),
      linear-gradient(90deg, rgba(17, 17, 17, .032) 1px, transparent 1px),
      radial-gradient(circle at 72% 24%, rgba(185, 242, 13, .075), transparent 28%),
      radial-gradient(circle at 14% 88%, rgba(17, 17, 17, .045), transparent 38%);
    background-size: 56px 56px, 56px 56px, auto, auto;
  }

  html[data-theme="dark"] body.auth-page .auth-side .auth-visual {
    background:
      linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px),
      radial-gradient(circle at 72% 24%, rgba(185, 242, 13, .055), transparent 28%),
      radial-gradient(circle at 14% 88%, rgba(255, 255, 255, .028), transparent 38%);
    background-size: 56px 56px, 56px 56px, auto, auto;
  }

  html:not([data-theme="dark"]) body.auth-page .auth-side .auth-side-content {
    color: #111111;
    background: linear-gradient(180deg, transparent 44%, rgba(17, 17, 17, .018) 70%, rgba(17, 17, 17, .05));
  }

  html[data-theme="dark"] body.auth-page .auth-side .auth-side-content {
    background: linear-gradient(180deg, transparent 44%, rgba(255, 255, 255, .012) 70%, rgba(255, 255, 255, .026));
  }
}

body.auth-page .auth-card input,
body.auth-page .auth-card select,
body.auth-page .auth-card textarea {
  border-color: #dedede;
  background: #ffffff;
}

body.auth-page .auth-card input:hover,
body.auth-page .auth-card select:hover,
body.auth-page .auth-card textarea:hover {
  border-color: #c8c8c8;
}

body.auth-page .auth-card input:focus,
body.auth-page .auth-card select:focus,
body.auth-page .auth-card textarea:focus {
  border-color: #111111;
  box-shadow: 0 0 0 4px rgba(17, 17, 17, .07);
}

html[data-theme="dark"] body.auth-page .auth-card input,
html[data-theme="dark"] body.auth-page .auth-card select,
html[data-theme="dark"] body.auth-page .auth-card textarea {
  border-color: #282828;
  background: #080808;
}

html[data-theme="dark"] body.auth-page .auth-card input:hover,
html[data-theme="dark"] body.auth-page .auth-card select:hover,
html[data-theme="dark"] body.auth-page .auth-card textarea:hover {
  border-color: #3c3c3c;
}

html[data-theme="dark"] body.auth-page .auth-card input:focus,
html[data-theme="dark"] body.auth-page .auth-card select:focus,
html[data-theme="dark"] body.auth-page .auth-card textarea:focus {
  border-color: #f4f4f4;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .07);
}

/* Centered frosted authentication -------------------------------------- */
body.auth-page {
  position: relative;
  min-height: 100svh;
  overflow-x: hidden;
  background: #eeeeee;
}

html[data-theme="dark"] body.auth-page {
  background: #050505;
}

body.auth-page .auth-backdrop {
  inset: -18px;
  z-index: 0;
  overflow: hidden;
  background: #eeeeee;
  filter: none;
  transform: scale(1.025);
}

body.auth-page .auth-backdrop-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-position: center;
  background-size: cover;
  will-change: opacity;
  transition:
    opacity 1.65s cubic-bezier(.22, .72, .18, 1),
    filter 1.65s cubic-bezier(.22, .72, .18, 1),
    transform 1.9s cubic-bezier(.22, .72, .18, 1);
}

body.auth-page .auth-backdrop-scene--day {
  z-index: 0;
  opacity: 1;
  background-image: url("/static/pic/auth-background-focus-v3.png");
  filter: grayscale(1) contrast(.92) brightness(1.04);
  transform: scale(1);
}

body.auth-page .auth-backdrop-scene--night {
  z-index: 1;
  opacity: 0;
  background-image: url("/static/pic/auth-background-night-focus-v2.png");
  filter: saturate(.7) contrast(.98) brightness(.78);
  transform: scale(1.008);
}

html[data-theme="dark"] body.auth-page .auth-backdrop-scene--day {
  opacity: 0;
  filter: grayscale(1) contrast(.98) brightness(.42);
  transform: scale(1.008);
}

html[data-theme="dark"] body.auth-page .auth-backdrop-scene--night {
  opacity: 1;
  filter: saturate(.72) contrast(1.01) brightness(.82);
  transform: scale(1);
}

body.auth-page .auth-backdrop::before,
body.auth-page .auth-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  transition:
    opacity 1.35s cubic-bezier(.22, .72, .18, 1),
    background-color 1.35s cubic-bezier(.22, .72, .18, 1),
    box-shadow 1.35s cubic-bezier(.22, .72, .18, 1);
}

body.auth-page .auth-backdrop::before {
  background:
    linear-gradient(115deg, rgba(255, 255, 255, .18), transparent 46%),
    radial-gradient(circle at 50% 48%, transparent 0 18%, rgba(245, 245, 245, .12) 62%, rgba(238, 238, 238, .42) 100%);
}

body.auth-page .auth-backdrop::after {
  background-color: rgba(245, 245, 245, .14);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='3' seed='17' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23grain)' opacity='.13'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px 180px;
  mix-blend-mode: soft-light;
  box-shadow: inset 0 0 160px rgba(17, 17, 17, .09);
}

html[data-theme="dark"] body.auth-page .auth-backdrop {
  background: #050505;
}

html[data-theme="dark"] body.auth-page .auth-backdrop::before {
  background:
    linear-gradient(115deg, rgba(255, 255, 255, .035), transparent 44%),
    radial-gradient(circle at 50% 48%, transparent 0 16%, rgba(5, 5, 5, .18) 60%, rgba(5, 5, 5, .52) 100%);
}

html[data-theme="dark"] body.auth-page .auth-backdrop::after {
  background-color: rgba(5, 5, 5, .22);
  box-shadow: inset 0 0 180px rgba(0, 0, 0, .44);
}

body.auth-page .auth-backdrop > * {
  display: none;
}

body.auth-page .auth-backdrop > .auth-backdrop-scene {
  display: block;
}

body.auth-page .auth-shell {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 100svh;
  padding: clamp(16px, 3vw, 38px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: safe center;
}

body.auth-page .auth-side {
  display: none !important;
}

body.auth-page .auth-card,
body.auth-page--register .auth-card,
body.auth-page--login .auth-card {
  position: relative;
  width: min(100%, 620px);
  height: auto;
  max-height: calc(100svh - clamp(32px, 6vw, 76px));
  align-self: safe center;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .035) 52%, rgba(255, 255, 255, .075)) !important;
  box-shadow:
    0 36px 100px rgba(17, 17, 17, .13),
    inset 0 1px 0 rgba(255, 255, 255, .58),
    inset 0 -1px 0 rgba(255, 255, 255, .10);
  backdrop-filter: blur(30px) saturate(1.04) brightness(1.02);
  -webkit-backdrop-filter: blur(30px) saturate(1.04) brightness(1.02);
  scrollbar-width: thin;
  scrollbar-color: rgba(17, 17, 17, .22) transparent;
}

body.auth-page--register .auth-card {
  width: min(100%, 720px);
}

html[data-theme="dark"] body.auth-page .auth-card {
  border-color: rgba(255, 255, 255, .16);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .065), rgba(5, 5, 5, .035) 48%, rgba(255, 255, 255, .018)) !important;
  box-shadow:
    0 40px 120px rgba(0, 0, 0, .32),
    inset 0 1px 0 rgba(255, 255, 255, .18),
    inset 0 -1px 0 rgba(255, 255, 255, .035);
  backdrop-filter: blur(32px) saturate(1.02) brightness(.96);
  -webkit-backdrop-filter: blur(32px) saturate(1.02) brightness(.96);
  scrollbar-color: rgba(255, 255, 255, .20) transparent;
}

body.auth-page .auth-card::-webkit-scrollbar {
  width: 6px;
}

body.auth-page .auth-card::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(17, 17, 17, .20);
}

html[data-theme="dark"] body.auth-page .auth-card::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .18);
}

body.auth-page .auth-head {
  position: absolute;
  z-index: 3;
  top: 18px;
  right: 18px;
  width: auto;
  min-height: 0;
  padding: 0;
  border: 0;
}

body.auth-page .auth-head .brand-lockup {
  display: none;
}

body.auth-page .mode-pill {
  min-height: 32px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, .48);
  border-radius: 999px;
  background: rgba(255, 255, 255, .20);
  color: rgba(17, 17, 17, .76);
  box-shadow:
    0 8px 24px rgba(17, 17, 17, .10),
    inset 0 1px 0 rgba(255, 255, 255, .62);
  backdrop-filter: blur(20px) saturate(1.15);
  -webkit-backdrop-filter: blur(20px) saturate(1.15);
  font-size: 9px;
  font-weight: 760;
  letter-spacing: .14em;
  text-transform: uppercase;
}

html[data-theme="dark"] body.auth-page .mode-pill {
  border-color: rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .07);
  color: rgba(255, 255, 255, .84);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, .22),
    inset 0 1px 0 rgba(255, 255, 255, .14);
}

body.auth-page .mode-pill > .mode-pill-indicator {
  width: 5px;
  height: 5px;
  background: currentColor;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 10%, transparent);
  opacity: .72;
}

body.auth-page .auth-card-body,
body.auth-page--login .auth-card-body,
body.auth-page--register .auth-card-body {
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: clamp(50px, 5.4vw, 68px) clamp(24px, 6vw, 70px) clamp(28px, 4.4vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(18px, 2.3vw, 25px);
}

body.auth-page--register .auth-card-body {
  padding-inline: clamp(24px, 5vw, 58px);
  gap: 13px;
}

.auth-glass-brand {
  display: grid;
  justify-items: center;
  gap: 5px;
  color: #111111;
  text-align: center;
}

html[data-theme="dark"] .auth-glass-brand {
  color: #ffffff;
}

.auth-glass-brand-mark {
  width: clamp(62px, 8vw, 82px);
  height: clamp(62px, 8vw, 82px);
  display: grid;
  place-items: center;
  margin-bottom: 3px;
}

.auth-glass-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: none;
  opacity: .96;
}

html[data-theme="light"] .auth-glass-brand-mark img {
  filter:
    drop-shadow(0 0 1px rgba(17, 24, 39, .82))
    drop-shadow(0 1px 1px rgba(17, 24, 39, .26));
  opacity: 1;
}

html[data-theme="dark"] .auth-glass-brand-mark img {
  filter: brightness(1.2) contrast(.94);
}

.auth-glass-brand-name {
  display: inline-flex;
  align-items: baseline;
  gap: .08em;
  font-family: var(--auth-display-font);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 600;
  letter-spacing: .16em;
  line-height: 1;
  text-transform: uppercase;
}

.auth-glass-brand-name .brand-word-wall {
  color: var(--auth-text);
}

.auth-glass-brand-name .brand-word-desk {
  color: color-mix(in srgb, var(--auth-text) 32%, var(--auth-muted));
}

.auth-glass-brand-tag {
  color: var(--auth-muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .22em;
  line-height: 1;
  text-transform: uppercase;
}

body.auth-page .form-title {
  justify-items: center;
  gap: 7px;
  text-align: center;
}

body.auth-page .form-title h1,
body.auth-page--login .form-title h1,
body.auth-page--register .form-title h1 {
  max-width: 100%;
  margin: 0;
  font-family: var(--auth-display-font);
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 420;
  font-stretch: condensed;
  line-height: .98;
  letter-spacing: -.045em;
  white-space: normal;
}

body.auth-page--register .form-title h1 {
  font-size: clamp(1.8rem, 3.4vw, 2.35rem);
}

body.auth-page .auth-kicker {
  color: var(--auth-muted);
  letter-spacing: .18em;
}

body.auth-page .form-title p,
body.auth-page--login .form-title p {
  max-width: 48ch;
  margin: 0;
  color: var(--auth-muted);
  font-size: 12px;
  line-height: 1.5;
}

body.auth-page .auth-form,
body.auth-page--login .auth-form {
  width: 100%;
  margin: 0;
  gap: 12px;
}

body.auth-page .auth-form label {
  gap: 5px;
  color: color-mix(in srgb, var(--auth-text) 72%, var(--auth-muted));
  font-size: 10px;
  letter-spacing: .025em;
}

body.auth-page .auth-card input,
body.auth-page .auth-card select,
body.auth-page .auth-card textarea {
  min-height: 48px;
  border: 1px solid rgba(17, 17, 17, .12);
  border-radius: 11px;
  background: rgba(255, 255, 255, .48);
  color: #111111;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

html[data-theme="dark"] body.auth-page .auth-card input,
html[data-theme="dark"] body.auth-page .auth-card select,
html[data-theme="dark"] body.auth-page .auth-card textarea {
  border-color: rgba(255, 255, 255, .12);
  background: rgba(5, 5, 5, .42);
  color: #f4f4f4;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
}

body.auth-page .auth-card input:focus,
body.auth-page .auth-card select:focus,
body.auth-page .auth-card textarea:focus {
  border-color: rgba(17, 17, 17, .42);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .24);
}

html[data-theme="dark"] body.auth-page .auth-card input:focus,
html[data-theme="dark"] body.auth-page .auth-card select:focus,
html[data-theme="dark"] body.auth-page .auth-card textarea:focus {
  border-color: rgba(255, 255, 255, .48);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .06);
}

body.auth-page .actions {
  gap: 9px;
}

body.auth-page .actions > button,
body.auth-page .actions > .ghostbtn {
  min-height: 46px;
  border-radius: 11px;
}

body.auth-page .auth-card button[type="submit"] {
  border-color: #111111;
  background: #111111;
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(17, 17, 17, .16);
}

html[data-theme="dark"] body.auth-page .auth-card button[type="submit"] {
  border-color: #f4f4f4;
  background: #f4f4f4;
  color: #111111;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .28);
}

body.auth-page .auth-card .ghostbtn {
  border-color: rgba(17, 17, 17, .12);
  background: rgba(255, 255, 255, .24);
  color: #111111;
}

html[data-theme="dark"] body.auth-page .auth-card .ghostbtn {
  border-color: rgba(255, 255, 255, .12);
  background: rgba(5, 5, 5, .24);
  color: #f4f4f4;
}

body.auth-page .auth-trust-row {
  margin-top: 0;
  padding-top: 14px;
  justify-content: center;
  border-color: rgba(17, 17, 17, .10);
}

html[data-theme="dark"] body.auth-page .auth-trust-row {
  border-color: rgba(255, 255, 255, .10);
}

body.auth-page .auth-trust-row i,
html[data-theme="dark"] body.auth-page .auth-trust-row i {
  background: currentColor;
}

body.auth-page .auth-float-tools {
  z-index: 5;
}

body.auth-page .theme-toggle {
  border-color: rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .24);
  box-shadow: 0 12px 32px rgba(17, 17, 17, .16);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

html[data-theme="dark"] body.auth-page .theme-toggle {
  border-color: rgba(255, 255, 255, .13);
  background: rgba(5, 5, 5, .34);
  color: #ffffff;
}

@media (max-width: 700px) {
  body.auth-page .auth-shell {
    padding: 12px;
    place-items: safe center;
  }

  body.auth-page .auth-card,
  body.auth-page--register .auth-card {
    max-height: calc(100svh - 24px);
    border-radius: 22px;
  }

  body.auth-page .auth-head {
    top: 13px;
    right: 13px;
  }

  body.auth-page .mode-pill {
    min-height: 27px;
    font-size: 9px;
  }

  body.auth-page .auth-card-body,
  body.auth-page--login .auth-card-body,
  body.auth-page--register .auth-card-body {
    padding: 40px 18px 22px;
    gap: 13px;
  }

  .auth-glass-brand-mark {
    width: 58px;
    height: 58px;
  }

  body.auth-page .form-title h1,
  body.auth-page--login .form-title h1,
  body.auth-page--register .form-title h1 {
    font-size: clamp(1.75rem, 9vw, 2.25rem);
  }

  body.auth-page--register .auth-register-form {
    grid-template-columns: 1fr;
  }

  body.auth-page--register .auth-register-field,
  body.auth-page--register .auth-register-helper,
  body.auth-page--register .auth-register-form > .actions {
    grid-column: 1;
  }
}

/* Compact two-step registration --------------------------------------- */
body.auth-page .mode-pill {
  gap: 7px;
  padding-inline: 11px 7px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .34),
    0 7px 20px rgba(17, 17, 17, .08);
}

body.auth-page .mode-pill-label,
body.auth-page .mode-pill-step {
  width: auto;
  height: auto;
  background: transparent;
  box-shadow: none;
  opacity: 1;
  line-height: 1;
}

body.auth-page .mode-pill-label {
  letter-spacing: .08em;
}

body.auth-page .mode-pill-step {
  min-width: 34px;
  padding: 6px 7px;
  border-left: 1px solid rgba(17, 17, 17, .12);
  border-radius: 0 999px 999px 0;
  color: color-mix(in srgb, currentColor 74%, transparent);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  text-align: center;
}

html[data-theme="dark"] body.auth-page .mode-pill-step {
  border-left-color: rgba(255, 255, 255, .12);
}

body.auth-page--register .auth-card {
  width: min(100%, 650px);
}

body.auth-page--register .auth-card-body {
  padding: clamp(44px, 5vw, 58px) clamp(22px, 5vw, 48px) clamp(22px, 3.5vw, 36px);
  gap: 15px;
}

body.auth-page--register .auth-glass-brand-mark {
  width: clamp(52px, 6vw, 64px);
  height: clamp(52px, 6vw, 64px);
}

body.auth-page--register .auth-register-form {
  display: block;
}

.auth-register-step[hidden] {
  display: none !important;
}

.auth-register-step.is-active {
  display: grid;
  gap: 12px;
  animation: auth-register-step-in 240ms cubic-bezier(.22, 1, .36, 1) both;
}

.auth-register-step-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 10px;
}

.auth-register-step-grid .auth-register-field,
.auth-register-step-grid .auth-register-helper {
  min-width: 0;
}

.auth-register-step-grid .auth-register-field--contact,
.auth-register-step-grid .auth-register-field--reason,
.auth-register-step-grid .auth-register-helper {
  grid-column: 1 / -1;
}

.auth-register-step-grid .auth-register-helper--phone {
  display: none;
}

.auth-register-step-grid .auth-register-helper--contact {
  margin-top: -3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auth-register-channel-label {
  display: block;
}

.auth-register-channel-control {
  position: relative;
  display: block;
}

.auth-register-channel-control select {
  width: 100%;
  padding-left: 42px !important;
}

.auth-register-channel-icons {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 14px;
  width: 18px;
  height: 18px;
  display: grid;
  align-items: center;
  justify-items: center;
  color: var(--auth-text);
  pointer-events: none;
  transform: translateY(-50%);
}

.auth-register-channel-icons img {
  grid-area: 1 / 1;
  width: 18px;
  height: 18px;
  display: block;
  object-fit: contain;
  opacity: .9;
}

.auth-register-channel-icons img[hidden] {
  display: none;
}

html[data-theme="dark"] .auth-register-channel-icons img[data-register-channel-icon="email"] {
  filter: invert(1) brightness(.92);
}

.auth-register-channel-icons img.is-active {
  animation: auth-register-channel-icon-in .28s cubic-bezier(.16, 1, .3, 1) both;
}

.auth-register-step-actions {
  margin-top: 1px;
}

.auth-register-step-actions--final {
  grid-template-columns: .72fr 1.28fr;
}

.auth-register-step-actions--final > .ghostbtn::before {
  display: none;
}

.auth-password-guide {
  display: grid;
  grid-template-columns: auto repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(17, 17, 17, .09);
  border-radius: 13px;
  background: rgba(255, 255, 255, .16);
  color: var(--auth-muted);
  font-size: 9px;
  line-height: 1.2;
}

html[data-theme="dark"] .auth-password-guide {
  border-color: rgba(255, 255, 255, .09);
  background: rgba(255, 255, 255, .035);
}

.auth-password-guide strong {
  padding-inline: 4px 7px;
  color: var(--auth-text);
  font-size: 9.5px;
  white-space: nowrap;
}

.auth-password-guide span {
  min-width: 0;
  padding: 6px 7px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .22);
  text-align: center;
  white-space: nowrap;
}

html[data-theme="dark"] .auth-password-guide span {
  background: rgba(255, 255, 255, .055);
}

@keyframes auth-register-step-in {
  from { opacity: 0; transform: translateY(5px) scale(.995); }
  to { opacity: 1; transform: none; }
}

@keyframes auth-register-channel-icon-in {
  from { opacity: 0; transform: translateY(2px) scale(.72) rotate(-8deg); }
  to { opacity: .9; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-register-channel-icons img.is-active {
    animation: none;
  }
}

@media (max-width: 700px) {
  body.auth-page--register .auth-shell {
    padding: 8px;
  }

  body.auth-page--register .auth-card {
    max-height: calc(100svh - 16px);
    border-radius: 21px;
  }

  body.auth-page--register .auth-card-body {
    padding: 37px 14px 16px;
    gap: 11px;
  }

  body.auth-page--register .auth-glass-brand {
    gap: 3px;
  }

  body.auth-page--register .auth-glass-brand-mark {
    width: 48px;
    height: 48px;
    margin-bottom: 0;
  }

  body.auth-page--register .auth-glass-brand-name {
    font-size: 1rem;
  }

  .auth-register-step.is-active {
    gap: 10px;
  }

  .auth-register-step-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .auth-register-step-grid .auth-register-field,
  .auth-register-step-grid .auth-register-helper {
    grid-column: 1;
  }

  body.auth-page--register .auth-card input,
  body.auth-page--register .auth-card select {
    min-height: 43px;
  }

  .auth-password-guide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 7px;
  }

  .auth-password-guide strong {
    grid-column: 1 / -1;
    padding: 0 2px 2px;
  }

  .auth-password-guide span {
    padding-inline: 4px;
    font-size: 8px;
  }

  body.auth-page--register .auth-trust-row {
    padding-top: 10px;
    font-size: 9px;
  }
}

@media (max-height: 680px) {
  body.auth-page--register .auth-glass-brand-mark {
    width: 42px;
    height: 42px;
  }

  body.auth-page--register .auth-glass-brand-tag,
  body.auth-page--register .auth-trust-row {
    display: none;
  }

  body.auth-page--register .auth-card-body {
    gap: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-register-step.is-active {
    animation: none;
  }
}

/* Auth identity row: compact brand lockup, live clock and non-overlapping notices. */
.auth-glass-brand {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 4vw, 38px);
  color: #111111;
  text-align: left;
}

.auth-glass-brand-lockup {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-glass-brand-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.auth-glass-brand .auth-glass-brand-mark,
body.auth-page--register .auth-glass-brand .auth-glass-brand-mark {
  width: clamp(46px, 5.2vw, 58px);
  height: clamp(46px, 5.2vw, 58px);
  flex: 0 0 auto;
  margin: 0;
}

.auth-glass-brand .auth-glass-brand-name,
body.auth-page--register .auth-glass-brand .auth-glass-brand-name {
  font-size: clamp(.98rem, 1.7vw, 1.18rem);
  letter-spacing: .14em;
  white-space: nowrap;
}

.auth-glass-brand .auth-glass-brand-tag {
  white-space: nowrap;
}

.auth-digital-clock {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex: 0 0 auto;
  color: #111111;
  white-space: nowrap;
}

html[data-theme="dark"] .auth-digital-clock {
  color: #ffffff;
}

.auth-digital-clock > [data-auth-clock-hours],
.auth-digital-clock > [data-auth-clock-minutes],
.auth-digital-clock [data-auth-clock-seconds] {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.auth-digital-digit {
  --auth-digit-width: 18px;
  --auth-digit-height: 32px;
  --auth-segment-size: 3.4px;
  position: relative;
  width: var(--auth-digit-width);
  height: var(--auth-digit-height);
  display: inline-block;
  flex: 0 0 var(--auth-digit-width);
}

.auth-digital-segment {
  position: absolute;
  display: block;
  opacity: .075;
  background: currentColor;
  transition: opacity .12s ease;
}

.auth-digital-segment.segment-a,
.auth-digital-segment.segment-d,
.auth-digital-segment.segment-g {
  right: var(--auth-segment-size);
  left: var(--auth-segment-size);
  height: var(--auth-segment-size);
  clip-path: polygon(14% 0, 86% 0, 100% 50%, 86% 100%, 14% 100%, 0 50%);
}

.auth-digital-segment.segment-a { top: 0; }
.auth-digital-segment.segment-g { top: calc(50% - (var(--auth-segment-size) / 2)); }
.auth-digital-segment.segment-d { bottom: 0; }

.auth-digital-segment.segment-b,
.auth-digital-segment.segment-c,
.auth-digital-segment.segment-e,
.auth-digital-segment.segment-f {
  width: var(--auth-segment-size);
  height: calc(50% - (var(--auth-segment-size) * 1.35));
  clip-path: polygon(50% 0, 100% 14%, 100% 86%, 50% 100%, 0 86%, 0 14%);
}

.auth-digital-segment.segment-b,
.auth-digital-segment.segment-c { right: 0; }
.auth-digital-segment.segment-e,
.auth-digital-segment.segment-f { left: 0; }
.auth-digital-segment.segment-b,
.auth-digital-segment.segment-f { top: calc(var(--auth-segment-size) * .72); }
.auth-digital-segment.segment-c,
.auth-digital-segment.segment-e { bottom: calc(var(--auth-segment-size) * .72); }

.auth-digital-digit[data-value="0"] :is(.segment-a, .segment-b, .segment-c, .segment-d, .segment-e, .segment-f),
.auth-digital-digit[data-value="1"] :is(.segment-b, .segment-c),
.auth-digital-digit[data-value="2"] :is(.segment-a, .segment-b, .segment-d, .segment-e, .segment-g),
.auth-digital-digit[data-value="3"] :is(.segment-a, .segment-b, .segment-c, .segment-d, .segment-g),
.auth-digital-digit[data-value="4"] :is(.segment-b, .segment-c, .segment-f, .segment-g),
.auth-digital-digit[data-value="5"] :is(.segment-a, .segment-c, .segment-d, .segment-f, .segment-g),
.auth-digital-digit[data-value="6"] :is(.segment-a, .segment-c, .segment-d, .segment-e, .segment-f, .segment-g),
.auth-digital-digit[data-value="7"] :is(.segment-a, .segment-b, .segment-c),
.auth-digital-digit[data-value="8"] .auth-digital-segment,
.auth-digital-digit[data-value="9"] :is(.segment-a, .segment-b, .segment-c, .segment-d, .segment-f, .segment-g) {
  opacity: 1;
}

.auth-digital-clock-separator,
.auth-digital-clock-seconds::before {
  color: currentColor;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-weight: 900;
  line-height: 1;
}

.auth-digital-clock-separator {
  margin: 0 1px;
  font-size: 1.25rem;
  opacity: .8;
}

.auth-digital-clock-seconds {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--auth-muted);
  font-size: 0;
}

.auth-digital-clock-seconds::before {
  content: ":";
  font-size: .82rem;
  opacity: .65;
}

.auth-digital-clock-seconds .auth-digital-digit {
  --auth-digit-width: 10px;
  --auth-digit-height: 19px;
  --auth-segment-size: 2.1px;
}

html[data-theme="dark"] .auth-digital-segment {
  box-shadow:
    0 0 5px rgba(255, 255, 255, .62),
    0 0 13px rgba(255, 255, 255, .18);
}

.auth-card-body > .flash-stack {
  width: 100%;
  min-width: 0;
  margin: 0;
}

.auth-card-body > .flash-stack .flash {
  width: 100%;
  margin: 0;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 10.5px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

@media (max-width: 700px) {
  .auth-glass-brand {
    gap: 10px;
  }

  .auth-glass-brand-lockup {
    gap: 8px;
  }

  .auth-glass-brand .auth-glass-brand-mark,
  body.auth-page--register .auth-glass-brand .auth-glass-brand-mark {
    width: 42px;
    height: 42px;
  }

  .auth-digital-digit {
    --auth-digit-width: 14px;
    --auth-digit-height: 25px;
    --auth-segment-size: 2.8px;
  }

  .auth-digital-clock-seconds .auth-digital-digit {
    --auth-digit-width: 8px;
    --auth-digit-height: 15px;
    --auth-segment-size: 1.8px;
  }
}

@media (max-width: 460px) {
  .auth-glass-brand .auth-glass-brand-tag,
  .auth-digital-clock-seconds {
    display: none;
  }

  .auth-glass-brand .auth-glass-brand-name,
  body.auth-page--register .auth-glass-brand .auth-glass-brand-name {
    font-size: .86rem;
  }
}
/* Password / QR login switcher */
.auth-login-switcher {
  display: grid;
  gap: 16px;
}

.auth-method-tabs {
  padding: 4px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  border: 1px solid var(--auth-line, rgba(255, 255, 255, .1));
  border-radius: 15px;
  background: color-mix(in srgb, var(--surface-muted) 72%, transparent);
}

.auth-method-tab {
  min-height: 38px;
  padding: 7px 12px;
  border: 0;
  border-radius: 11px;
  color: var(--text-muted);
  background: transparent;
  box-shadow: none;
  font-size: .76rem;
  font-weight: 750;
}

.auth-method-tab.is-active {
  color: var(--text);
  background: var(--surface-solid);
  box-shadow: var(--shadow-soft);
}

html[data-theme="dark"] .auth-method-tab.is-active {
  color: #111318;
  background: #f4f4f5;
  box-shadow: 0 7px 18px rgba(0, 0, 0, .28), inset 0 0 0 1px rgba(255, 255, 255, .76);
}

.auth-qr-panel[hidden],
.auth-qr-code-row[hidden],
.auth-qr-placeholder[hidden],
.auth-qr-frame img[hidden] {
  display: none !important;
}

.auth-qr-panel {
  display: grid;
  grid-template-columns: minmax(190px, .86fr) minmax(0, 1.14fr);
  gap: 15px;
  align-items: center;
}

.auth-qr-visual {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 7px;
}

.auth-qr-frame {
  position: relative;
  width: min(100%, 238px);
  aspect-ratio: 1;
  padding: 3px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  isolation: isolate;
  transition:
    border-color .45s cubic-bezier(.22, 1, .36, 1),
    box-shadow .45s cubic-bezier(.22, 1, .36, 1);
}

.auth-qr-frame::after {
  position: absolute;
  z-index: 1;
  inset: 3px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 46%, rgba(255, 255, 255, .38), rgba(255, 255, 255, .08) 34%, transparent 70%);
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s cubic-bezier(.22, 1, .36, 1);
}

.auth-qr-frame img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 18px;
  image-rendering: pixelated;
  transform: translateZ(0) scale(1);
  transform-origin: center;
  will-change: filter, opacity, transform;
  transition:
    filter .58s cubic-bezier(.22, 1, .36, 1),
    transform .58s cubic-bezier(.22, 1, .36, 1),
    opacity .42s ease;
}

.auth-qr-frame.is-refresh-required img,
.auth-qr-frame.is-loading img {
  filter: blur(10px) saturate(.48) contrast(.84);
  transform: translateZ(0) scale(1.075);
  opacity: .54;
}

.auth-qr-frame:is(.is-refresh-required, .is-loading)::after {
  opacity: 1;
}

.auth-qr-frame:is(.is-refresh-required, .is-loading) {
  border-color: color-mix(in srgb, var(--accent) 52%, var(--border-strong));
  box-shadow:
    0 17px 38px color-mix(in srgb, var(--accent) 13%, transparent),
    inset 0 1px rgba(255, 255, 255, .72);
}

.auth-qr-frame.is-revealing img {
  animation: auth-qr-focus-in .72s cubic-bezier(.16, 1, .3, 1) both;
}

.auth-qr-frame.is-revealing {
  animation: auth-qr-frame-settle .72s cubic-bezier(.16, 1, .3, 1) both;
}

.auth-qr-placeholder {
  max-width: 140px;
  display: grid;
  justify-items: center;
  gap: 9px;
  color: #5f6673;
  font-size: .68rem;
  line-height: 1.35;
  text-align: center;
}

.auth-qr-placeholder-icon {
  width: 58px;
  height: 58px;
  display: block;
  background: #17191f;
  -webkit-mask: url('/icons/qr-code.svg') center / contain no-repeat;
  mask: url('/icons/qr-code.svg') center / contain no-repeat;
}

.auth-qr-timer {
  min-height: 18px;
  color: var(--text-muted);
  font-size: .68rem;
  font-variant-numeric: tabular-nums;
}

.auth-qr-copy {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.auth-qr-copy > strong {
  font-size: .96rem;
}

.auth-qr-copy ol {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 5px;
  color: var(--text-soft);
  font-size: .74rem;
  line-height: 1.4;
}

.auth-qr-code-row {
  min-height: 58px;
  padding: 8px 12px 9px;
  display: grid;
  align-items: center;
  justify-items: center;
  gap: 4px;
  border: 1px solid color-mix(in srgb, var(--text) 15%, var(--border));
  border-radius: 13px;
  background: color-mix(in srgb, var(--surface-muted) 82%, transparent);
  text-align: center;
  box-shadow: inset 0 1px color-mix(in srgb, #fff 6%, transparent);
}

.auth-qr-code-row span {
  color: var(--text-muted);
  font-size: .58rem;
  font-weight: 780;
  letter-spacing: .07em;
  line-height: 1;
  text-transform: uppercase;
}

.auth-qr-code-row code {
  color: var(--text);
  font-family: var(--font-sans);
  font-size: clamp(1.08rem, 2vw, 1.24rem);
  font-weight: 900;
  letter-spacing: .15em;
  line-height: 1;
  white-space: nowrap;
}

html[data-theme="dark"] .auth-qr-code-row {
  border-color: rgba(255, 255, 255, .17);
  background: rgba(255, 255, 255, .065);
  box-shadow: inset 0 1px rgba(255, 255, 255, .055), 0 7px 18px rgba(0, 0, 0, .12);
}

.auth-qr-status {
  margin: 0;
  color: var(--text-muted);
  font-size: .7rem;
  line-height: 1.45;
}

.auth-qr-status.is-error {
  color: var(--danger);
}

.auth-qr-mobile-controls {
  display: none;
}

.auth-qr-mobile-timer {
  min-width: 0;
  color: var(--text-muted);
  font-size: .7rem;
  font-variant-numeric: tabular-nums;
}

.auth-qr-mobile-refresh {
  width: 42px;
  height: 42px;
  padding: 0;
  display: inline-grid;
  flex: 0 0 42px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--text) 16%, var(--border));
  border-radius: 13px;
  color: var(--text);
  background: color-mix(in srgb, var(--surface-muted) 86%, transparent);
  box-shadow: inset 0 1px color-mix(in srgb, #fff 10%, transparent);
}

.auth-qr-mobile-refresh svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-qr-mobile-refresh.is-loading svg {
  animation: auth-qr-refresh-spin .8s linear infinite;
}

.auth-qr-start {
  position: absolute;
  z-index: 2;
  inset: 50% auto auto 50%;
  width: 54px;
  height: 54px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 50%;
  color: #fff;
  background: #15171b;
  box-shadow: 0 12px 32px rgba(17, 19, 24, .3), inset 0 1px rgba(255, 255, 255, .14);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(.82);
  transition:
    opacity .3s cubic-bezier(.22, 1, .36, 1),
    transform .38s cubic-bezier(.22, 1, .36, 1),
    background-color .18s ease;
}

.auth-qr-start.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.auth-qr-start:hover:not(:disabled) {
  background: #272a31;
  transform: translate(-50%, -50%) scale(1.06);
}

.auth-qr-start:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 68%, #fff);
  outline-offset: 3px;
}

.auth-qr-start svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-qr-start.is-loading svg {
  animation: auth-qr-refresh-spin .8s linear infinite;
}

.auth-qr-start:disabled {
  cursor: wait;
  opacity: .92;
}

@keyframes auth-qr-refresh-spin {
  to { transform: rotate(360deg); }
}

@keyframes auth-qr-focus-in {
  0% {
    filter: blur(10px) saturate(.5) contrast(.86);
    opacity: .48;
    transform: translateZ(0) scale(1.075);
  }
  58% {
    filter: blur(1.2px) saturate(.94) contrast(.98);
    opacity: .94;
  }
  100% {
    filter: blur(0) saturate(1) contrast(1);
    opacity: 1;
    transform: translateZ(0) scale(1);
  }
}

@keyframes auth-qr-frame-settle {
  0% {
    box-shadow: 0 17px 38px color-mix(in srgb, var(--accent) 16%, transparent);
  }
  100% {
    box-shadow: var(--shadow-soft);
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-qr-frame,
  .auth-qr-frame::after,
  .auth-qr-frame img,
  .auth-qr-start {
    transition: none;
  }

  .auth-qr-frame.is-revealing,
  .auth-qr-frame.is-revealing img,
  .auth-qr-start.is-loading svg {
    animation: none;
  }

  .auth-qr-mobile-refresh.is-loading svg {
    animation: none;
  }
}

@media (max-width: 620px) {
  .auth-qr-panel {
    display: block;
  }

  .auth-qr-visual,
  .auth-qr-copy > strong,
  .auth-qr-copy > ol {
    display: none;
  }

  .auth-qr-copy {
    gap: 9px;
  }

  .auth-qr-code-row {
    min-height: 86px;
    padding: 14px 16px;
    border-radius: 17px;
  }

  .auth-qr-code-row code {
    font-size: clamp(1.3rem, 7vw, 1.72rem);
    letter-spacing: .17em;
  }

  .auth-qr-mobile-controls {
    min-height: 46px;
    padding: 2px 2px 2px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid color-mix(in srgb, var(--text) 11%, var(--border));
    border-radius: 15px;
    background: color-mix(in srgb, var(--surface-muted) 62%, transparent);
  }

  .auth-qr-status {
    display: none;
  }

  .auth-qr-status.is-error {
    display: block;
  }
}

/* Every public auth form sits directly on the authored backdrop. Keep the
   controls legible while removing the glass fill from the outer card. */
body.auth-page .auth-card.auth-card--suplime,
html[data-theme="dark"] body.auth-page .auth-card.auth-card--suplime {
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
