:root {
  --tx-an-petrol-950: #021f27;
  --tx-an-petrol-900: #032b35;
  --tx-an-petrol-800: #053b49;
  --tx-an-petrol-700: #0b5262;
  --tx-an-peach: #ff9e7a;
  --tx-an-blue: #2a6fdb;
  --tx-an-blue-soft: rgba(42, 111, 219, .14);
  --tx-an-ink: #15181d;
  --tx-an-secondary: #566068;
  --tx-an-muted: #7a848b;
  --tx-an-border: #dde3e4;
  --tx-an-border-subtle: #e9edee;
  --tx-an-canvas: #fff;
  --tx-an-error: #b33a32;
  --tx-an-error-soft: #fdece9;
  --tx-an-success: #1f7a5a;
  --tx-an-success-soft: #eaf6ef;
  --tx-an-warning: #80550b;
  --tx-an-warning-soft: #fff6de;
  --tx-an-font: "Instrument Sans", Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--tx-an-canvas); }
body { margin: 0; }
button, input { font: inherit; }
a { color: var(--tx-an-blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.tx-an-page {
  min-height: 100dvh;
  color: var(--tx-an-ink);
  background: var(--tx-an-canvas);
  font-family: var(--tx-an-font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.tx-an-skip {
  position: fixed;
  z-index: 100;
  left: 18px;
  top: 12px;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--tx-an-blue);
  color: white;
  font-size: 14px;
  font-weight: 600;
}
.tx-an-skip:focus { transform: translateY(0); }

.tx-an-topbar {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  border-bottom: 1px solid var(--tx-an-border-subtle);
  background: rgba(255,255,255,.98);
}

.tx-an-brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 12px;
  color: var(--tx-an-ink);
  font-size: 14px;
  font-weight: 500;
}
.tx-an-brand:hover { text-decoration: none; }

.tx-an-mark {
  position: relative;
  display: inline-block;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  overflow: hidden;
  border-radius: 7px;
  background: var(--tx-an-petrol-800);
}
.tx-an-mark > span {
  position: absolute;
  left: 17px;
  top: 5px;
  width: 7px;
  height: 10px;
  border-radius: 3px;
  background: var(--tx-an-peach);
}

.tx-an-support {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--tx-an-secondary);
  font-size: 14px;
  line-height: 21px;
}
.tx-an-support a { color: var(--tx-an-petrol-800); font-size: 13px; font-weight: 500; }

.tx-an-shell {
  min-height: calc(100dvh - 76px);
  display: grid;
  grid-template-columns: minmax(520px, 45.14vw) minmax(0, 1fr);
}

.tx-an-form-side {
  min-width: 0;
  background: var(--tx-an-canvas);
}

.tx-an-form-inner {
  width: min(480px, calc(100% - 48px));
  margin-left: clamp(64px, 8.05vw, 116px);
  padding: 58px 0 42px;
}

.tx-an-heading { margin-bottom: 28px; }
.tx-an-heading h1 {
  margin: 0;
  color: var(--tx-an-ink);
  font-size: 40px;
  line-height: 48px;
  font-weight: 600;
  letter-spacing: -1px;
}
.tx-an-heading p {
  margin: 18px 0 0;
  color: var(--tx-an-secondary);
  font-size: 18px;
  line-height: 28px;
  font-weight: 400;
}
.tx-an-heading strong { color: inherit; font-weight: 500; }

.tx-an-form { width: 360px; max-width: 100%; display: grid; gap: 14px; }
.tx-an-form-signup { gap: 10px; }
.tx-an-field { display: grid; gap: 6px; }
.tx-an-field > label {
  color: var(--tx-an-ink);
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
}

.tx-an-input-shell {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  padding: 0 14px;
  border: 1px solid var(--tx-an-border);
  border-radius: 8px;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.tx-an-input-shell:focus-within {
  border-color: var(--tx-an-blue);
  box-shadow: 0 0 0 2px var(--tx-an-blue);
}
.tx-an-input-shell input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--tx-an-ink);
  font-size: 16px;
  line-height: 24px;
}
.tx-an-input-shell input::placeholder { color: var(--tx-an-secondary); opacity: 1; }
.tx-an-code-input { letter-spacing: .22em; font-variant-numeric: tabular-nums; }

.tx-an-password-toggle {
  min-width: 44px;
  min-height: 44px;
  margin-right: -14px;
  border: 0;
  background: transparent;
  color: var(--tx-an-petrol-800);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

.tx-an-helper,
.tx-an-field-error {
  min-height: 19px;
  margin: 0;
  font-size: 13px;
  line-height: 19px;
}
.tx-an-helper { color: var(--tx-an-secondary); }
.tx-an-field-error { color: var(--tx-an-error); }
.tx-an-field:not(.is-error) .tx-an-field-error:empty { min-height: 0; }
.tx-an-field.is-error .tx-an-input-shell { border-color: var(--tx-an-error); box-shadow: 0 0 0 2px rgba(179,58,50,.16); }
.tx-an-field.is-error input { color: var(--tx-an-error); }

.tx-an-alert {
  width: 360px;
  max-width: 100%;
  display: none;
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid rgba(179,58,50,.22);
  border-radius: 8px;
  background: var(--tx-an-error-soft);
  color: #8e2e28;
  font-size: 14px;
  line-height: 21px;
}
.tx-an-alert:not(:empty) { display: block; }
.tx-an-alert.is-success { border-color: rgba(31,122,90,.22); background: var(--tx-an-success-soft); color: var(--tx-an-success); }

.tx-an-inline-link { display: flex; justify-content: flex-end; min-height: 28px; align-items: center; }
.tx-an-inline-link a,
.tx-an-muted-link,
.tx-an-form-switch,
.tx-an-family-actions,
.tx-an-text-button,
.tx-an-link-button {
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
}
.tx-an-muted-link { display: inline-flex; min-height: 44px; align-items: center; color: var(--tx-an-secondary); }
.tx-an-form-switch { margin: 2px 0 0; color: var(--tx-an-secondary); }

.tx-an-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  line-height: 18px;
  font-weight: 600;
  text-align: center;
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.tx-an-button:hover { text-decoration: none; }
.tx-an-button-primary { border: 1px solid var(--tx-an-petrol-800); background: var(--tx-an-petrol-800); color: #fff; }
.tx-an-button-primary:hover { background: var(--tx-an-petrol-900); border-color: var(--tx-an-petrol-900); }
.tx-an-button-secondary { border: 1px solid var(--tx-an-border); background: #fff; color: var(--tx-an-petrol-800); }
.tx-an-button-secondary:hover { border-color: var(--tx-an-petrol-700); background: #f8fbfb; }
.tx-an-button:disabled { cursor: wait; opacity: .68; transform: none; }
.tx-an-button:focus-visible,
.tx-an-password-toggle:focus-visible,
.tx-an-text-button:focus-visible,
.tx-an-link-button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--tx-an-blue);
  outline-offset: 3px;
}

.tx-an-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  color: var(--tx-an-muted);
  font-size: 13px;
  line-height: 18px;
}
.tx-an-divider::before,
.tx-an-divider::after { content: ""; height: 1px; background: var(--tx-an-border-subtle); }
.tx-an-divider span { padding: 0 4px; background: #fff; }

.tx-an-check-row {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--tx-an-ink);
  cursor: pointer;
  font-size: 16px;
  line-height: 24px;
}
.tx-an-check-row input {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin: 0;
  accent-color: var(--tx-an-petrol-800);
}
.tx-an-terms { align-items: flex-start; }
.tx-an-terms span { padding-top: 1px; }
.tx-an-terms-error { margin-top: -8px; }

.tx-an-legal {
  margin: 2px 0 0;
  color: var(--tx-an-muted);
  font-size: 12px;
  line-height: 18px;
}
.tx-an-legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.tx-an-honeypot { position: fixed !important; left: -10000px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }

.tx-an-trust {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 14%, rgba(255,158,122,.05), transparent 26%),
    var(--tx-an-petrol-900);
  color: white;
}
.tx-an-trust-inner {
  min-height: 824px;
  display: flex;
  align-items: flex-start;
  padding: 88px clamp(54px, 7.5vw, 108px) 60px;
}
.tx-an-trust-copy {
  position: relative;
  width: min(540px, 100%);
  margin-left: 46px;
}
.tx-an-trust-copy::before {
  content: "";
  position: absolute;
  left: -46px;
  top: 24px;
  bottom: 86px;
  width: 4px;
  border-radius: 3px;
  background: var(--tx-an-peach);
}
.tx-an-eyebrow { margin: 0 0 18px; color: var(--tx-an-peach); font-size: 12px; line-height: 16px; font-weight: 500; }
.tx-an-trust h2 { margin: 0; font-size: 40px; line-height: 48px; font-weight: 600; letter-spacing: -1px; }
.tx-an-trust-intro { margin: 30px 0 28px; font-size: 18px; line-height: 28px; color: #fff; }

.tx-an-steps { list-style: none; margin: 0; padding: 0; }
.tx-an-steps li {
  min-height: 106px;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 18px;
  align-items: start;
  padding: 0 0 24px;
  margin: 0 0 30px;
  border-bottom: 1px solid rgba(233,237,238,.62);
}
.tx-an-steps li:last-child { margin-bottom: 0; border-bottom: 0; }
.tx-an-steps li > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--tx-an-petrol-800);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
}
.tx-an-steps li.is-active > span { background: var(--tx-an-peach); color: var(--tx-an-ink); }
.tx-an-steps strong { display: block; margin: 0 0 8px; font-size: 14px; line-height: 20px; font-weight: 500; }
.tx-an-steps p { margin: 0; font-size: 14px; line-height: 21px; }
.tx-an-trust-note {
  min-height: 62px;
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
  padding: 13px 16px;
  border-radius: 10px;
  background: var(--tx-an-petrol-800);
  font-size: 14px;
  line-height: 21px;
}
.tx-an-trust-note p { margin: 0; }

.tx-an-family-actions { min-height: 44px; display: flex; align-items: center; gap: 8px; color: var(--tx-an-secondary); }
.tx-an-text-button,
.tx-an-link-button { min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--tx-an-blue); cursor: pointer; }
.tx-an-link-button { justify-self: start; color: var(--tx-an-secondary); }
.tx-an-text-button:disabled { cursor: wait; opacity: .62; }

.tx-an-recovery-progress {
  width: 360px;
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: -4px 0 24px;
}
.tx-an-recovery-progress span { height: 4px; border-radius: 999px; background: var(--tx-an-border-subtle); }
.tx-an-recovery-progress span.is-active { background: var(--tx-an-peach); }
.tx-an-recovery-progress span.is-complete { background: var(--tx-an-petrol-800); }
.tx-an-recovery-step { width: 360px; max-width: 100%; display: none; }
.tx-an-recovery-step.is-active { display: block; }
.tx-an-success { padding-top: 12px; }
.tx-an-success h2 { margin: 18px 0 8px; font-size: 32px; line-height: 40px; letter-spacing: -.5px; }
.tx-an-success p { margin: 0 0 26px; color: var(--tx-an-secondary); font-size: 16px; line-height: 24px; }
.tx-an-success .tx-an-button { width: 100%; }
.tx-an-success-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--tx-an-success-soft);
  color: var(--tx-an-success);
  font-size: 24px;
  font-weight: 600;
}

.tx-an-state-card { width: 360px; max-width: 100%; margin: 0 0 24px; padding: 18px; border-radius: 10px; font-size: 15px; line-height: 22px; }
.tx-an-state-card strong { display: block; margin-bottom: 6px; font-size: 16px; }
.tx-an-state-card p { margin: 0; }
.tx-an-state-warning { border: 1px solid rgba(128,85,11,.18); background: var(--tx-an-warning-soft); color: #654208; }
.tx-an-locked .tx-an-form-inner,
.tx-an-password-changed .tx-an-form-inner { display: grid; align-content: start; gap: 16px; }
.tx-an-password-changed .tx-an-heading { margin-bottom: 10px; }
.tx-an-password-changed > * {}
.tx-an-password-changed .tx-an-form-inner > .tx-an-button,
.tx-an-locked .tx-an-form-inner > .tx-an-button,
.tx-an-locked .tx-an-form-inner > .tx-an-muted-link { width: 360px; max-width: 100%; }
.tx-an-mobile-trust { display: none; }

@media (max-width: 1100px) {
  .tx-an-shell { grid-template-columns: minmax(480px, 52vw) 1fr; }
  .tx-an-form-inner { margin-left: 64px; }
  .tx-an-trust-inner { padding-left: 58px; padding-right: 42px; }
  .tx-an-trust-copy { margin-left: 34px; }
  .tx-an-trust-copy::before { left: -34px; }
  .tx-an-trust h2 { font-size: 34px; line-height: 42px; }
  .tx-an-trust-intro { font-size: 16px; line-height: 25px; }
}

@media (max-width: 860px) {
  .tx-an-topbar { height: 76px; padding: 0 24px; }
  .tx-an-support { display: none; }
  .tx-an-shell { min-height: calc(100dvh - 76px); display: block; }
  .tx-an-trust { display: none; }
  .tx-an-form-side { min-height: calc(100dvh - 76px); }
  .tx-an-form-inner { width: min(100% - 48px, 520px); margin: 0 auto; padding: 36px 0 64px; }
  .tx-an-form, .tx-an-alert, .tx-an-recovery-progress, .tx-an-recovery-step, .tx-an-state-card { width: 100%; }
  .tx-an-heading h1 { font-size: 34px; line-height: 42px; letter-spacing: -.65px; }
  .tx-an-heading p { margin-top: 12px; font-size: 16px; line-height: 24px; }
}

@media (max-width: 480px) {
  .tx-an-topbar { padding: 0 23px; }
  .tx-an-brand { font-size: 14px; }
  .tx-an-form-inner { width: calc(100% - 46px); padding-top: 35px; }
  .tx-an-heading { margin-bottom: 26px; }
  .tx-an-heading h1 { font-size: 32px; line-height: 40px; letter-spacing: -.5px; }
  .tx-an-heading p { margin-top: 2px; }
  .tx-an-form { gap: 14px; }
  .tx-an-form-signup { gap: 9px; }
  .tx-an-button { width: 100%; }
  .tx-an-check-row { font-size: 14px; line-height: 21px; }
  .tx-an-login .tx-an-inline-link { margin-top: -2px; }
  .tx-an-login .tx-an-check-row, .tx-an-login .tx-an-legal { display: none; }
  .tx-an-mobile-trust { display: block; margin: 20px 0 0; color: var(--tx-an-muted); font-size: 12px; line-height: 18px; }
  .tx-an-verify .tx-an-form-inner,
  .tx-an-forgot .tx-an-form-inner { padding-top: 35px; }
}

@media (max-height: 760px) and (min-width: 861px) {
  .tx-an-form-inner { padding-top: 36px; padding-bottom: 28px; }
  .tx-an-heading { margin-bottom: 20px; }
  .tx-an-heading h1 { font-size: 36px; line-height: 43px; }
  .tx-an-heading p { margin-top: 10px; font-size: 16px; line-height: 24px; }
  .tx-an-form { gap: 10px; }
  .tx-an-trust-inner { padding-top: 60px; }
  .tx-an-trust-intro { margin-top: 18px; margin-bottom: 18px; }
  .tx-an-steps li { min-height: 86px; margin-bottom: 18px; padding-bottom: 14px; }
  .tx-an-trust-note { margin-top: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Recovery headline is intentionally longer; compress only its trust-panel rhythm. */
.tx-an-forgot .tx-an-trust-inner { padding-top: 70px; }
.tx-an-forgot .tx-an-trust h2 { font-size: 38px; line-height: 44px; }
.tx-an-forgot .tx-an-trust-intro { margin-top: 20px; margin-bottom: 20px; }
.tx-an-forgot .tx-an-steps li { min-height: 88px; margin-bottom: 18px; padding-bottom: 14px; }
.tx-an-forgot .tx-an-trust-note { margin-top: 18px; }

/* AUTH NEXT PREMIUM FIELD FOCUS START */

/* Keep the field calm before interaction. */
.tx-an-input-shell {
  border: 1px solid #dde3e4;
  box-shadow: 0 1px 2px rgba(21, 24, 29, 0.02);
}

/* One refined focus treatment around the complete field. */
.tx-an-input-shell:focus-within {
  border-color: #2a6fdb;
  background: #ffffff;
  box-shadow:
    0 0 0 3px rgba(42, 111, 219, 0.13),
    0 8px 24px rgba(5, 59, 73, 0.06);
}

/* Prevent the browser from drawing a second border inside. */
.tx-an-input-shell input:focus,
.tx-an-input-shell input:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

/* Subtle premium hover before focus. */
.tx-an-input-shell:hover {
  border-color: #a6b7bc;
}

/* Error styling must remain visible when the field is focused. */
.tx-an-field.is-error .tx-an-input-shell,
.tx-an-field.is-error .tx-an-input-shell:focus-within {
  border-color: #b33a32;
  box-shadow:
    0 0 0 3px rgba(179, 58, 50, 0.12),
    0 8px 24px rgba(179, 58, 50, 0.05);
}

/* AUTH NEXT PREMIUM FIELD FOCUS END */
