@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2-variations");
  unicode-range:
    U+0100-02BA,
    U+02BD-02C5,
    U+02C7-02CC,
    U+02CE-02D7,
    U+02DD-02FF,
    U+0304,
    U+0308,
    U+0329,
    U+1D00-1DBF,
    U+1E00-1E9F,
    U+1EF2-1EFF,
    U+2020,
    U+20A0-20AB,
    U+20AD-20C0,
    U+2113,
    U+2C60-2C7F,
    U+A720-A7FF;
}

@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin.woff2") format("woff2-variations");
  unicode-range:
    U+0000-00FF,
    U+0131,
    U+0152-0153,
    U+02BB-02BC,
    U+02C6,
    U+02DA,
    U+02DC,
    U+0304,
    U+0308,
    U+0329,
    U+2000-206F,
    U+20AC,
    U+2122,
    U+2191,
    U+2193,
    U+2212,
    U+2215,
    U+FEFF,
    U+FFFD;
}

:root {
  --background: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f6f6f6;
  --surface-subtle: #f0f0f0;
  --surface-subtle-hover: #e5e5e5;
  --surface-page: #f8f8f8;
  --surface-overlay: rgba(255, 255, 255, 0.92);
  --surface-overlay-strong: rgba(255, 255, 255, 0.98);
  --foreground: #0a0a0a;
  --foreground-contrast: #ffffff;
  --muted: #f6f6f6;
  --muted-foreground: rgba(10, 10, 10, 0.48);
  --muted-foreground-strong: rgba(10, 10, 10, 0.65);
  --muted-foreground-soft: rgba(10, 10, 10, 0.45);
  --muted-foreground-faint: rgba(10, 10, 10, 0.38);
  --muted-foreground-fainter: rgba(10, 10, 10, 0.35);
  --border: rgba(10, 10, 10, 0.11);
  --border-strong: rgba(10, 10, 10, 0.18);
  --field-border: rgba(10, 10, 10, 0.16);
  --primary: #0a0a0a;
  --primary-hover: #1a1a1a;
  --accent: #007aff;
  --accent-hover: #0066dd;
  --accent-border: rgba(0, 122, 255, 0.5);
  --danger-bg: #fef2f2;
  --danger-border: #fecaca;
  --danger-text: #b91c1c;
  --color-red-300: #fca5a5;
  --color-red-500: #ef4444;
  --danger-ring: 0 0 0 4px rgba(239, 68, 68, 0.12);
  --success-bg: #ecfdf5;
  --success-border: #a7f3d0;
  --success-text: #047857;
  --success-text-soft: rgba(4, 120, 87, 0.85);
  --success-accent: #059669;
  --success-border-soft: rgba(5, 150, 105, 0.18);
  --success-bg-soft: rgba(5, 150, 105, 0.08);
  --slate-900: #0f172a;
  --slate-600: #475569;
  --slate-border-soft: rgba(15, 23, 42, 0.1);
  --slate-border-muted: rgba(15, 23, 42, 0.08);
  --slate-border-strong: rgba(15, 23, 42, 0.16);
  --slate-text-soft: rgba(15, 23, 42, 0.5);
  --slate-surface-hover: #f8fafc;
  --slate-surface-pill: #f1f5f9;
  --slate-surface-active: #eef2ff;
  --slate-surface-active-strong: #dbeafe;
  --shadow-card: 0 30px 80px rgba(10, 10, 10, 0.08);
  --shadow-soft: 0 8px 40px rgba(10, 10, 10, 0.08);
  --shadow-flyout: 0 8px 20px rgba(15, 23, 42, 0.05);
  --shadow-flyout-strong: 0 16px 40px rgba(15, 23, 42, 0.12);
  --ring: 0 0 0 4px rgba(0, 122, 255, 0.12);
  --pattern-dot: rgba(255, 255, 255, 0.22);
  --foreground-soft-surface: rgba(10, 10, 10, 0.05);
  --foreground-soft-border: rgba(10, 10, 10, 0.08);
  --progress-inactive: rgba(10, 10, 10, 0.15);
  --radius-card: 24px;
  --radius-control: 16px;
  --spacing: .25rem;
  --tracking-tight: -0.025em;
  --font-weight-semibold: 600;
  --auth-step-offset: 36px;
  --auth-form-width: 280px;
  --auth-turnstile-scale: 0.933333;
  --auth-enter-duration: 380ms;
  --auth-exit-duration: 240ms;
  --auth-enter-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --auth-exit-ease: cubic-bezier(0.55, 0, 1, 0.45);
  --auth-support-bg: #ffffff;
  --auth-support-border: rgba(0, 0, 0, 0.08);
  --auth-support-border-hover: rgba(0, 0, 0, 0.14);
  --auth-support-icon: #555555;
  --auth-support-text: #777777;
  --auth-support-text-hover: #111111;
  --auth-support-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  --auth-support-shadow-hover: 0 4px 10px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: "Inter Variable", Inter, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}



.size-3 {
  width: calc(var(--spacing) * 3);
  height: calc(var(--spacing) * 3);
}

.size-3\.5 {
  width: calc(var(--spacing) * 3.5);
  height: calc(var(--spacing) * 3.5);
}

.opacity-60 {
  opacity: 0.6;
}

.transition-transform,
.lucide {
  flex: 0 0 auto;
  transition: transform 0.18s ease, opacity 0.18s ease;
}


button,
input,
a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.flash {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 40;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: min(420px, calc(100vw - 32px));
  padding: 14px 16px;
  border: 1px solid var(--success-border);
  border-radius: 18px;
  background: var(--success-bg);
  box-shadow: var(--shadow-soft);
  transform: translateX(-50%);
}

.flash__dot {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 999px;
  background: var(--success-text);
}

.flash__copy {
  min-width: 0;
}

.flash__title {
  margin: 0 0 2px;
  font-size: 13px;
  font-weight: 600;
  color: var(--success-text);
}

.flash__body {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--success-text-soft);
}

.auth-shell {
  display: flex;
  min-height: 100vh;
  background: var(--surface);
}

.auth-main {
  display: flex;
  flex: 0 0 52%;
  flex-direction: column;
  min-width: 0;
  background: var(--surface);
}

.auth-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 20px 0;
  flex-shrink: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brand__mark {
  width: 22px;
  height: 22px;
  border-radius: 5px;
}

.brand__text {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.language-switcher {
  position: relative;
  flex: 0 0 auto;
}

.language-switcher summary::-webkit-details-marker {
  display: none;
}

.language-switcher__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 58px;
  height: 32px;
  padding: 0 11px;
  border: 1px solid var(--slate-border-soft);
  border-radius: 999px;
  background: var(--surface-overlay);
  color: var(--slate-900);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
  cursor: pointer;
  list-style: none;
  user-select: none;
  box-shadow: var(--shadow-flyout);
}

.language-switcher__trigger:hover {
  border-color: var(--slate-border-strong);
}

.language-switcher__code {
  line-height: 1;
}

.language-switcher__chevron {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
  transition: transform 0.18s ease;
}

.language-switcher[open] .language-switcher__chevron {
  transform: translateY(2px) rotate(-135deg);
}

.language-switcher__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: max-content;
  min-width: 170px;
  padding: 8px;
  border: 1px solid var(--slate-border-muted);
  border-radius: 16px;
  background: var(--surface-overlay-strong);
  box-shadow: var(--shadow-flyout-strong);
}

.language-switcher__current {
  padding: 4px 8px 8px;
  color: var(--slate-text-soft);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.language-switcher__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 12px;
  color: var(--slate-600);
  font-size: 12px;
  font-weight: 550;
  text-decoration: none;
}

.language-switcher__item:hover {
  background: var(--slate-surface-hover);
  color: var(--slate-900);
}

.language-switcher__item-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 24px;
  border-radius: 999px;
  background: var(--slate-surface-pill);
  color: var(--slate-900);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.language-switcher__item.is-active {
  color: var(--slate-900);
  background: var(--slate-surface-active);
}

.language-switcher__item.is-active .language-switcher__item-code {
  background: var(--slate-surface-active-strong);
}

.auth-stage {
  position: relative;
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
}

.auth-view {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 32px 40px;
}

.auth-view--centered {
  text-align: center;
}

.panel {
  width: 100%;
  max-width: var(--auth-form-width);
}

.panel--compact {
  max-width: var(--auth-form-width);
}

.panel--centered {
  text-align: center;
}

.panel--setup {
  width: 100%;
  max-width: 440px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.panel--animated {
  animation: panel-in var(--auth-enter-duration) var(--auth-enter-ease);
}

.form-stack {
  display: flex;
  flex-direction: column;
}

.form-stack--login {
  gap: 16px;
}

.form-stack--register {
  gap: 14px;
}

.form-stack .back-link,
.form-stack .panel__head,
.form-stack .field,
.form-stack .error-box,
.form-stack .check-row,
.form-stack .panel__caption {
  margin: 0;
}

.form-stack .btn {
  margin-top: 4px;
}

.auth-turnstile {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 100%;
 
}

.auth-turnstile[hidden] {
  display: none;
}

.auth-turnstile .cf-turnstile {
  display: block;
  width: 300px;
  max-width: none;
 
  overflow: hidden;
  transform: scale(var(--auth-turnstile-scale));
  transform-origin: left top;
}

.auth-turnstile .cf-turnstile > div,
.auth-turnstile iframe {
  width: 300px !important;
  max-width: none;
}

.auth-turnstile__status {
  margin: 0;
  color: var(--muted-foreground-soft);
  font-size: 11.5px;
  line-height: 1.35;
}

.auth-turnstile__retry {
  width: fit-content;
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
}

.auth-turnstile__retry:hover {
  color: var(--accent-hover);
}

.auth-turnstile__retry[hidden],
.auth-turnstile__status[hidden] {
  display: none;
}

.auth-turnstile.is-error {
  min-height: 0;
}

.auth-turnstile.is-error .cf-turnstile {
  display: none;
}

.auth-turnstile.is-error .auth-turnstile__status,
.auth-turnstile.is-error .auth-turnstile__retry {
  margin-left: 0;
}

.auth-turnstile.is-error .auth-turnstile__status {
  padding: 10px 12px;
  border: 1px solid var(--danger-border);
  border-radius: 12px 12px 0 0;
  background: var(--danger-bg);
  color: var(--danger-text);
}

.auth-turnstile.is-error .auth-turnstile__retry {
  width: 100%;
  margin-top: -8px;
  padding: 0 12px 10px;
  border-right: 1px solid var(--danger-border);
  border-bottom: 1px solid var(--danger-border);
  border-left: 1px solid var(--danger-border);
  border-radius: 0 0 12px 12px;
  background: var(--danger-bg);
  text-align: left;
}

.auth-wizard {
  position: relative;
  width: 100%;
  max-width: var(--auth-form-width);
  min-height: 1px;
}

.auth-support-bubble {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--auth-support-border);
  border-radius: 999px;
  background: var(--auth-support-bg);
  box-shadow: var(--auth-support-shadow);
  color: var(--auth-support-text);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    color 0.18s ease;
}

.auth-support-bubble:hover {
  border-color: var(--auth-support-border-hover);
  box-shadow: var(--auth-support-shadow-hover);
  color: var(--auth-support-text-hover);
}

.auth-support-bubble__icon {
  width: 14px;
  height: 14px;
  color: var(--auth-support-icon);
  transition: color 0.18s ease;
}

.auth-support-bubble:hover .auth-support-bubble__icon {
  color: var(--auth-support-text-hover);
}

.step-panel {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(var(--auth-step-offset));
  transition:
    opacity var(--auth-exit-duration) var(--auth-exit-ease),
    transform var(--auth-exit-duration) var(--auth-exit-ease),
    visibility 0s linear var(--auth-enter-duration);
}

.step-panel.is-active {
  position: relative;
  inset: auto;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
  transition:
    opacity var(--auth-enter-duration) var(--auth-enter-ease),
    transform var(--auth-enter-duration) var(--auth-enter-ease),
    visibility 0s linear 0s;
}

.auth-wizard.is-booting .step-panel.is-active {
  animation: auth-step-boot var(--auth-enter-duration) var(--auth-enter-ease);
}

.step-panel.is-entering-forward,
.step-panel.is-entering-back,
.step-panel.is-leaving-forward,
.step-panel.is-leaving-back {
  visibility: visible;
  transition:
    opacity var(--auth-enter-duration) var(--auth-enter-ease),
    transform var(--auth-enter-duration) var(--auth-enter-ease),
    visibility 0s linear 0s;
}

.step-panel.is-entering-back {
  opacity: 0;
  pointer-events: none;
  transform: translateX(calc(var(--auth-step-offset) * -1));
}

.step-panel.is-entering-forward {
  opacity: 0;
  pointer-events: none;
  transform: translateX(var(--auth-step-offset));
}

.step-panel.is-leaving-forward {
  opacity: 0;
  transform: translateX(calc(var(--auth-step-offset) * -1));
  pointer-events: none;
  transition:
    opacity var(--auth-exit-duration) var(--auth-exit-ease),
    transform var(--auth-exit-duration) var(--auth-exit-ease),
    visibility 0s linear 0s;
}

.step-panel.is-leaving-back {
  opacity: 0;
  transform: translateX(var(--auth-step-offset));
  pointer-events: none;
  transition:
    opacity var(--auth-exit-duration) var(--auth-exit-ease),
    transform var(--auth-exit-duration) var(--auth-exit-ease),
    visibility 0s linear 0s;
}

.panel__head {
  margin-bottom: 18px;
}

.panel__head--setup {
  margin-bottom: 22px;
}

.panel__eyebrow {
  margin: 0 0 8px;
  color: var(--muted-foreground);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel__title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.panel__title--hero {
  font-size: 20px;
  line-height: 1.25;
}

.panel__text {
  margin: 6px 0 0;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--muted-foreground);
}

.panel__text--hero {
  max-width: 240px;
  margin-left: auto;
  margin-right: auto;
}

.panel__text-strong {
  color: var(--foreground);
  font-weight: 500;
}

.panel__caption {
  margin: 0;
  font-size: 12px;
  text-align: center;
  color: var(--muted-foreground);
}

.panel__caption--setup {
  margin-top: 18px;
  color: var(--muted-foreground-soft);
}

.panel__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border: 1px solid var(--foreground-soft-border);
  border-radius: 14px;
  background: var(--foreground-soft-surface);
  color: var(--muted-foreground-strong);
}

.panel__icon-svg {
  width: 22px;
  height: 22px;
}

.panel__center {
  text-align: center;
}

.panel__note {
  margin: 6px 0 0;
  font-size: 11px;
  color: var(--muted-foreground-fainter);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 240px;
  margin: 32px auto 0;
}

.hero-actions--done {
  width: auto;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--muted-foreground);
  transition: color 0.18s ease;
}

.back-link:hover {
  color: var(--foreground);
}

.back-link:hover .lucide-arrow-left {
  transform: translateX(-2px);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field__label {
  font-size: 12.5px;
  font-weight: 500;
}

.field__required {
  color: var(--danger-text);
  font-size: 11px;
  font-weight: 700;
}

.field__control {
  position: relative;
}

.field__input {
  width: 100%;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--field-border);
  border-radius: 16px;
  background: var(--surface);
  color: var(--foreground);
  font-size: 14px;
  outline: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease;
}

.field__input::placeholder {
  color: var(--muted-foreground-faint);
}

.field__input:focus {
  border-color: var(--accent-border);
  box-shadow: var(--ring);
}

.field__input.is-invalid {
  border-color: var(--color-red-300);
}

.field__input.is-invalid:focus {
  border-color: var(--color-red-300);
  box-shadow: var(--danger-ring);
}

.field__error {
  display: none;
  margin: 0;
  color: var(--color-red-500);
  font-size: 11.5px;
  line-height: 1.35;
}

.field__error.is-active {
  display: block;
}

.field__input--password {
  padding-right: 44px;
}

.toggle-password {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 24px;
  height: 24px;
  transform: translateY(-50%);
  color: var(--muted-foreground-soft);
  transition: color 0.18s ease;
}

.toggle-password:hover {
  color: var(--muted-foreground-strong);
}

.toggle-password__icon {
  position: absolute;
  inset: 0;
  margin: auto;
}

.toggle-password.is-visible .toggle-password__icon--on {
  display: none;
}

.toggle-password:not(.is-visible) .toggle-password__icon--off {
  display: none;
}

.btn {
  display: inline-flex;
  position: relative;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 38px;
  margin-top: 4px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    opacity 0.18s ease,
    transform 0.18s ease;
}

.btn:hover {
  transform: none;
}

.btn:hover .lucide-arrow-right {
  opacity: 1;
}

.btn:active {
  transform: scale(0.98);
}

.btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.btn.is-loading {
  pointer-events: none;
}

.btn.is-loading:hover,
.btn.is-loading:active {
  transform: none;
}

.btn.is-loading > * {
  opacity: 0;
}

.btn.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 15px;
  height: 15px;
  margin: -7.5px 0 0 -7.5px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 999px;
  animation: button-spin 0.65s linear infinite;
}

.btn--primary {
  background: var(--primary);
  color: var(--foreground-contrast);
}

.btn--primary:hover:not([disabled]) {
  background: var(--primary-hover);
}

.btn--secondary {
  background: var(--surface-subtle);
  color: var(--primary);
}

.btn--secondary:hover:not([disabled]) {
  background: var(--surface-subtle-hover);
}

.btn--pill {
  border-radius: 999px;
}

.text-link {
  margin-left: 4px;
  color: var(--accent);
  font-weight: 500;
}

.text-link:hover {
  color: var(--accent-hover);
}

.error-box {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid var(--danger-border);
  border-radius: 12px;
  background: var(--danger-bg);
  color: var(--danger-text);
  font-size: 12.5px;
}

.error-box__dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--color-red-500);
  flex: 0 0 auto;
}

.success-box {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid var(--success-border);
  border-radius: 12px;
  background: var(--success-bg);
  color: var(--success-text);
  font-size: 12.5px;
}

.success-box__dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--success-text);
  flex: 0 0 auto;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
}

.check-row__box {
  position: relative;
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin-top: 2px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  background: var(--surface);
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease;
}

.check-row__mark {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.check-row__mark::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 5px;
  width: 3px;
  height: 7px;
  border-right: 1.8px solid var(--foreground-contrast);
  border-bottom: 1.8px solid var(--foreground-contrast);
  transform: rotate(45deg);
}

.check-row__box.is-active {
  border-color: var(--primary);
  background: var(--primary);
}

.check-row__box.is-active .check-row__mark {
  opacity: 1;
}

.check-row__text {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.check-row__link {
  color: var(--foreground);
  font-weight: 500;
}

.check-row__link:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.otp {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 0 0 20px;
}

.otp__digit {
  width: 44px;
  height: 52px;
  border: 1px solid var(--field-border);
  border-radius: 16px;
  background: var(--surface);
  color: var(--foreground);
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  outline: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.otp__digit:focus {
  border-color: var(--accent-border);
  box-shadow: var(--ring);
}

.resend-link {
  font-size: 12.5px;
  color: var(--muted-foreground-soft);
  transition: color 0.18s ease;
}

.resend-link.is-ready {
  color: var(--accent);
}

.resend-link.is-ready:hover {
  color: var(--accent-hover);
}

.done-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border: 1px solid var(--success-border-soft);
  border-radius: 18px;
  background: var(--success-bg-soft);
  color: var(--success-accent);
}

.done-badge--danger {
  border-color: var(--danger-border);
  background: var(--danger-bg);
  color: var(--danger-text);
}

.done-badge__icon {
  width: 24px;
  height: 24px;
}

.setup-progress {
  display: flex;
  gap: 6px;
  margin-bottom: 22px;
}

.setup-progress__item {
  flex: 1 1 0;
  height: 4px;
  border-radius: 999px;
  background: var(--progress-inactive);
}

.setup-progress__item.is-complete {
  background: var(--primary);
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateX(var(--auth-step-offset));
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes auth-step-boot {
  from {
    opacity: 0;
    transform: translateX(var(--auth-step-offset));
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

.auth-media {
  display: block;
  flex: 1 1 auto;
  padding: 12px;
  min-width: 0;
}

.auth-media__frame {
  position: relative;
  height: calc(100vh - 24px);
  overflow: hidden;
  border-radius: 24px;
  background: var(--foreground);
}

.auth-media__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--pattern-dot) 1px, transparent 1px);
  background-size: 20px 20px;
}

.auth-media__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1023px) {
  .auth-main {
    flex: 1 1 auto;
  }

  .auth-media {
    display: none;
  }
}

@media (max-width: 640px) {
  .flash {
    top: 10px;
  }

  .auth-brand {
    padding-top: 16px;
  }

  .language-switcher__menu {
    right: -4px;
    min-width: 154px;
  }

  .auth-view {
    padding: 28px 24px 24px;
  }

  .panel {
    max-width: 100%;
  }

  .panel--setup {
    padding: 24px;
  }

  .field-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

}
