:root {
  --auth-bg-base: linear-gradient(172deg, #04101c 0%, #0a1630 45%, #111f3b 100%);
  --auth-bg-glow-1: radial-gradient(980px 530px at 12% -6%, rgba(208, 232, 255, 0.2), transparent 62%);
  --auth-bg-glow-2: radial-gradient(860px 520px at 52% 22%, rgba(126, 182, 227, 0.16), transparent 64%);
  --auth-bg-glow-3: radial-gradient(980px 640px at 93% 104%, rgba(50, 74, 130, 0.24), transparent 68%);
  --auth-bg-glow-4: radial-gradient(720px 420px at 16% 88%, rgba(84, 156, 255, 0.1), transparent 72%);
  --auth-overlay-glow-1: radial-gradient(600px 360px at 78% 16%, rgba(228, 245, 255, 0.1), transparent 72%);
  --auth-overlay-glow-2: radial-gradient(420px 260px at 24% 78%, rgba(124, 153, 255, 0.1), transparent 72%);
  --auth-overlay-base: linear-gradient(140deg, rgba(5, 12, 27, 0.34), rgba(6, 14, 29, 0.12));
  --auth-panel-border: rgba(172, 213, 255, 0.28);
  --auth-panel-bg: rgba(14, 26, 54, 0.62);
  --auth-panel-shadow: 0 18px 48px rgba(3, 9, 26, 0.42);
  --auth-surface-bg: rgba(15, 32, 66, 0.5);
  --auth-surface-border: rgba(179, 206, 236, 0.24);
  --auth-surface-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 14px 34px rgba(3, 9, 26, 0.18);
  --auth-focus-ring: rgba(65, 209, 255, 0.24);
  --auth-glass-blur: 14px;
  --auth-text-primary: #e6f2fd;
  --auth-text-secondary: #bfd0e3;
  --auth-text-muted: #90a8c2;
  --auth-text-soft: rgba(229, 243, 255, 0.68);
  --auth-accent-cyan: #86e7ff;
  --auth-accent-blue: #84b8ff;
  --auth-accent-violet: #a8a4ff;
  --auth-success-soft: #aef2dd;
  --auth-warning-soft: #f4c9df;
  --auth-radius-sm: 10px;
  --auth-radius-md: 12px;
  --auth-radius-lg: 16px;
  --auth-radius-xl: 20px;
  --auth-radius-2xl: 24px;
  --auth-radius-pill: 999px;
  --auth-space-1: 4px;
  --auth-space-2: 8px;
  --auth-space-3: 12px;
  --auth-space-4: 16px;
  --auth-space-5: 18px;
  --auth-space-6: 20px;
  --auth-space-7: 22px;
  --auth-space-8: 24px;
  --auth-space-9: 28px;
  --auth-font-xs: 12px;
  --auth-font-sm: 13px;
  --auth-font-md: 14px;
  --auth-font-lg: 15px;
  --auth-font-xl: 1.2rem;
  --auth-shadow-button: 0 16px 34px rgba(26, 83, 162, 0.32), 0 0 0 1px rgba(134, 228, 255, 0.2) inset;
  --auth-shadow-button-hover: 0 20px 34px rgba(20, 70, 139, 0.4), 0 0 0 1px rgba(161, 233, 255, 0.35) inset;
  --auth-duration-fast: 0.18s;
  --auth-duration-base: 0.2s;
  --auth-z-base: 1;
  --auth-z-overlay: 10;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'SF Pro Display', 'Segoe UI', sans-serif;
  color: var(--auth-text-primary);
}

.auth-page-bg,
.signup-page-bg {
  min-height: 100%;
  position: relative;
  isolation: isolate;
  background: var(--auth-bg-glow-1), var(--auth-bg-glow-2), var(--auth-bg-glow-3), var(--auth-bg-glow-4), var(--auth-bg-base) !important;
}

.auth-page-bg::before,
.signup-page-bg::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: var(--auth-overlay-glow-1), var(--auth-overlay-glow-2), var(--auth-overlay-base);
}

.auth-shell,
.signup-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 18px 16px 28px;
}

.auth-shell.auth-shell--narrow {
  width: min(1140px, 100%);
}

.page-header,
.header-actions,
.language-toolbar,
.language-toolbar .lang-group,
.page-header-brand,
.auth-layout,
.signup-layout,
.field,
.field-head,
.checkbox-row,
.panel-actions,
.hero-points,
.social-buttons,
.step-shell,
.step-indicator,
.step-dot-row,
.toggle-row,
.avatar-shell,
.avatar-actions,
.success-meta,
.verification-actions,
.field-grid {
  display: flex;
}

.page-header {
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.page-header-brand {
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.header-actions {
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.language-toolbar {
  justify-content: flex-end;
  flex-shrink: 0;
}

.language-toolbar .lang-group {
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(196, 223, 249, 0.28);
  background: rgba(214, 230, 246, 0.15);
  border-radius: var(--auth-radius-md);
  padding: 5px 7px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 8px 20px rgba(5, 13, 33, 0.24);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.watobe-logo {
  width: 148px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
}

.brand-fallback {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #f0f8ff;
}

.auth-layout,
.signup-layout {
  gap: 20px;
  flex-direction: column;
  align-items: stretch;
}

.glass-panel {
  border-radius: var(--auth-radius-2xl);
  border: 1px solid var(--auth-panel-border);
  background: var(--auth-panel-bg);
  box-shadow: var(--auth-panel-shadow);
  -webkit-backdrop-filter: blur(var(--auth-glass-blur));
  backdrop-filter: blur(var(--auth-glass-blur));
}

.hero-panel,
.signup-card,
.auth-card,
.verification-card,
.success-card,
.signup-success-card {
  padding: 22px;
}

.hero-panel {
  position: relative;
  overflow: hidden;
}

.hero-panel::after {
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  right: -80px;
  top: 12px;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 50%, rgba(132, 184, 255, 0.32), rgba(132, 184, 255, 0));
  pointer-events: none;
}

.hero-eyebrow,
.panel-eyebrow,
.required-badge,
.optional-badge,
.mock-badge,
.verification-badge,
.success-badge,
.mock-chip,
.muted-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 12px;
  border-radius: var(--auth-radius-pill);
  border: 1px solid rgba(153, 233, 255, 0.34);
  background: rgba(53, 173, 230, 0.16);
  color: #e9faff;
  font-size: var(--auth-font-xs);
  letter-spacing: 0.04em;
}

.muted-chip {
  min-height: 34px;
  border-color: rgba(179, 206, 236, 0.18);
  background: rgba(9, 20, 38, 0.28);
  color: var(--auth-text-secondary);
  font-size: var(--auth-font-sm);
  letter-spacing: 0;
}

.hero-title,
.signup-title,
.auth-title,
.verification-title,
.success-title {
  margin: 14px 0 0;
  font-size: clamp(1.85rem, 3vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero-copy,
.signup-subtitle,
.auth-copy,
.verification-copy,
.success-copy,
.helper,
.field-help,
.field-error,
.form-error,
.form-message,
.social-message,
.verification-message,
.terms-note,
.avatar-message {
  margin: 14px 0 0;
  color: var(--auth-text-secondary);
  line-height: 1.7;
  font-size: var(--auth-font-lg);
}

.helper,
.terms-note,
.hero-copy.auth-copy-muted,
.hero-copy,
.auth-copy {
  color: var(--auth-text-muted);
}

.hero-points {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  gap: 12px;
  flex-direction: column;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 18px;
  border: 1px solid rgba(179, 206, 236, 0.18);
  background: rgba(12, 27, 52, 0.3);
  box-shadow: var(--auth-surface-shadow);
  padding: 14px 16px;
  color: var(--auth-text-secondary);
}

.hero-points li::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--auth-accent-blue), var(--auth-accent-cyan));
  box-shadow: 0 0 18px rgba(134, 231, 255, 0.4);
  flex-shrink: 0;
}

.hero-visual {
  margin-top: 20px;
  min-height: 180px;
  border-radius: 22px;
  border: 1px solid rgba(179, 206, 236, 0.18);
  background: radial-gradient(circle at 18% 22%, rgba(131, 178, 255, 0.34), transparent 34%), radial-gradient(circle at 68% 18%, rgba(133, 233, 255, 0.2), transparent 30%), linear-gradient(145deg, rgba(16, 36, 71, 0.72), rgba(12, 21, 41, 0.4));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 18px 40px rgba(3, 9, 26, 0.16);
  position: relative;
  overflow: hidden;
}

.hero-orbit,
.hero-orbit::before,
.hero-orbit::after {
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(184, 225, 255, 0.2);
  content: '';
}

.hero-orbit { inset: 24px; }
.hero-orbit::before { inset: 18% 12%; }
.hero-orbit::after { inset: 33% 22%; }

.hero-core {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 30% 30%, rgba(246, 251, 255, 0.92), rgba(132, 184, 255, 0.62) 35%, rgba(90, 112, 255, 0.12) 78%, rgba(90, 112, 255, 0));
  box-shadow: 0 0 48px rgba(120, 162, 255, 0.3);
}

.signup-card::before,
.auth-card::before,
.verification-card::before,
.success-card::before,
.signup-success-card::before {
  content: '';
  display: block;
  height: 1px;
  margin: -22px -22px 22px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.04));
}

.step-shell {
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  margin-bottom: 20px;
}

.step-indicator,
.step-dot-row {
  align-items: center;
  gap: 8px;
}

.step-dot {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  border: 1px solid rgba(184, 221, 255, 0.2);
  background: rgba(8, 18, 36, 0.34);
  color: var(--auth-text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  transition: transform var(--auth-duration-fast) ease, border-color var(--auth-duration-fast) ease, background-color var(--auth-duration-fast) ease, color var(--auth-duration-fast) ease;
}

.step-dot[data-active='true'],
.step-dot[data-completed='true'] {
  border-color: rgba(149, 235, 255, 0.58);
  background: linear-gradient(180deg, rgba(99, 147, 206, 0.42), rgba(158, 209, 221, 0.3));
  color: #f4fbff;
  transform: translateY(-1px);
}

.step-divider {
  width: 20px;
  height: 1px;
  background: rgba(152, 187, 220, 0.34);
}

.step-copy {
  text-align: right;
}

.step-copy h2 {
  margin: 0;
  font-size: var(--auth-font-xl);
  line-height: 1.2;
}

.step-copy p {
  margin: 8px 0 0;
  color: var(--auth-text-muted);
  font-size: var(--auth-font-md);
  line-height: 1.6;
}

.field-grid {
  gap: 14px;
  flex-direction: column;
}

.field-grid.two-col {
  flex-direction: column;
}

.field {
  flex-direction: column;
  gap: 8px;
}

.field-head,
.checkbox-row,
.panel-actions,
.toggle-row {
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.field label,
.field legend {
  font-size: var(--auth-font-md);
  color: var(--auth-text-primary);
}

.field legend { padding: 0; }

.field-input,
.field-select,
.field-textarea {
  width: 100%;
  min-height: 54px;
  border-radius: var(--auth-radius-lg);
  border: 1px solid var(--auth-surface-border);
  background: rgba(9, 20, 38, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 -16px 28px rgba(6, 14, 29, 0.16);
  color: var(--auth-text-primary);
  padding: 0 16px;
  font-size: var(--auth-font-lg);
  transition: border-color var(--auth-duration-fast) ease, box-shadow var(--auth-duration-fast) ease, background-color var(--auth-duration-fast) ease;
  outline: none;
}

.field-select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, rgba(228, 245, 255, 0.9) 50%), linear-gradient(135deg, rgba(228, 245, 255, 0.9) 50%, transparent 50%);
  background-position: calc(100% - 22px) calc(50% - 3px), calc(100% - 16px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 42px;
}

.field-input::placeholder,
.field-textarea::placeholder {
  color: rgba(191, 208, 227, 0.58);
}

.field-input:focus,
.field-select:focus,
.field-textarea:focus {
  border-color: rgba(148, 226, 255, 0.86);
  box-shadow: 0 0 0 4px var(--auth-focus-ring), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  background: rgba(13, 28, 52, 0.58);
}

.field-input[aria-invalid='true'],
.field-select[aria-invalid='true'] {
  border-color: rgba(239, 184, 219, 0.48);
  box-shadow: 0 0 0 3px rgba(244, 201, 223, 0.12);
}

.password-wrap {
  position: relative;
}

.field-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 54px;
  min-width: 54px;
  height: 36px;
  padding: 0;
  border-radius: var(--auth-radius-sm);
  border: 1px solid rgba(180, 209, 234, 0.2);
  background: rgba(16, 34, 62, 0.52);
  color: var(--auth-text-secondary);
  font-size: var(--auth-font-xs);
  line-height: 1;
}

.field-toggle .field-toggle-icon {
  display: block;
  margin: 0;
  line-height: 1;
  pointer-events: none;
}

.field-help,
.terms-note {
  color: var(--auth-text-muted);
}

.field-help[data-state='success'] {
  color: var(--auth-success-soft);
}

.field-help[data-state='warning'],
.field-error,
.form-error,
.form-message,
.social-message,
.verification-message,
.avatar-message[data-state='warning'] {
  color: var(--auth-warning-soft);
}

.field-error[hidden],
.form-error[hidden],
.form-message[hidden],
.social-message[hidden],
.verification-message[hidden] {
  display: none;
}

.avatar-shell {
  gap: 16px;
  flex-direction: column;
}

.avatar-preview-card,
.avatar-option-card,
.toggle-card,
.terms-card,
.notice-card {
  border-radius: var(--auth-radius-xl);
  border: 1px solid var(--auth-surface-border);
  background: rgba(13, 28, 52, 0.34);
  box-shadow: var(--auth-surface-shadow);
}

.avatar-preview-card {
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.avatar-preview {
  position: relative;
  width: 124px;
  height: 124px;
  border-radius: 50%;
  padding: 6px;
  background: linear-gradient(145deg, rgba(105, 167, 255, 0.82), rgba(141, 228, 255, 0.8), rgba(168, 164, 255, 0.68));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14) inset, 0 0 28px rgba(109, 153, 255, 0.22);
}

.avatar-preview::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: conic-gradient(from 180deg, rgba(141, 228, 255, 0), rgba(141, 228, 255, 0.4), rgba(168, 164, 255, 0), rgba(141, 228, 255, 0));
  opacity: 0;
  transition: opacity var(--auth-duration-base) ease;
}

.avatar-preview.is-uploaded::after {
  animation: avatar-flash 760ms ease;
}

.avatar-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 50%;
  background: rgba(11, 25, 46, 0.48);
}

@keyframes avatar-flash {
  0% { opacity: 0; transform: scale(0.96); }
  28% { opacity: 0.9; transform: scale(1.03); }
  100% { opacity: 0; transform: scale(1.08); }
}

.avatar-actions {
  width: 100%;
  gap: 10px;
  flex-wrap: wrap;
}

.avatar-upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.avatar-option-card,
.toggle-card,
.terms-card {
  padding: 16px;
}

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

.avatar-choice {
  border: 1px solid rgba(179, 206, 236, 0.18);
  background: rgba(9, 20, 38, 0.28);
  border-radius: var(--auth-radius-lg);
  padding: 10px;
  color: var(--auth-text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  transition: border-color var(--auth-duration-fast) ease, background-color var(--auth-duration-fast) ease, transform var(--auth-duration-fast) ease;
}

.avatar-choice[aria-pressed='true'] {
  border-color: rgba(149, 235, 255, 0.58);
  background: rgba(34, 72, 114, 0.36);
  color: #f3fbff;
  transform: translateY(-1px);
}

.avatar-choice-swatch {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 8px 16px rgba(5, 13, 33, 0.18);
}

.avatar-choice-swatch img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.avatar-choice-label {
  font-size: var(--auth-font-sm);
  line-height: 1.45;
}

.toggle-copy,
.checkbox-copy {
  flex: 1;
}

.switch {
  position: relative;
  width: 54px;
  height: 32px;
  flex-shrink: 0;
}

.switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 2;
  margin: 0;
  cursor: pointer;
}

.switch-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 1px solid rgba(176, 204, 236, 0.24);
  background: rgba(12, 23, 44, 0.6);
  transition: background-color var(--auth-duration-fast) ease, border-color var(--auth-duration-fast) ease;
}

.switch-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(180deg, #f4fbff, #d7e8ff);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
  transition: transform var(--auth-duration-fast) ease;
}

.switch input:checked + .switch-track {
  border-color: rgba(153, 233, 255, 0.68);
  background: linear-gradient(180deg, rgba(99, 147, 206, 0.62), rgba(158, 209, 221, 0.58));
}

.switch input:checked + .switch-track .switch-thumb {
  transform: translateX(22px);
}

.checkbox-row {
  align-items: flex-start;
}

.checkbox-input {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  border-radius: 7px;
  accent-color: #78d6ff;
  flex-shrink: 0;
}

.checkbox-copy,
.checkbox-row label {
  color: var(--auth-text-secondary);
}

.checkbox-copy a,
.forgot-link,
.inline-link {
  color: #e9f7ff;
  text-decoration: none;
  border-bottom: 1px solid rgba(153, 233, 255, 0.4);
}

.form-actions {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.action-row {
  display: flex;
  gap: 10px;
  flex-direction: column-reverse;
}

.button-primary,
.button-secondary,
.button-ghost,
.avatar-upload-button,
.provider-button {
  min-height: 52px;
  border-radius: var(--auth-radius-lg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: var(--auth-font-lg);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--auth-duration-fast) ease, border-color var(--auth-duration-fast) ease, box-shadow var(--auth-duration-fast) ease, filter var(--auth-duration-fast) ease, background-color var(--auth-duration-fast) ease;
}

.button-primary,
.avatar-upload-button {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #6393ce 0%, #9ed1dd 100%);
  color: #fff;
  border: 1px solid rgba(134, 231, 255, 0.55);
  box-shadow: var(--auth-shadow-button);
}

.button-primary:hover,
.button-primary:focus-visible,
.avatar-upload-button:hover,
.avatar-upload-button:focus-visible {
  filter: brightness(1.04);
  border-color: rgba(154, 236, 255, 0.78);
  box-shadow: var(--auth-shadow-button-hover);
  transform: translateY(-2px);
  outline: none;
}

.button-primary:active,
.button-secondary:active,
.button-ghost:active,
.avatar-upload-button:active,
.provider-button:active {
  transform: translateY(1px);
}

.button-secondary,
.button-ghost,
.provider-button,
.header-link,
.language-toolbar button {
  border: 1px solid rgba(140, 163, 190, 0.36);
  background: rgba(13, 28, 52, 0.34);
  color: var(--auth-text-secondary);
}

.button-secondary:hover,
.button-secondary:focus-visible,
.button-ghost:hover,
.button-ghost:focus-visible,
.provider-button:hover,
.provider-button:focus-visible,
.header-link:hover,
.header-link:focus-visible,
.language-toolbar button:hover,
.language-toolbar button:focus-visible {
  border-color: rgba(152, 226, 250, 0.56);
  background: rgba(25, 52, 88, 0.34);
  color: var(--auth-text-primary);
  outline: none;
  transform: translateY(-1px);
}

.button-primary[disabled],
.button-secondary[disabled],
.provider-button[disabled] {
  opacity: 0.55;
  pointer-events: none;
}

.button-primary[data-loading='true'] {
  filter: saturate(0.88);
}

.button-primary,
.provider-button {
  width: 100%;
}

.social-buttons {
  margin-top: 14px;
  gap: 10px;
  flex-direction: column;
}

.divider {
  margin: 18px 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  color: var(--auth-text-muted);
}

.divider::before,
.divider::after {
  content: '';
  height: 1px;
  background: rgba(170, 196, 223, 0.24);
}

.masked-email {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  margin-top: 14px;
  border: 1px solid rgba(179, 206, 236, 0.18);
  background: rgba(9, 20, 38, 0.28);
}

.verification-actions,
.success-meta {
  margin-top: 20px;
  gap: 12px;
  flex-direction: column;
}

.auth-center-head {
  justify-content: center;
}

.auth-copy-compact {
  margin-top: 10px;
  font-size: var(--auth-font-md);
}

.auth-span-full {
  grid-column: 1 / -1;
}

.auth-heading-reset {
  margin: 0;
  font-size: var(--auth-font-lg);
}

/* Reset password page: single centered card, compact header controls. */
.auth-reset-page .auth-shell {
  width: min(920px, 100%);
}

.auth-reset-layout {
  display: block;
  width: min(600px, 100%);
  margin: 0 auto;
  margin-top: 32px;
}

.auth-reset-layout > .auth-card,
.auth-reset-layout > .success-card {
  width: 100%;
  margin: 0 auto;
}

.auth-forgot-page .login-auth-layout {
  display: block;
  max-width: 460px;
  margin: 32px auto 0;
}

.auth-forgot-page .login-form-card,
.auth-forgot-page .verification-card {
  max-width: 460px;
  margin: 0 auto;
}

.auth-forgot-page .login-auth-layout,
.auth-forgot-page .login-form-card,
.auth-forgot-page .verification-card {
  width: 100%;
}

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

.auth-forgot-page .login-form-card {
  overflow: hidden;
}

.auth-forgot-page .login-form-card::before {
  content: none;
}

.auth-forgot-page .auth-card::before,
.auth-forgot-page .verification-card::before {
  margin-bottom: 20px;
}

.auth-forgot-page .auth-title {
  margin-top: 0;
  font-size: clamp(1.8rem, 4vw, 2.45rem);
  line-height: 1.08;
  white-space: nowrap;
}

.auth-forgot-page .auth-copy {
  margin-top: 8px;
  line-height: 1.38;
  letter-spacing: 0.02em;
}

.auth-forgot-page .field,
.auth-forgot-page .password-wrap,
.auth-forgot-page .field-input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.auth-forgot-page .field-input {
  text-overflow: clip;
}

.auth-forgot-page .field-input::placeholder {
  text-overflow: ellipsis;
}

.auth-forgot-page .button-primary,
.auth-forgot-page .auth-button-link {
  width: 100%;
}

.auth-reset-page .header-actions,
.auth-forgot-page .header-actions {
  align-items: center;
  min-height: 44px;
  flex-wrap: nowrap;
  gap: 10px;
}

.auth-reset-page .language-toolbar .lang-group,
.auth-forgot-page .language-toolbar .lang-group {
  border: 0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-radius: 0;
  padding: 0;
  gap: 0;
}

.auth-reset-page .language-toolbar button,
.auth-forgot-page .language-toolbar button {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-radius: 0;
  color: rgba(241, 247, 255, 0.82);
  opacity: 0.82;
  transform: none;
  transition: color var(--auth-duration-fast) ease, opacity var(--auth-duration-fast) ease, text-decoration-color var(--auth-duration-fast) ease;
}

.auth-forgot-page .language-toolbar .lang-group {
  align-items: center;
}

.auth-forgot-page .language-toolbar button {
  font-size: 13px;
  letter-spacing: 0.01em;
}

.auth-forgot-page .login-language-toggle {
  gap: 0;
}

.auth-forgot-page .login-language-separator {
  margin: 0 6px;
}

.auth-reset-page .language-toolbar button[data-selected='true'],
.auth-reset-page .language-toolbar button.text-brand-200,
.auth-forgot-page .language-toolbar button[data-selected='true'],
.auth-forgot-page .language-toolbar button.text-brand-200 {
  color: #f6fcff;
  font-weight: 700;
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.auth-reset-page .language-toolbar button:hover,
.auth-reset-page .language-toolbar button:focus-visible,
.auth-forgot-page .language-toolbar button:hover,
.auth-forgot-page .language-toolbar button:focus-visible {
  color: #f6fcff;
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
  outline: none;
}

.auth-reset-page .language-toolbar button[data-selected='true']:hover,
.auth-reset-page .language-toolbar button[data-selected='true']:focus-visible,
.auth-reset-page .language-toolbar button.text-brand-200:hover,
.auth-reset-page .language-toolbar button.text-brand-200:focus-visible,
.auth-forgot-page .language-toolbar button[data-selected='true']:hover,
.auth-forgot-page .language-toolbar button[data-selected='true']:focus-visible,
.auth-forgot-page .language-toolbar button.text-brand-200:hover,
.auth-forgot-page .language-toolbar button.text-brand-200:focus-visible {
  border-color: rgba(153, 233, 255, 0.84);
  background: linear-gradient(180deg, rgba(99, 147, 206, 0.5), rgba(158, 209, 221, 0.42));
}

.auth-reset-page .header-link,
.auth-forgot-page .header-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 12px;
  margin: 0;
  border: 1px solid rgba(196, 223, 249, 0.28);
  background: rgba(214, 230, 246, 0.15);
  border-radius: var(--auth-radius-md);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 8px 20px rgba(5, 13, 33, 0.24);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #f1f7ff;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
  transform: none;
  transition: border-color var(--auth-duration-fast) ease, background-color var(--auth-duration-fast) ease, color var(--auth-duration-fast) ease;
}

.auth-forgot-page .auth-card::before {
  content: none;
}

.auth-forgot-page .panel-eyebrow {
  display: none;
}

.auth-reset-page .header-link:hover,
.auth-reset-page .header-link:focus-visible,
.auth-forgot-page .header-link:hover,
.auth-forgot-page .header-link:focus-visible {
  border-color: rgba(152, 226, 250, 0.56);
  background: rgba(25, 52, 88, 0.34);
  color: #f6fcff;
  outline: none;
  transform: none;
}

.auth-reset-page .auth-card::before,
.auth-reset-page .success-card::before {
  content: none;
}

.auth-reset-page #reset-password-invalid-card .success-title {
  font-size: clamp(2rem, 2.2vw, 2.5rem);
}

.auth-reset-page #reset-password-invalid-card .auth-button-link {
  width: 100%;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .auth-reset-page .auth-reset-layout {
    width: min(500px, 100%);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 700px) {
  .auth-reset-layout {
    margin-top: 20px;
  }

  .auth-forgot-page .auth-layout.auth-layout--narrow {
    margin-top: 20px;
  }

  .auth-reset-page .page-header,
  .auth-forgot-page .page-header {
    gap: 12px;
    flex-wrap: wrap;
  }

  .auth-reset-page .watobe-logo,
  .auth-forgot-page .watobe-logo {
    width: 126px;
  }

  .auth-reset-page .header-actions,
  .auth-forgot-page .header-actions {
    width: 100%;
    justify-content: flex-end;
    margin-left: 0;
    flex-wrap: wrap;
    gap: 6px;
  }

  .auth-forgot-page .page-header {
    flex-wrap: nowrap;
    align-items: center;
  }

  .auth-forgot-page .header-actions {
    width: auto;
    flex-wrap: nowrap;
  }

  .auth-forgot-page .header-link {
    min-width: 0;
  }

  .auth-reset-page .language-toolbar button,
  .auth-forgot-page .language-toolbar button {
    min-height: 40px;
    padding: 0;
    font-size: 12px;
  }

  .auth-reset-page .header-link,
  .auth-forgot-page .header-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 10px;
    font-size: 12px;
    line-height: 1;
  }
}

.auth-stack-top-14 {
  margin-top: 14px;
}

.auth-note-tight {
  margin: 6px 0 0;
}

.auth-text-reset {
  margin: 0;
}

.auth-error-top-8 {
  margin-top: 8px;
}

.auth-field-top-18 {
  margin-top: 18px;
}

.auth-field-top-14 {
  margin-top: 14px;
}

.auth-actions-top-16 {
  margin-top: 16px;
}

.auth-checkbox-inline {
  margin: 0;
  gap: 8px;
  justify-content: flex-start;
}

.auth-button-top-18 {
  margin-top: 18px;
}

.auth-button-link {
  display: inline-flex;
  text-decoration: none;
  align-items: center;
  justify-content: center;
}

.auth-login-page .auth-shell {
  padding-top: 16px;
}

.auth-login-page .page-header {
  align-items: flex-start;
  margin-bottom: 14px;
  padding: 4px 6px 0;
}

.auth-login-page .header-actions {
  gap: 0;
}

.auth-login-page .language-toolbar,
.auth-login-page .language-toolbar .lang-group {
  display: inline-flex;
  align-items: center;
}

.auth-login-page .language-toolbar .lang-group {
  gap: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.auth-login-page .language-toolbar button {
  min-height: auto;
  padding: 0;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0;
  color: #f1f7ff !important;
  opacity: 0.52;
  transform: none !important;
  transition: opacity var(--auth-duration-fast) ease, color var(--auth-duration-fast) ease;
}

.auth-login-page .language-toolbar button[data-selected='true'],
.auth-login-page .language-toolbar button.text-brand-200 {
  opacity: 1 !important;
}

.auth-login-page .language-toolbar button:hover,
.auth-login-page .language-toolbar button:focus-visible {
  opacity: 0.82;
  outline: none;
}

.auth-login-page .language-toolbar button[data-selected='true']:hover,
.auth-login-page .language-toolbar button[data-selected='true']:focus-visible,
.auth-login-page .language-toolbar button.text-brand-200:hover,
.auth-login-page .language-toolbar button.text-brand-200:focus-visible {
  opacity: 1 !important;
}

.login-language-separator {
  margin: 0 8px;
  color: rgba(230, 242, 253, 0.62);
}

.login-auth-layout {
  display: block;
  max-width: 480px;
  margin: 0 auto;
}

.login-form-card,
.auth-login-page .verification-card {
  max-width: 480px;
  margin: 0 auto;
}

.auth-login-page .login-form-card,
.auth-login-page .verification-card,
.auth-login-page .login-auth-layout {
  width: 100%;
}

.auth-login-page .field,
.auth-login-page .password-wrap,
.auth-login-page .field-input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.auth-login-page .field-input {
  text-overflow: clip;
}

.auth-login-page .password-wrap .field-input {
  padding-right: 78px;
}

.auth-login-page .login-form-card {
  overflow: hidden;
}

.auth-login-page .login-form-card::before {
  content: none;
}

.auth-login-page .auth-card::before,
.auth-login-page .verification-card::before {
  margin-bottom: 20px;
}

.auth-login-page .auth-title {
  margin-top: 0;
  font-size: clamp(1.8rem, 4vw, 2.45rem);
}

.auth-login-page .auth-copy {
  margin-top: 8px;
  line-height: 1.38;
  letter-spacing: 0.02em;
}

.login-field-first {
  margin-top: 14px;
}

.login-support-block {
  margin-top: 14px;
}

.login-remember-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.login-link-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.login-inline-link {
  color: rgba(223, 245, 255, 0.9);
  border-bottom: 1px solid transparent;
  transition: color var(--auth-duration-fast) ease, border-color var(--auth-duration-fast) ease;
}

.login-inline-link:hover,
.login-inline-link:focus-visible {
  color: #f5fbff;
  border-bottom-color: rgba(223, 245, 255, 0.72);
  outline: none;
}

.login-link-separator {
  color: rgba(191, 208, 227, 0.7);
}

.auth-login-page #login-submit-button {
  margin-top: 30px;
}

.login-divider {
  margin: 14px 0 12px;
}

.login-provider-button {
  justify-content: flex-start;
  gap: 12px;
  padding: 0 16px;
  min-height: 50px;
  color: rgba(230, 242, 253, 0.9);
  background: rgba(10, 20, 38, 0.22);
  border-color: rgba(166, 188, 214, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.login-provider-button:hover,
.login-provider-button:focus-visible {
  background: rgba(16, 31, 54, 0.34);
  border-color: rgba(174, 199, 226, 0.34);
}

.provider-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.provider-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.provider-icon-apple {
  color: rgba(244, 248, 255, 0.92);
}

.auth-login-page .social-message {
  margin-top: 10px;
}

.signup-page-bg .header-actions {
  gap: 10px;
}

.signup-page-bg .page-header {
  align-items: flex-start;
  justify-content: space-between;
  flex-direction: row;
  flex-wrap: nowrap;
}

.signup-page-bg .page-header-brand {
  flex: 0 0 auto;
}

.signup-page-bg .header-actions {
  flex: 0 0 auto;
  width: auto;
  justify-content: flex-end;
  margin-left: auto;
  flex-wrap: nowrap;
  align-items: center;
}

.signup-page-bg .language-toolbar,
.signup-page-bg .language-toolbar .lang-group {
  display: inline-flex;
  align-items: center;
}

.signup-page-bg .language-toolbar .lang-group {
  gap: 0;
  border: 1px solid rgba(196, 223, 249, 0.28);
  background: rgba(214, 230, 246, 0.15);
  border-radius: var(--auth-radius-md);
  padding: 4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 8px 20px rgba(5, 13, 33, 0.24);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  white-space: nowrap;
  overflow: hidden;
}

.signup-page-bg .signup-header-link {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(196, 223, 249, 0.28);
  background: rgba(214, 230, 246, 0.15);
  border-radius: var(--auth-radius-md);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 8px 20px rgba(5, 13, 33, 0.24);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #f1f7ff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.signup-page-bg .signup-header-link:hover,
.signup-page-bg .signup-header-link:focus-visible {
  border-color: rgba(152, 226, 250, 0.56);
  background: rgba(25, 52, 88, 0.34);
  color: #f6fcff;
  outline: none;
  transform: none;
}

.signup-page-bg .language-toolbar button {
  min-height: 32px;
  padding: 0 12px;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 9px;
  color: #f1f7ff !important;
  opacity: 0.76;
  transform: none !important;
  transition: opacity var(--auth-duration-fast) ease, color var(--auth-duration-fast) ease, background-color var(--auth-duration-fast) ease;
}

.signup-page-bg .language-toolbar button + button {
  margin-left: 2px;
  border-left: 1px solid rgba(198, 224, 248, 0.3) !important;
}

.signup-page-bg .language-toolbar button[data-selected='true'],
.signup-page-bg .language-toolbar button.text-brand-200 {
  opacity: 1 !important;
  color: #f6fcff !important;
  background: linear-gradient(180deg, rgba(99, 147, 206, 0.5), rgba(158, 209, 221, 0.42)) !important;
}

.signup-page-bg .language-toolbar button:hover,
.signup-page-bg .language-toolbar button:focus-visible {
  opacity: 0.96;
  background: rgba(25, 52, 88, 0.32) !important;
  outline: none;
}

.signup-page-bg .language-toolbar button[data-selected='true']:hover,
.signup-page-bg .language-toolbar button[data-selected='true']:focus-visible,
.signup-page-bg .language-toolbar button.text-brand-200:hover,
.signup-page-bg .language-toolbar button.text-brand-200:focus-visible {
  opacity: 1 !important;
}

.signup-page-bg .signup-layout {
  width: min(600px, 100%);
  margin: 0 auto;
}

.signup-page-bg .signup-card,
.signup-page-bg .signup-success-card {
  width: min(600px, 100%);
  margin: 0 auto;
}

.signup-page-bg .signup-title {
  margin-top: 0;
  font-size: clamp(2rem, 2.2vw, 2.5rem);
}

.signup-page-bg .step-shell {
  margin-bottom: 18px;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.signup-page-bg .step-space {
  height: 32px;
}

.signup-page-bg .step-copy h2 {
  margin-top: 0;
}

.signup-page-bg .step-copy {
  width: 100%;
  text-align: left;
}

.signup-page-bg .avatar-shell {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.signup-page-bg .signup-avatar-card {
  padding: 16px 16px 14px;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.signup-page-bg .signup-avatar-stage {
  width: 100%;
  display: flex;
  justify-content: center;
}

.signup-page-bg .signup-avatar-preview {
  width: 128px;
  height: 128px;
  padding: 6px;
}

.signup-page-bg .avatar-plus-button {
  position: absolute;
  right: -4px;
  bottom: -4px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(174, 199, 226, 0.4);
  background: linear-gradient(180deg, rgba(91, 124, 255, 0.88), rgba(98, 170, 255, 0.76));
  color: #f5fbff;
  box-shadow: 0 10px 22px rgba(27, 74, 145, 0.3), 0 0 0 1px rgba(211, 236, 255, 0.14) inset;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: transform var(--auth-duration-fast) ease, filter var(--auth-duration-fast) ease, box-shadow var(--auth-duration-fast) ease, border-color var(--auth-duration-fast) ease;
}

.signup-page-bg .avatar-plus-button:hover,
.signup-page-bg .avatar-plus-button:focus-visible {
  filter: brightness(1.06);
  border-color: rgba(205, 237, 255, 0.72);
  box-shadow: 0 14px 26px rgba(27, 74, 145, 0.36), 0 0 0 1px rgba(211, 236, 255, 0.18) inset;
  transform: translateY(-1px);
  outline: none;
}

.signup-page-bg .avatar-plus-button:active {
  transform: translateY(1px) scale(0.98);
}

.signup-page-bg .signup-avatar-caption {
  margin: 0;
  color: var(--auth-text-secondary);
  font-size: var(--auth-font-sm);
  letter-spacing: 0.01em;
}

.signup-page-bg .avatar-sheet[hidden] {
  display: none;
}

.signup-page-bg .avatar-sheet {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
}

.signup-page-bg .avatar-sheet-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(2, 8, 20, 0.58);
  backdrop-filter: blur(4px);
}

.signup-page-bg .avatar-sheet-panel {
  position: relative;
  width: min(420px, 100%);
  border-radius: 24px 24px 20px 20px;
  border: 1px solid rgba(172, 213, 255, 0.28);
  background: rgba(10, 20, 38, 0.88);
  box-shadow: 0 22px 52px rgba(3, 9, 26, 0.5);
  padding: 12px 16px 16px;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.signup-page-bg .avatar-sheet-handle {
  width: 42px;
  height: 4px;
  border-radius: 999px;
  margin: 0 auto 12px;
  background: rgba(191, 208, 227, 0.36);
}

.signup-page-bg .avatar-sheet-title {
  margin: 0 0 14px;
  font-size: 1.02rem;
  line-height: 1.3;
}

.signup-page-bg .avatar-sheet-actions {
  display: grid;
  gap: 10px;
}

.signup-page-bg .avatar-sheet-button {
  width: 100%;
}

.signup-page-bg .avatar-sheet-message {
  margin: 12px 0 0;
  color: var(--auth-warning-soft);
  font-size: var(--auth-font-sm);
  line-height: 1.45;
  text-align: center;
}

.signup-page-bg .avatar-sheet-note {
  margin: 14px 0 0;
  color: var(--auth-text-muted);
  font-size: var(--auth-font-sm);
  line-height: 1.55;
  text-align: center;
}

.signup-page-bg .field-error[hidden] {
  display: block;
  visibility: hidden;
  min-height: 1.2em;
}

.signup-page-bg .field-error:not([hidden]) {
  visibility: visible;
}

.signup-page-bg .field-error {
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.35;
}

.signup-page-bg .field-error:not([hidden]) {
  margin-bottom: 12px;
}

.signup-page-bg .action-row {
  margin-top: 16px;
}

.signup-page-bg .form-actions {
  margin-top: 0;
}

.signup-page-bg #signup-next-button {
  margin-top: 0;
}

.signup-page-bg .signup-card {
  overflow: hidden;
}

.signup-page-bg .panel-eyebrow,
.signup-page-bg .hero-panel {
  display: none;
}

@media (max-width: 767px) {
  .signup-page-bg .signup-shell {
    padding-top: 20px;
  }

  .signup-page-bg .page-header {
    align-items: flex-start;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    row-gap: 10px;
  }

  .signup-page-bg .page-header-brand {
    align-self: flex-start;
  }

  .signup-page-bg .header-actions {
    width: 100%;
    justify-content: flex-end;
    margin-left: 0;
    flex-shrink: 0;
    flex-wrap: wrap;
    gap: 8px;
  }

  .signup-page-bg .watobe-logo {
    width: 132px;
  }

  .signup-page-bg .signup-card {
    padding: 20px;
  }

  .signup-page-bg .signup-layout,
  .signup-page-bg .signup-card,
  .signup-page-bg .signup-success-card {
    width: 100%;
  }

  .signup-page-bg .signup-card::before {
    margin: -20px -20px 18px;
  }

  .signup-page-bg .step-shell {
    margin-bottom: 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .signup-page-bg .step-space {
    height: 32px;
  }

  .signup-page-bg .action-row {
    margin-top: 12px;
  }

  .signup-page-bg .form-actions {
    margin-top: 6px;
  }

  .signup-page-bg .language-toolbar button {
    min-height: 30px;
    padding: 0 10px;
  }

  .signup-page-bg .signup-header-link {
    min-height: 40px;
    padding: 0 12px;
    font-size: 12px;
  }

  .signup-page-bg .signup-avatar-card {
    padding: 14px 14px 12px;
  }

  .signup-page-bg .signup-avatar-preview {
    width: 124px;
    height: 124px;
  }

  .signup-page-bg .avatar-plus-button {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }

  .signup-page-bg .avatar-sheet {
    padding: 12px;
  }

  .signup-page-bg .avatar-sheet-panel {
    width: 100%;
  }

  .auth-login-page .auth-shell {
    padding-top: 20px;
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 24px;
  }

  .auth-login-page .login-auth-layout,
  .auth-login-page .login-form-card,
  .auth-login-page .verification-card {
    max-width: 420px;
  }

  .auth-login-page .page-header {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 40px;
    padding: 6px 0 0;
  }

  .auth-login-page .header-actions {
    width: auto;
    min-width: 0;
    margin-left: auto;
    justify-content: flex-end;
  }

  .auth-login-page .watobe-logo {
    width: 124px;
  }

  .auth-login-page .language-toolbar,
  .auth-login-page .language-toolbar .lang-group {
    min-width: 0;
    max-width: 100%;
  }

  .auth-login-page .login-language-toggle {
    white-space: nowrap;
  }

  .auth-login-page .auth-card {
    padding: 16px;
  }

  .auth-login-page .auth-card::before {
    margin: -16px -16px 18px;
  }

  .auth-login-page .auth-title {
    font-size: 1.9rem;
  }

  .auth-login-page .auth-copy {
    margin-top: 6px;
  }

  .login-field-first {
    margin-top: 12px;
  }

  .login-support-block {
    margin-top: 12px;
  }

  .login-link-row {
    margin-top: 30px;
  }

  .auth-login-page #login-submit-button {
    margin-top: 28px;
  }

  .login-divider {
    margin: 12px 0 10px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .auth-login-page .auth-shell {
    padding: 30px 24px 40px;
  }

  .auth-login-page .page-header {
    margin-bottom: 24px;
    padding: 4px 2px 0;
  }

  .auth-login-page .login-auth-layout,
  .auth-login-page .login-form-card,
  .auth-login-page .verification-card {
    max-width: 420px;
  }

  .auth-login-page .auth-card,
  .auth-login-page .verification-card {
    padding: 24px;
  }

  .auth-login-page .auth-card::before,
  .auth-login-page .verification-card::before {
    margin: -24px -24px 20px;
  }
}

@media (min-width: 1024px) {
  .auth-login-page .auth-shell {
    padding: 28px 28px 44px;
    max-width: 1200px;
  }

  .auth-login-page .page-header {
    margin-bottom: 28px;
    padding: 4px 8px 0;
  }

  .auth-login-page .login-auth-layout {
    display: block;
    max-width: 460px;
    margin: 0 auto;
  }

  .auth-login-page .login-form-card,
  .auth-login-page .verification-card {
    max-width: 460px;
  }

  .auth-login-page .auth-card,
  .auth-login-page .verification-card {
    padding: 28px;
  }

  .auth-login-page .auth-title {
    font-size: clamp(1.95rem, 2.3vw, 2.6rem);
  }

  .auth-login-page .field-input,
  .auth-login-page .button-primary,
  .auth-login-page .provider-button {
    min-height: 56px;
  }

  .auth-login-page .login-provider-button {
    min-height: 54px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .signup-page-bg .signup-layout,
  .signup-page-bg .signup-card,
  .signup-page-bg .signup-success-card {
    width: min(500px, 100%);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 900px) {
  .auth-shell,
  .signup-shell {
    padding: 24px 24px 40px;
  }

  .auth-layout,
  .signup-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 0.96fr);
    gap: 28px;
    align-items: start;
  }

  .auth-reset-page .auth-reset-layout {
    display: block;
    width: min(600px, 100%);
    max-width: 600px;
    margin: 34px auto 0;
  }

  .auth-reset-page .auth-reset-layout > .auth-card,
  .auth-reset-page .auth-reset-layout > .success-card {
    width: 100%;
    margin: 0 auto;
  }

  .signup-page-bg .signup-layout {
    display: block;
    width: min(600px, 100%);
    max-width: 600px;
    margin: 0 auto;
  }

  .auth-layout.auth-layout--narrow {
    grid-template-columns: minmax(0, 0.84fr) minmax(0, 0.96fr);
  }

  .hero-panel,
  .signup-card,
  .auth-card,
  .verification-card,
  .success-card,
  .signup-success-card {
    padding: 28px;
  }

  .signup-card::before,
  .auth-card::before,
  .verification-card::before,
  .success-card::before,
  .signup-success-card::before {
    margin: -28px -28px 28px;
  }

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

  .avatar-shell {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
  }

  .action-row {
    flex-direction: row;
    justify-content: space-between;
  }

  .action-row .button-primary {
    min-width: 220px;
    width: auto;
  }

  .action-row .button-secondary {
    min-width: 132px;
  }
}

@media (max-width: 767px) {
  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .auth-forgot-page .page-header {
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
  }

  .auth-forgot-page .header-actions {
    width: auto;
    justify-content: flex-end;
    flex-wrap: nowrap;
  }

  .step-shell {
    align-items: flex-start;
    flex-direction: column;
  }

  .step-copy {
    text-align: left;
  }

  .hero-title,
  .signup-title,
  .auth-title,
  .verification-title,
  .success-title {
    font-size: 1.9rem;
  }

  .avatar-option-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Shared auth spacing rhythm: header to main content block. */
.auth-page-bg .page-header,
.signup-page-bg .page-header {
  margin-bottom: 0;
}

.auth-page-bg .auth-layout,
.signup-page-bg .signup-layout {
  margin-top: 24px;
}

@media (min-width: 641px) and (max-width: 1024px) {
  .auth-page-bg .auth-layout,
  .signup-page-bg .signup-layout {
    margin-top: 32px;
  }
}

@media (min-width: 1025px) {
  .auth-page-bg .auth-layout,
  .signup-page-bg .signup-layout {
    margin-top: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}