html {
  --ac-bg: #f4f5f7;
  --ac-surface: #ffffff;
  --ac-surface-2: #f7f8fa;
  --ac-border: #e2e6ea;
  --ac-border-strong: #cfd6dc;
  --ac-text: #16212a;
  --ac-text-2: #5a6772;
  --ac-text-3: #8a96a0;
  --ac-ink: #2f7d74;
  --ac-ink-hover: #286b63;
  --ac-on-ink: #ffffff;
  --ac-accent: #2f7d74;
  --ac-accent-soft: #edf6f4;
  --ac-ring: rgba(47, 125, 116, .18);
  --ac-show-bg: #16232c;
  --ac-show-text: #eef2f5;
  --ac-show-text-2: #a9b6c0;
  --ac-show-card: rgba(255, 255, 255, .05);
  --ac-show-border: rgba(255, 255, 255, .09);
  --ac-show-accent: #9fcfc7;
  --ac-shadow: 0 1px 2px rgba(16, 24, 32, .04), 0 12px 32px rgba(16, 24, 32, .06);
}
html[data-theme="dark"] {
  --ac-bg: #0d1318;
  --ac-surface: #141c23;
  --ac-surface-2: #19232b;
  --ac-border: #26323c;
  --ac-border-strong: #33414c;
  --ac-text: #e7ecf0;
  --ac-text-2: #a3b0ba;
  --ac-text-3: #74828d;
  --ac-ink: #7cc0b6;
  --ac-ink-hover: #95cfc6;
  --ac-on-ink: #0d1318;
  --ac-accent: #7cc0b6;
  --ac-accent-soft: #1b2a2d;
  --ac-ring: rgba(124, 192, 182, .22);
  --ac-show-bg: #10181e;
  --ac-show-text: #e7ecf0;
  --ac-show-text-2: #93a1ab;
  --ac-show-card: rgba(255, 255, 255, .035);
  --ac-show-border: rgba(255, 255, 255, .07);
  --ac-show-accent: #9fcfc7;
  --ac-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px rgba(0, 0, 0, .35);
}

html body.auth-page:not(#_ac):not(#_ac2) { background: var(--ac-bg) !important; color: var(--ac-text) !important; }

html body.auth-page:not(#_ac):not(#_ac2) *,
html body.auth-page:not(#_ac):not(#_ac2) *::before,
html body.auth-page:not(#_ac):not(#_ac2) *::after { -webkit-text-fill-color: currentColor !important; }
html body.auth-page:not(#_ac):not(#_ac2) input::placeholder { -webkit-text-fill-color: var(--ac-text-3) !important; }

html body.auth-page:not(#_ac):not(#_ac2) .auth-header {
  background: var(--ac-surface) !important;
  border-bottom: 1px solid var(--ac-border) !important;
  box-shadow: none !important;
}
html body.auth-page:not(#_ac):not(#_ac2) .home-link {
  background: var(--ac-surface) !important;
  border: 1px solid var(--ac-border) !important;
  color: var(--ac-text) !important;
  box-shadow: none !important;
}
html body.auth-page:not(#_ac):not(#_ac2) .home-link:hover { background: var(--ac-surface-2) !important; }
html body.auth-page:not(#_ac):not(#_ac2) .home-link i { color: var(--ac-text-2) !important; }

html body.auth-page:not(#_ac):not(#_ac2) .auth-main { background: var(--ac-bg) !important; }
html body.auth-page:not(#_ac):not(#_ac2) .auth-layout {
  background: var(--ac-surface) !important;
  border: 1px solid var(--ac-border) !important;
  border-radius: 24px !important;
  box-shadow: var(--ac-shadow) !important;
  overflow: hidden;
}

html body.auth-page:not(#_ac):not(#_ac2) .auth-showcase {
  background: var(--ac-show-bg) !important;
  color: var(--ac-show-text) !important;
  border: 0 !important;
}
html body.auth-page:not(#_ac):not(#_ac2) .showcase-glow { display: none !important; }
html body.auth-page:not(#_ac):not(#_ac2) .showcase-badge {
  background: var(--ac-show-card) !important;
  border: 1px solid var(--ac-show-border) !important;
  color: var(--ac-show-text-2) !important;
}
html body.auth-page:not(#_ac):not(#_ac2) .showcase-badge i { color: var(--ac-show-accent) !important; }
html body.auth-page:not(#_ac):not(#_ac2) .showcase-content h1 { color: var(--ac-show-text) !important; }
html body.auth-page:not(#_ac):not(#_ac2) .showcase-content h1 span { color: var(--ac-show-accent) !important; }
html body.auth-page:not(#_ac):not(#_ac2) .showcase-content > p { color: var(--ac-show-text-2) !important; }
html body.auth-page:not(#_ac):not(#_ac2) .showcase-points > div {
  background: var(--ac-show-card) !important;
  border: 1px solid var(--ac-show-border) !important;
  box-shadow: none !important;
}
html body.auth-page:not(#_ac):not(#_ac2) .showcase-points > div > span {
  background: rgba(255, 255, 255, .06) !important;
  border: 1px solid var(--ac-show-border) !important;
  color: var(--ac-show-accent) !important;
}
html body.auth-page:not(#_ac):not(#_ac2) .showcase-points strong { color: var(--ac-show-text) !important; }
html body.auth-page:not(#_ac):not(#_ac2) .showcase-points small { color: var(--ac-show-text-2) !important; }

html body.auth-page:not(#_ac):not(#_ac2) .auth-panel { background: var(--ac-surface) !important; }
html body.auth-page:not(#_ac):not(#_ac2) .auth-card {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
html body.auth-page:not(#_ac):not(#_ac2) .auth-screen,
html body.auth-page:not(#_ac):not(#_ac2) .auth-screen.is-active {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--ac-text) !important;
}
html body.auth-page:not(#_ac):not(#_ac2) .auth-heading { color: var(--ac-text) !important; }
html body.auth-page:not(#_ac):not(#_ac2) .auth-heading h2 { color: var(--ac-text) !important; }
html body.auth-page:not(#_ac):not(#_ac2) .auth-heading p { color: var(--ac-text-2) !important; }
html body.auth-page:not(#_ac):not(#_ac2) .auth-heading__icon {
  background: var(--ac-surface-2) !important;
  border: 1px solid var(--ac-border) !important;
  color: var(--ac-text) !important;
}
html body.auth-page:not(#_ac):not(#_ac2) .field-group {
  background: transparent !important;
  border: 0 !important;
  color: var(--ac-text) !important;
}
html body.auth-page:not(#_ac):not(#_ac2) .field-group > label,
html body.auth-page:not(#_ac):not(#_ac2) .role-field-group > label { color: var(--ac-text-2) !important; }

html body.auth-page:not(#_ac):not(#_ac2) .field-control {
  background: var(--ac-surface) !important;
  border: 1px solid var(--ac-border-strong) !important;
  box-shadow: none !important;
  transition: border-color .15s ease, box-shadow .15s ease;
}
html body.auth-page:not(#_ac):not(#_ac2) .field-control:focus-within {
  border-color: var(--ac-accent) !important;
  box-shadow: 0 0 0 4px var(--ac-ring) !important;
}
html body.auth-page:not(#_ac):not(#_ac2) .field-control i { color: var(--ac-text-3) !important; background: transparent !important; }
html body.auth-page:not(#_ac):not(#_ac2) .field-control input {
  color: var(--ac-text) !important;
  background: transparent !important;
  border-color: var(--ac-border) !important;
}
html body.auth-page:not(#_ac):not(#_ac2) .field-control input::placeholder { color: var(--ac-text-3) !important; }

html body.auth-page:not(#_ac):not(#_ac2) .primary-action {
  background: var(--ac-ink) !important;
  color: var(--ac-on-ink) !important;
  border: 1px solid var(--ac-ink) !important;
  box-shadow: 0 1px 2px rgba(16, 24, 32, .12) !important;
}
html body.auth-page:not(#_ac):not(#_ac2) .primary-action:hover:not(:disabled) {
  background: var(--ac-ink-hover) !important;
  border-color: var(--ac-ink-hover) !important;
}
html body.auth-page:not(#_ac):not(#_ac2) .primary-action:focus-visible { box-shadow: 0 0 0 4px var(--ac-ring) !important; }
html body.auth-page:not(#_ac):not(#_ac2) .primary-action:disabled { opacity: .55 !important; }
html body.auth-page:not(#_ac):not(#_ac2) .primary-action i,
html body.auth-page:not(#_ac):not(#_ac2) .primary-action span { color: inherit !important; }

html body.auth-page:not(#_ac):not(#_ac2) .auth-mode-switch { color: var(--ac-text-2) !important; }
html body.auth-page:not(#_ac):not(#_ac2) #authModeSwitchButton,
html body.auth-page:not(#_ac):not(#_ac2) .back-button,
html body.auth-page:not(#_ac):not(#_ac2) .resend-button:not(:disabled) {
  color: var(--ac-accent) !important;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}
html body.auth-page:not(#_ac):not(#_ac2) #authModeSwitchButton { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--ac-border-strong); border-bottom: 0 !important; }
html body.auth-page:not(#_ac):not(#_ac2) .resend-button:disabled { color: var(--ac-text-3) !important; background: transparent !important; border-color: transparent !important; }
html body.auth-page:not(#_ac):not(#_ac2) .auth-footer-note { color: var(--ac-text-3) !important; }

html body.auth-page:not(#_ac):not(#_ac2) .role-choice {
  background: var(--ac-surface) !important;
  border: 1px solid var(--ac-border-strong) !important;
  box-shadow: none !important;
  color: var(--ac-text) !important;
}
html body.auth-page:not(#_ac):not(#_ac2) .role-choice:hover { background: var(--ac-surface-2) !important; }
html body.auth-page:not(#_ac):not(#_ac2) .role-choice:focus-within { box-shadow: 0 0 0 4px var(--ac-ring) !important; }
html body.auth-page:not(#_ac):not(#_ac2) .role-choice__icon {
  background: var(--ac-surface-2) !important;
  border: 1px solid var(--ac-border) !important;
  color: var(--ac-text-2) !important;
}
html body.auth-page:not(#_ac):not(#_ac2) .role-choice__copy strong { color: var(--ac-text) !important; }
html body.auth-page:not(#_ac):not(#_ac2) .role-choice__copy small { color: var(--ac-text-2) !important; }
html body.auth-page:not(#_ac):not(#_ac2) .role-choice__check {
  background: var(--ac-surface) !important;
  border: 1px solid var(--ac-border-strong) !important;
  color: transparent !important;
}
html body.auth-page:not(#_ac):not(#_ac2) .role-choice:has(input:checked),
html body.auth-page:not(#_ac):not(#_ac2) .role-choice.is-selected {
  background: var(--ac-accent-soft) !important;
  border-color: var(--ac-accent) !important;
}
html body.auth-page:not(#_ac):not(#_ac2) .role-choice:has(input:checked) .role-choice__icon,
html body.auth-page:not(#_ac):not(#_ac2) .role-choice.is-selected .role-choice__icon { color: var(--ac-accent) !important; }
html body.auth-page:not(#_ac):not(#_ac2) .role-choice:has(input:checked) .role-choice__check,
html body.auth-page:not(#_ac):not(#_ac2) .role-choice.is-selected .role-choice__check {
  background: var(--ac-accent) !important;
  border-color: var(--ac-accent) !important;
  color: #fff !important;
}

html body.auth-page:not(#_ac):not(#_ac2) .otp-input {
  background: var(--ac-surface) !important;
  border: 1px solid var(--ac-border-strong) !important;
  color: var(--ac-text) !important;
  box-shadow: none !important;
}
html body.auth-page:not(#_ac):not(#_ac2) .otp-input:focus {
  border-color: var(--ac-accent) !important;
  box-shadow: 0 0 0 4px var(--ac-ring) !important;
  outline: none !important;
}
html body.auth-page:not(#_ac):not(#_ac2) .otp-validity-note { color: var(--ac-text-2) !important; background: var(--ac-surface-2) !important; border-color: var(--ac-border) !important; }
html body.auth-page:not(#_ac):not(#_ac2) .phone-preview { color: var(--ac-text) !important; }

html body.auth-page:not(#_ac):not(#_ac2) .success-mark {
  background: var(--ac-accent-soft) !important;
  color: var(--ac-accent) !important;
  border: 1px solid var(--ac-border) !important;
  box-shadow: none !important;
}

html body.auth-page:not(#_ac):not(#_ac2) .context-message {
  background: var(--ac-surface-2) !important;
  border: 1px solid var(--ac-border) !important;
  color: var(--ac-text) !important;
}
html body.auth-page:not(#_ac):not(#_ac2) .context-message__icon { color: var(--ac-accent) !important; background: transparent !important; }
html body.auth-page:not(#_ac):not(#_ac2) .context-message p { color: var(--ac-text-2) !important; }

html body.auth-page:not(#_ac):not(#_ac2) .panel-modal__card { background: var(--ac-surface) !important; border: 1px solid var(--ac-border) !important; color: var(--ac-text) !important; }
html body.auth-page:not(#_ac):not(#_ac2) .panel-modal__card a { background: var(--ac-surface-2) !important; border: 1px solid var(--ac-border) !important; color: var(--ac-text) !important; }
html body.auth-page:not(#_ac):not(#_ac2) .panel-modal__card a:hover { border-color: var(--ac-accent) !important; }
html body.auth-page:not(#_ac):not(#_ac2) .panel-modal__icon,
html body.auth-page:not(#_ac):not(#_ac2) .panel-modal__card a > span { background: var(--ac-accent-soft) !important; color: var(--ac-accent) !important; }
