/* Thai Charm Amulet — Auth surfaces (login, aligned with landing editorial) */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --bg-deep: oklch(16% 0.028 48);
  --bg-base: oklch(20% 0.032 52);
  --bg-raised: oklch(24% 0.036 55);
  --bg-muted: oklch(28% 0.04 58);

  --text-primary: oklch(94% 0.02 85);
  --text-secondary: oklch(82% 0.03 78);
  --text-muted: oklch(68% 0.04 72);

  --gold: oklch(72% 0.14 75);
  --gold-soft: oklch(65% 0.1 72);
  --terracotta: oklch(52% 0.14 38);
  --terracotta-deep: oklch(42% 0.12 35);
  --success: oklch(62% 0.12 155);
  --danger: oklch(58% 0.16 25);

  --border: oklch(38% 0.04 55 / 0.45);
  --border-strong: oklch(48% 0.06 60 / 0.55);

  --font-display: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-quart: cubic-bezier(0.165, 0.84, 0.44, 1);
  --dur-fast: 0.2s;
  --dur-med: 0.45s;
  --dur-slow: 0.85s;

  --auth-form-max: 26rem;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body.auth-page {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

body.auth-page::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 45% at 0% 0%, oklch(42% 0.08 55 / 0.32), transparent 50%),
    radial-gradient(ellipse 55% 40% at 100% 100%, oklch(38% 0.1 38 / 0.22), transparent 45%),
    linear-gradient(180deg, var(--bg-deep) 0%, oklch(18% 0.03 50) 100%);
}

body.auth-page::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.auth-top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.25rem;
  padding: var(--space-sm) var(--space-md);
  padding-top: max(var(--space-sm), env(safe-area-inset-top));
  background: oklch(17% 0.03 50 / 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
}

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.75rem;
  min-width: 2.75rem;
  padding: 0.35rem 0.5rem 0.35rem 0;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: color var(--dur-fast) var(--ease-out);
}

.auth-top-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: inherit;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
}

.auth-top-logo img {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}

.auth-top-logo span {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.auth-top-logo:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.auth-back:hover,
.auth-back:focus-visible {
  color: var(--gold);
}

.auth-back:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.auth-shell {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  width: 100%;
  max-width: 56rem;
  margin: 0 auto;
  padding: var(--space-lg);
  padding-bottom: max(var(--space-2xl), env(safe-area-inset-bottom));
  gap: var(--space-2xl);
  align-items: center;
}

/* —— Mobile-first: form trước, brand ẩn —— */
@media (max-width: 767px) {
  .auth-brand--desktop {
    display: none;
  }

  .auth-shell {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    width: 100%;
    max-width: 28rem;
    margin: 0 auto;
    padding: var(--space-md);
    padding-bottom: max(var(--space-xl), calc(env(safe-area-inset-bottom) + 4.5rem));
    gap: 0;
  }

  .auth-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .auth-card {
    width: 100%;
    padding: var(--space-lg) var(--space-md);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 40px oklch(10% 0.02 40 / 0.45);
    border-top: 2px solid oklch(72% 0.12 75 / 0.45);
  }

  .auth-card__title {
    font-size: 1.5rem;
    text-align: center;
  }

  .auth-card__subtitle {
    text-align: center;
    font-size: 0.875rem;
    margin-bottom: var(--space-lg);
    line-height: 1.5;
  }

  .auth-field {
    margin-bottom: var(--space-md);
  }

  .auth-label {
    font-size: 0.75rem;
  }

  .auth-input {
    min-height: 3.25rem;
    padding-top: 0.875rem;
    padding-bottom: 0.875rem;
    font-size: 16px;
  }

  .auth-toggle-pw {
    right: 0.125rem;
    min-width: 2.75rem;
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .auth-submit {
    min-height: 3.25rem;
    margin-top: var(--space-md);
    font-size: 1.0625rem;
    border-radius: var(--radius-md);
  }

  .auth-forgot a {
    display: inline-block;
    padding: 0.35rem 0;
    min-height: 2.75rem;
    line-height: 2rem;
  }

  .auth-divider {
    margin: var(--space-lg) 0 var(--space-md);
  }

  .auth-register {
    font-size: 0.9375rem;
    line-height: 1.5;
  }

  .auth-register a {
    display: inline-block;
    padding: 0.25rem 0;
  }

  .auth-trust {
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    gap: var(--space-xs);
    justify-content: space-between;
  }

  .auth-trust span {
    flex: 1;
    justify-content: center;
    font-size: 0.65rem;
  }

  .auth-alert {
    font-size: 0.8125rem;
    line-height: 1.45;
  }
}

@media (max-width: 380px) {
  .auth-back__text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .auth-back {
    padding-right: 0.35rem;
  }
}

@media (min-width: 768px) {
  .auth-top {
    position: relative;
    background: transparent;
    border-bottom: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: var(--space-md) var(--space-lg);
    padding-top: max(var(--space-md), env(safe-area-inset-top));
    min-height: auto;
  }

  .auth-top-logo {
    display: none;
  }

  .auth-back__text::before {
    content: 'Về ';
  }

  .auth-shell {
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    padding: var(--space-2xl) var(--space-xl);
    padding-bottom: max(var(--space-2xl), env(safe-area-inset-bottom));
    max-width: 56rem;
  }
}

/* Brand column */
.auth-brand {
  text-align: center;
}

@media (min-width: 768px) {
  .auth-brand {
    text-align: left;
    padding-right: var(--space-lg);
  }
}

.auth-brand__logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  color: inherit;
  margin-bottom: var(--space-xl);
}

.auth-brand__logo img {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
}

.auth-brand__logo span {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.auth-brand h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

.auth-brand h1 em {
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
}

.auth-brand__lead {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 32ch;
  margin: 0 auto var(--space-xl);
}

@media (min-width: 768px) {
  .auth-brand__lead {
    margin-left: 0;
    margin-right: 0;
  }
}

.auth-brand__points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  text-align: left;
  max-width: 22rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .auth-brand__points {
    margin: 0;
  }
}

.auth-brand__points li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.auth-brand__points i {
  color: var(--gold);
  margin-top: 0.15rem;
  width: 1rem;
  text-align: center;
}

/* Form panel */
.auth-panel {
  width: 100%;
  max-width: var(--auth-form-max);
  margin: 0 auto;
}

@media (min-width: 768px) {
  .auth-panel {
    margin: 0;
    max-width: none;
  }
}

.auth-card {
  background: oklch(22% 0.035 52 / 0.92);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: 0 20px 50px oklch(10% 0.02 40 / 0.4);
}

.auth-card__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.auth-card__subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: var(--space-xl);
}

.auth-alert {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--space-lg);
  animation: authSlideIn var(--dur-med) var(--ease-out) both;
}

@keyframes authSlideIn {
  from {
    opacity: 0;
    transform: translateY(-0.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-alert--success {
  background: oklch(62% 0.12 155 / 0.12);
  border: 1px solid oklch(62% 0.12 155 / 0.35);
  color: oklch(78% 0.1 155);
}

.auth-alert--error {
  background: oklch(58% 0.16 25 / 0.12);
  border: 1px solid oklch(58% 0.16 25 / 0.35);
  color: oklch(78% 0.12 25);
}

.auth-field {
  margin-bottom: var(--space-lg);
}

.auth-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.auth-input-wrap {
  position: relative;
}

.auth-input-icon {
  position: absolute;
  left: var(--space-md);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.95rem;
  pointer-events: none;
}

.auth-input {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem var(--space-md) 0.75rem 2.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}

.auth-input::placeholder {
  color: oklch(58% 0.04 72);
}

.auth-input:hover {
  border-color: oklch(48% 0.06 60 / 0.7);
}

.auth-input:focus {
  outline: none;
  border-color: var(--gold-soft);
  background: var(--bg-muted);
  box-shadow: 0 0 0 3px oklch(72% 0.12 75 / 0.15);
}

.auth-input--password {
  padding-right: 2.75rem;
}

.auth-toggle-pw {
  position: absolute;
  right: var(--space-sm);
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.5rem;
  font-size: 1rem;
  line-height: 1;
  transition: color var(--dur-fast) var(--ease-out);
}

.auth-toggle-pw:hover,
.auth-toggle-pw:focus-visible {
  color: var(--gold);
}

.auth-toggle-pw:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.auth-forgot {
  text-align: right;
  margin-top: var(--space-sm);
}

.auth-forgot a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-soft);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}

.auth-forgot a:hover {
  color: var(--gold);
}

.auth-submit {
  width: 100%;
  min-height: 3rem;
  margin-top: var(--space-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: oklch(96% 0.02 85);
  background: var(--terracotta);
  border: 1px solid oklch(48% 0.12 38);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}

.auth-submit:hover:not(:disabled) {
  background: var(--terracotta-deep);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px oklch(42% 0.12 38 / 0.4);
}

.auth-submit:active:not(:disabled) {
  transform: translateY(0);
}

.auth-submit:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.auth-submit:disabled,
.auth-submit.is-loading {
  opacity: 0.88;
  cursor: wait;
  transform: none;
}

.auth-submit .btn-content,
.auth-submit .btn-loading {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.auth-submit:not(.is-loading) .btn-content {
  display: inline-flex;
}

.auth-submit.is-loading .btn-loading {
  display: inline-flex;
}

.auth-spinner {
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid oklch(96% 0.02 85 / 0.35);
  border-top-color: oklch(96% 0.02 85);
  border-radius: 50%;
  animation: authSpin 0.65s linear infinite;
}

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

.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin: var(--space-xl) 0 var(--space-lg);
  color: var(--text-muted);
  font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-register {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.auth-register a {
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
}

.auth-register a:hover {
  text-decoration: underline;
}

.auth-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md) var(--space-lg);
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
}

.auth-trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.auth-trust i {
  color: var(--gold-soft);
  font-size: 0.8rem;
}

.auth-ready .auth-brand,
.auth-ready .auth-card {
  animation: authFadeUp var(--dur-slow) var(--ease-out-quart) both;
}

.auth-ready .auth-card {
  animation-delay: 0.1s;
}

@keyframes authFadeUp {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Register — password strength */
.auth-strength {
  margin-top: var(--space-sm);
}

.auth-strength__track {
  height: 4px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 100px;
  overflow: hidden;
}

.auth-strength__bar {
  height: 100%;
  width: 0%;
  border-radius: 100px;
  transition: width 0.35s var(--ease-out), background 0.35s var(--ease-out);
  background: var(--danger);
}

.auth-strength__bar[data-level='fair'] {
  background: oklch(72% 0.12 75);
}

.auth-strength__bar[data-level='good'] {
  background: oklch(55% 0.1 230);
}

.auth-strength__bar[data-level='strong'] {
  background: var(--success);
}

.auth-strength__text {
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 0.35rem;
  color: var(--text-muted);
}

.auth-strength__text[data-level='weak'] {
  color: oklch(72% 0.12 25);
}

.auth-strength__text[data-level='fair'] {
  color: var(--gold-soft);
}

.auth-strength__text[data-level='good'],
.auth-strength__text[data-level='strong'] {
  color: var(--success);
}

.auth-terms {
  margin-top: var(--space-lg);
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
  text-align: center;
}

.auth-terms a {
  color: var(--gold-soft);
  font-weight: 600;
  text-decoration: none;
}

.auth-terms a:hover {
  color: var(--gold);
}

/* Longer forms on mobile */
@media (max-width: 767px) {
  .auth-shell--register {
    justify-content: flex-start;
    padding-top: var(--space-sm);
  }

  .auth-panel--register {
    justify-content: flex-start;
  }

  .auth-card--register {
    padding-bottom: var(--space-md);
  }

  .auth-field--compact {
    margin-bottom: var(--space-md);
  }
}

/* Age confirm modal */
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  padding-bottom: max(var(--space-md), env(safe-area-inset-bottom));
}

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

.auth-modal__backdrop {
  position: absolute;
  inset: 0;
  background: oklch(10% 0.02 40 / 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.auth-modal__box {
  position: relative;
  width: 100%;
  max-width: 22rem;
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  background: var(--bg-raised);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px oklch(8% 0.02 40 / 0.55);
  transform: scale(0.94);
  opacity: 0;
  transition:
    transform 0.35s var(--ease-out-quart),
    opacity 0.3s var(--ease-out);
}

.auth-modal--open .auth-modal__box {
  transform: scale(1);
  opacity: 1;
}

.auth-modal__badge {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: oklch(18% 0.03 50);
  background: linear-gradient(145deg, var(--gold), var(--gold-soft));
  border-radius: var(--radius-md);
}

.auth-modal__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: var(--space-sm);
}

.auth-modal__text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: var(--space-xl);
}

.auth-modal__text a {
  color: var(--gold);
  font-weight: 600;
}

.auth-modal__actions {
  display: flex;
  gap: var(--space-sm);
}

.auth-modal__cancel,
.auth-modal__confirm {
  flex: 1;
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.auth-modal__cancel {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
}

.auth-modal__confirm {
  background: var(--terracotta);
  border: 1px solid oklch(48% 0.12 38);
  color: oklch(96% 0.02 85);
}

.auth-modal__confirm:hover {
  background: var(--terracotta-deep);
}

.auth-modal__cancel:focus-visible,
.auth-modal__confirm:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Success overlay */
.auth-success {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  background: oklch(10% 0.02 40 / 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out);
}

.auth-success.auth-success--show {
  opacity: 1;
  pointer-events: auto;
}

.auth-success__inner {
  text-align: center;
  max-width: 20rem;
}

.auth-success__check {
  width: 5rem;
  height: 5rem;
  margin: 0 auto var(--space-lg);
}

.auth-success__circle {
  stroke: var(--success);
  stroke-width: 2;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
}

.auth-success__path {
  stroke: var(--success);
  stroke-width: 2;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
}

.auth-success__check--done .auth-success__circle,
.auth-success__check--done .auth-success__path {
  animation: authStroke 0.5s var(--ease-out-quart) forwards;
}

.auth-success__check--done .auth-success__path {
  animation-delay: 0.25s;
}

@keyframes authStroke {
  to {
    stroke-dashoffset: 0;
  }
}

.auth-success__message h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--gold-soft);
  margin-bottom: var(--space-sm);
}

.auth-success__message p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.auth-success__merge {
  margin-top: var(--space-sm);
  font-size: 0.85rem !important;
  color: var(--success) !important;
}

.auth-success__hint {
  margin-top: var(--space-md);
  font-size: 0.8rem !important;
  color: var(--text-muted) !important;
}

.auth-success__spinner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-success__spinner .auth-spinner {
  width: 2.5rem;
  height: 2.5rem;
  border-width: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .auth-alert,
  .auth-ready .auth-brand,
  .auth-ready .auth-card {
    animation: none;
  }
  .auth-spinner {
    animation: none;
    opacity: 0.7;
  }
  .auth-modal__box {
    transition: none;
    transform: none;
    opacity: 1;
  }
  .auth-success__circle,
  .auth-success__path {
    stroke-dashoffset: 0;
    animation: none;
  }
}
