/**
 * Auth theme — Digiosk landing login (concentric rounds + floating card).
 * Colors from Digiosk logo. Design unchanged. Dashboard untouched.
 */
.auth-page-shell {
  /* Digiosk logo palette */
  --auth-logo-black: #000000;
  --auth-logo-cyan: #00aeef;
  --auth-logo-cyan-deep: #0090c7;
  --auth-logo-cyan-dark: #0074a1;
  --auth-logo-orange: #f58220;
  --auth-logo-green: #8dc63f;
  --auth-logo-brown: #a37e58;
  --auth-logo-red: #a62626;
  --auth-logo-yellow: #fff100;
  --auth-logo-magenta: #ec008c;
  --auth-logo-white: #ffffff;

  /* teal aliases → Digiosk cyan (existing selectors) */
  --auth-teal-50: #e6f8fd;
  --auth-teal-100: #c5effb;
  --auth-teal-200: #7ad9f7;
  --auth-teal-300: #3fc4f2;
  --auth-teal-400: #1ab8ef;
  --auth-teal-500: #00aeef;
  --auth-teal-600: #0090c7;
  --auth-teal-700: #0074a1;
  --auth-teal-800: #005a80;

  --auth-ink-900: #152033;
  --auth-ink-700: #3a4a63;
  --auth-ink-500: #5b6b86;
  --auth-ink-400: #7a8aa3;
  --auth-ink-300: #d5deea;

  --auth-text-primary: #152033;
  --auth-text-secondary: #5b6b86;
  --auth-text-tertiary: #7a8aa3;
  --auth-text-on-primary: #ffffff;

  --auth-primary-600: #00aeef;
  --auth-primary-700: #0090c7;
  --auth-primary-500: #1ab8ef;
  --auth-primary: var(--auth-primary-600);
  --auth-border: #e5e7eb;
  --auth-border-focus: var(--auth-logo-cyan);
  --auth-input-focus-ring: rgba(0, 174, 239, 0.24);

  --auth-danger-text: #a62626;
  --auth-danger-border: rgba(166, 38, 38, 0.35);
  --auth-danger-bg: rgba(166, 38, 38, 0.08);
  --auth-success-text: #5a8a22;
  --auth-success-border: rgba(141, 198, 63, 0.45);
  --auth-success-bg: rgba(141, 198, 63, 0.12);
  --auth-warning-text: #c26a12;
  --auth-warning-border: rgba(245, 130, 32, 0.4);
  --auth-warning-bg: rgba(245, 130, 32, 0.1);
  --auth-info-text: #0074a1;
  --auth-info-border: rgba(0, 174, 239, 0.35);
  --auth-info-bg: rgba(0, 174, 239, 0.1);

  --auth-bg-input: #fff;
  --auth-radius-input: 0.5rem;
  --auth-radius-btn: 0.35rem;
  --auth-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --auth-shadow-card: 0 24px 60px rgba(0, 0, 0, 0.45);

  /* legacy aliases used by shared auth components */
  --auth-ink-950: #0b1220;
  --auth-ink-800: #243247;
  --auth-ink-600: #5b6b86;
  --auth-ink-200: #e2e8f0;
  --auth-ink-100: #f1f5f9;
  --auth-ink-50: #f8fafc;
  --auth-primary-300: #7ad9f7;
  --auth-primary-400: #3fc4f2;
  --auth-primary-800: #0074a1;
  --auth-navy-950: var(--auth-ink-950);
  --auth-navy-900: var(--auth-ink-900);
  --auth-navy-850: var(--auth-ink-800);
  --auth-navy-800: var(--auth-ink-700);
  --auth-navy-750: var(--auth-ink-600);
  --auth-navy-700: var(--auth-ink-500);
  --auth-navy-600: var(--auth-ink-400);
  --auth-text-muted: var(--auth-text-secondary);
  --auth-text-subtle: var(--auth-text-tertiary);
  --auth-border-strong: #cbd5e1;
  --auth-danger: var(--auth-danger-text);
  --auth-success: var(--auth-success-text);

  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  color: #fff;
  background: #000000;
}

/* ── Concentric Digiosk rounds (logo colors) ── */
.auth-page-shell .auth-landing {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.auth-page-shell .auth-landing__corner-logo {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
}

.auth-page-shell .auth-landing__corner-logo img {
  display: block;
  width: auto;
  height: 2.25rem;
  max-width: min(10rem, 42vw);
  object-fit: contain;
}

@media (min-width: 960px) {
  .auth-page-shell .auth-landing__corner-logo {
    top: 1.75rem;
    left: 2rem;
  }

  .auth-page-shell .auth-landing__corner-logo img {
    height: 2.75rem;
    max-width: 11.5rem;
  }
}

.auth-page-shell .auth-circles {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.auth-page-shell .auth-circle {
  position: absolute;
  border-radius: 50%;
}

/* Radiate from top-right — black → cyan family + logo accents */
.auth-page-shell .auth-circle--1 {
  width: 160vmax;
  height: 160vmax;
  top: -95vmax;
  right: -70vmax;
  background: #0a0a0a;
}

.auth-page-shell .auth-circle--2 {
  width: 130vmax;
  height: 130vmax;
  top: -78vmax;
  right: -55vmax;
  background: #003d56;
}

.auth-page-shell .auth-circle--3 {
  width: 100vmax;
  height: 100vmax;
  top: -58vmax;
  right: -40vmax;
  background: #0074a1;
}

.auth-page-shell .auth-circle--4 {
  width: 72vmax;
  height: 72vmax;
  top: -40vmax;
  right: -26vmax;
  background: #00aeef;
}

.auth-page-shell .auth-circle--5 {
  width: 46vmax;
  height: 46vmax;
  top: -24vmax;
  right: -12vmax;
  background: #3fc4f2;
}

/* ── Body: hero left + card right ── */
.auth-page-shell .auth-landing__body {
  position: relative;
  z-index: 2;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 2rem;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 2.5rem;
}

@media (min-width: 960px) {
  .auth-page-shell .auth-landing__body {
    grid-template-columns: 1fr 1.05fr;
    gap: 2.75rem;
    padding: 4.75rem 2.5rem 3rem;
  }
}

.auth-page-shell .auth-landing-hero {
  max-width: 28rem;
  color: #fff;
}

@media (max-width: 959px) {
  .auth-page-shell .auth-landing-hero {
    text-align: center;
    margin: 0 auto;
  }
}

.auth-page-shell .auth-landing-hero__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display, "Sora", ui-sans-serif, system-ui, sans-serif);
  font-size: clamp(2.75rem, 6vw, 4.25rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
}

.auth-page-shell .auth-landing-hero__eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.auth-page-shell .auth-landing-hero__subtitle {
  margin: 0 0 1rem;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 600;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.96);
}

.auth-page-shell .auth-landing-hero__text {
  margin: 0 0 1.75rem;
  max-width: 26rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.84);
}

@media (max-width: 959px) {
  .auth-page-shell .auth-landing-hero__text {
    margin-left: auto;
    margin-right: auto;
  }
}

.auth-page-shell .auth-landing-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1.75rem;
  border: 2px solid #fff;
  border-radius: 9999px;
  background: transparent;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  transition: background 0.2s var(--auth-ease), color 0.2s var(--auth-ease);
}

.auth-page-shell .auth-landing-hero__cta:hover {
  background: #fff;
  color: #0074a1;
}

.auth-page-shell .auth-landing-hero__dots {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.75rem;
}

@media (max-width: 959px) {
  .auth-page-shell .auth-landing-hero__dots {
    justify-content: center;
  }
}

.auth-page-shell .auth-landing-hero__dots span {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #fff;
  opacity: 0.85;
}

.auth-page-shell .auth-landing-hero__dots span.is-active {
  width: 0.7rem;
  height: 0.7rem;
  background: transparent;
  border: 2px solid #00aeef;
  opacity: 1;
}

/* ── Floating white login card ── */
.auth-page-shell .auth-login-card {
  display: flex;
  justify-content: center;
  width: 100%;
}

.auth-page-shell .auth-login-card__inner {
  width: 100%;
  max-width: 26.5rem;
  padding: 2.25rem 1.75rem 1.75rem;
  border-radius: 1.5rem;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 18px 48px rgba(0, 0, 0, 0.4);
  color: var(--auth-ink-900);
}

@media (min-width: 960px) {
  .auth-page-shell .auth-login-card {
    justify-content: flex-end;
  }

  .auth-page-shell .auth-login-card__inner {
    max-width: 28rem;
    padding: 2.5rem 2.25rem 2rem;
  }
}

.auth-page-shell .auth-login-card__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  text-align: center;
}

.auth-page-shell .auth-login-card__brand {
  margin: 0;
  font-family: var(--font-display, "Sora", ui-sans-serif, system-ui, sans-serif);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #152033;
}

.auth-page-shell .auth-login-card__logo {
  display: block;
  width: auto;
  height: 3.25rem;
  max-width: min(14rem, 70vw);
  margin: 0 auto;
  object-fit: contain;
}

@media (min-width: 960px) {
  .auth-page-shell .auth-login-card__logo {
    height: 3.75rem;
    max-width: 15rem;
  }
}

.auth-page-shell .auth-login-card__rule {
  display: block;
  width: 3rem;
  height: 3px;
  border-radius: 9999px;
  background: linear-gradient(
    90deg,
    #f58220 0%,
    #8dc63f 28%,
    #00aeef 58%,
    #ec008c 100%
  );
}

.auth-page-shell .auth-login-card__caption {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.4;
  font-weight: 500;
  color: #5b6b86;
}

.auth-page-shell .auth-login-card__caption:empty {
  display: none;
}

.auth-page-shell .auth-welcome {
  margin-bottom: 1.25rem;
  text-align: left;
}

.auth-page-shell .auth-welcome:has(.auth-welcome__title:empty):has(.auth-welcome__desc:empty) {
  display: none;
}

.auth-page-shell .auth-welcome__kicker {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--auth-teal-600);
  margin-bottom: 0.375rem;
}

.auth-page-shell .auth-welcome__title {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--auth-ink-900);
}

.auth-page-shell .auth-welcome__title:empty {
  display: none;
}

.auth-page-shell .auth-welcome__desc {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--auth-ink-500);
}

.auth-page-shell .auth-welcome__desc:empty {
  display: none;
}

.auth-page-shell .auth-form-footer:empty {
  display: none;
}

/* ── Underline inputs — professional polish ── */
.auth-page-shell .auth-form--lines {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.auth-page-shell .auth-form--lines .auth-field-stack {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.auth-page-shell .auth-line-field {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.75rem;
  padding-bottom: 0.15rem;
  border-bottom: 1.5px solid #d5deea;
  transition: border-color 0.2s var(--auth-ease);
}

.auth-page-shell .auth-line-field:focus-within {
  border-bottom-color: #00aeef;
}

.auth-page-shell .auth-line-field__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  color: #7a8aa3;
  font-size: 1.125rem;
  line-height: 1;
  transition: color 0.2s var(--auth-ease);
}

.auth-page-shell .auth-line-field:focus-within .auth-line-field__icon {
  color: #0090c7;
}

.auth-page-shell .auth-line-field__control {
  position: relative;
  flex: 1;
  min-width: 0;
}

.auth-page-shell .auth-line-field--toggle .auth-line-input,
.auth-page-shell .auth-line-field--toggle input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]) {
  padding-right: 3.25rem;
}

.auth-page-shell .auth-form-field__toggle {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  min-height: 2rem;
  padding: 0.25rem 0.4rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #0090c7;
  cursor: pointer;
}

.auth-page-shell .auth-form-field__toggle:hover {
  color: #0074a1;
  background: rgba(0, 174, 239, 0.08);
}

.auth-page-shell .auth-form-field__toggle:focus-visible {
  outline: 2px solid #00aeef;
  outline-offset: 2px;
}

.auth-page-shell .auth-form-field__toggle[data-state="hidden"] .auth-toggle-label--hide,
.auth-page-shell .auth-form-field__toggle[data-state="visible"] .auth-toggle-label--show {
  display: none;
}

.auth-page-shell .auth-line-input,
.auth-page-shell .auth-form--lines input.auth-line-input,
.auth-page-shell .auth-form--lines .auth-line-field input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]) {
  display: block;
  width: 100%;
  height: 2.5rem;
  margin: 0;
  padding: 0.5rem 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: #152033;
  outline: none;
  caret-color: #00aeef;
}

.auth-page-shell .auth-line-input::placeholder,
.auth-page-shell .auth-form--lines .auth-line-field input::placeholder {
  color: #9aabc2;
  letter-spacing: 0;
  text-transform: none;
  opacity: 1;
  font-weight: 450;
}

.auth-page-shell .auth-line-input:focus,
.auth-page-shell .auth-form--lines .auth-line-field input:focus {
  border: 0 !important;
  box-shadow: none !important;
  outline: none;
  background: transparent !important;
}

/* Kill browser autofill wash that breaks the underline look */
.auth-page-shell .auth-form--lines input.auth-line-input:-webkit-autofill,
.auth-page-shell .auth-form--lines input.auth-line-input:-webkit-autofill:hover,
.auth-page-shell .auth-form--lines input.auth-line-input:-webkit-autofill:focus,
.auth-page-shell .auth-form--lines .auth-line-field input:-webkit-autofill {
  -webkit-text-fill-color: #152033;
  caret-color: #00aeef;
  transition: background-color 99999s ease-out;
  box-shadow: 0 0 0 1000px #fff inset !important;
}

.auth-page-shell .auth-inline-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-top: 0.15rem;
}

.auth-page-shell .auth-inline-meta__link {
  flex-shrink: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}

.auth-page-shell .auth-login-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.15rem;
}

.auth-page-shell .auth-checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #5b6b86;
  cursor: pointer;
  user-select: none;
}

.auth-page-shell .auth-checkbox-row--terms {
  align-items: flex-start;
  gap: 0.55rem;
  line-height: 1.5;
}

.auth-page-shell .auth-checkbox-row--terms input[type="checkbox"] {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.auth-page-shell .auth-checkbox-row input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 4px;
  accent-color: #00aeef;
  cursor: pointer;
}

.auth-page-shell .auth-error-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--auth-danger-text);
}

.auth-page-shell .auth-btn-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.875rem;
  margin-top: 0.25rem;
  padding: 0.8125rem 1.25rem;
  border: 0;
  border-radius: 0.75rem;
  background: #00aeef;
  box-shadow: 0 8px 20px rgba(0, 174, 239, 0.28);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s var(--auth-ease), box-shadow 0.2s var(--auth-ease), transform 0.15s var(--auth-ease);
}

.auth-page-shell .auth-btn-login:hover:not(:disabled):not(.is-loading) {
  background: #0090c7;
  box-shadow: 0 10px 24px rgba(0, 144, 199, 0.32);
  transform: translateY(-1px);
}

.auth-page-shell .auth-btn-login:focus-visible {
  outline: 2px solid #00aeef;
  outline-offset: 3px;
}

.auth-page-shell .auth-btn-login:disabled,
.auth-page-shell .auth-btn-login.is-loading {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.auth-page-shell .auth-link-accent {
  color: #0090c7;
  text-decoration: none;
  font-weight: 600;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.auth-page-shell .auth-link-accent:hover {
  color: #0074a1;
  text-decoration: underline;
}

.auth-page-shell .auth-link-accent:focus-visible {
  outline: 2px solid #00aeef;
  outline-offset: 2px;
  border-radius: 2px;
}

.auth-page-shell .auth-signup-hint {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #5b6b86;
}

.auth-page-shell .auth-form-footer {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #eef2f7;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.5;
  color: #7a8aa3;
}

.auth-page-shell .auth-form-footer a {
  color: #0090c7;
  font-weight: 600;
  text-decoration: none;
}

.auth-page-shell .auth-form-footer a:hover {
  text-decoration: underline;
}

.auth-page-shell .auth-hint {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: #7a8aa3;
}

.auth-page-shell .auth-hint--destination {
  margin-bottom: 1rem;
  font-size: 0.8125rem;
  color: #5b6b86;
}

.auth-page-shell .auth-destination-chip {
  display: inline-block;
  margin-left: 0.25rem;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  background: #e6f8fd;
  border: 1px solid #c5effb;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.75rem;
  font-weight: 600;
  color: #0074a1;
  word-break: break-all;
}

.auth-page-shell .auth-action-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.auth-page-shell .auth-action-stack--row {
  margin-top: 1rem;
}

@media (min-width: 480px) {
  .auth-page-shell .auth-action-stack--row {
    flex-direction: row;
  }

  .auth-page-shell .auth-action-stack--row > * {
    flex: 1;
  }
}

.auth-page-shell .auth-form--stack {
  margin-top: 0.75rem;
}

.auth-page-shell .auth-btn-login,
.auth-page-shell a.auth-btn-login {
  text-decoration: none;
  text-align: center;
}

.auth-page-shell .auth-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.75rem 1.25rem;
  border: 1.5px solid #d5deea;
  border-radius: 0.75rem;
  background: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  color: #152033;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s var(--auth-ease), border-color 0.2s var(--auth-ease);
}

.auth-page-shell .auth-btn-secondary:hover {
  background: #f8fafc;
  border-color: #00aeef;
  color: #0074a1;
}

.auth-page-shell .auth-btn-premium {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.875rem;
  padding: 0.8125rem 1.25rem;
  border: 0;
  border-radius: 0.75rem;
  background: #00aeef;
  box-shadow: 0 8px 20px rgba(0, 174, 239, 0.28);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s var(--auth-ease), box-shadow 0.2s var(--auth-ease);
}

.auth-page-shell .auth-btn-premium:hover:not(:disabled):not(.is-loading) {
  background: #0090c7;
  box-shadow: 0 10px 24px rgba(0, 144, 199, 0.32);
  filter: none;
  transform: none;
}

.auth-page-shell .auth-btn-premium:disabled,
.auth-page-shell .auth-btn-premium.is-loading {
  opacity: 0.5;
  cursor: not-allowed;
}

.auth-page-shell .auth-card {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: 0.875rem;
  border: 1px solid #e8eef6;
  background: #f8fafc;
}

.auth-page-shell .auth-card__title {
  margin: 0 0 0.35rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #152033;
}

.auth-page-shell .auth-card__text {
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #5b6b86;
}

.auth-page-shell .auth-card__text strong {
  color: #152033;
  font-weight: 600;
}

.auth-page-shell ol.auth-steps {
  margin: 0 0 1.25rem;
  padding-left: 1.15rem;
  color: #5b6b86;
  font-size: 0.8125rem;
  line-height: 1.65;
}

.auth-page-shell .auth-qr-wrap {
  margin: 0 0 1.5rem;
  text-align: center;
}

.auth-page-shell .auth-qr-wrap img {
  display: inline-block;
  border-radius: 0.75rem;
  border: 1px solid #e8eef6;
  background: #fff;
  padding: 0.5rem;
}

.auth-page-shell .auth-manual-key {
  margin: 0.35rem 0 0;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #152033;
  word-break: break-all;
}

.auth-page-shell .auth-backup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.auth-page-shell .auth-backup-code {
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid #e8eef6;
  background: #fff;
  text-align: center;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.8125rem;
  color: #152033;
}

.auth-page-shell .auth-topbar {
  display: none;
}

.auth-page-shell .auth-login-alerts:empty {
  display: none;
}

.auth-page-shell .auth-login-alerts:not(:empty) {
  margin-bottom: 1rem;
}

.auth-page-shell .auth-alert {
  display: flex;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--auth-border);
  font-size: 0.8125rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.auth-page-shell .auth-alert--error {
  border-color: var(--auth-danger-border);
  background: var(--auth-danger-bg);
  color: var(--auth-danger-text);
}

.auth-page-shell .auth-alert--success {
  border-color: var(--auth-success-border);
  background: var(--auth-success-bg);
  color: var(--auth-success-text);
}

.auth-page-shell .auth-alert--info {
  border-color: var(--auth-info-border);
  background: var(--auth-info-bg);
  color: var(--auth-info-text);
}

.auth-page-shell .auth-alert__title {
  font-weight: 600;
  margin: 0 0 0.25rem;
}

.auth-page-shell .auth-alert__text {
  margin: 0;
}

.auth-page-shell .auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-page-shell .auth-field-stack {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.auth-page-shell .auth-field-float {
  position: relative;
}

.auth-page-shell .auth-field-float input:not([type="checkbox"]):not([type="radio"]),
.auth-page-shell .auth-form-field input:not([type="checkbox"]):not([type="radio"]),
.auth-page-shell .auth-form-field select,
.auth-page-shell .auth-form-field textarea {
  display: block;
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  padding: 0.85rem 1rem;
  font-size: 0.9375rem;
  color: var(--auth-ink-900);
}

.auth-page-shell .auth-field-float input:focus,
.auth-page-shell .auth-form-field input:focus,
.auth-page-shell .auth-form-field select:focus,
.auth-page-shell .auth-form-field textarea:focus {
  outline: none;
  border-color: var(--auth-teal-500);
  box-shadow: 0 0 0 3px var(--auth-input-focus-ring);
  background: #fff;
}

.auth-page-shell .auth-field-float label {
  position: absolute;
  left: 1rem;
  top: 0.5rem;
  font-size: 0.6875rem;
  color: var(--auth-ink-500);
  pointer-events: none;
}

.auth-page-shell .auth-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--auth-ink-500);
  margin-bottom: 0.375rem;
}

.auth-page-shell .auth-hint {
  font-size: 0.8125rem;
  color: var(--auth-ink-500);
}

.auth-page-shell .auth-modal-backdrop {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
}

.auth-page-shell .auth-modal-panel {
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: var(--auth-shadow-card);
  border: 1px solid #e5e7eb;
  color: var(--auth-ink-900);
}

.auth-page-shell .auth-modal-body {
  color: var(--auth-ink-700);
}

.auth-page-shell .auth-form-field {
  position: relative;
}

.auth-page-shell .auth-form-field__icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--auth-ink-500);
  pointer-events: none;
  z-index: 1;
}

.auth-page-shell .auth-form-field--icon-left input:not([type="checkbox"]):not([type="radio"]) {
  padding-left: 2.75rem;
}

.auth-page-shell .auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.35rem 0.7rem;
  border-radius: 9999px;
  background: #e6f8fd;
  border: 1px solid #7ad9f7;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--auth-teal-700);
}

.auth-page-shell .auth-badge__dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #00aeef;
}

.auth-page-shell .auth-header-action,
.auth-page-shell .auth-header-action--mobile,
.auth-page-shell .auth-form-header {
  display: none;
}

.auth-page-shell .auth-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.auth-page-shell #messages-container .alert {
  border-radius: 0.75rem;
  margin-bottom: 1rem;
}

@media (prefers-reduced-motion: reduce) {
  .auth-page-shell .auth-btn-login,
  .auth-page-shell .auth-landing-hero__cta,
  .auth-page-shell .auth-btn-login:hover:not(:disabled):not(.is-loading) {
    transition: none;
    transform: none;
  }
}
