:root {
  --ab-blue: #236ee8;
  --ab-blue-dark: #0b4ecb;
  --ab-purple: #7548b9;
  --ab-ink: #17213b;
  --ab-text: #3b465f;
  --ab-muted: #66728a;
  --ab-line: #d8e2f4;
  --ab-soft: #f6f8fe;
  --ab-soft-blue: #eef5ff;
  --ab-card: #ffffff;
  --ab-success: #16803c;
  --ab-error: #c93838;
  --ab-warning: #a76100;
  --ab-focus: 0 0 0 4px rgba(35, 110, 232, 0.18);
  --ab-shadow: 0 20px 48px rgba(31, 43, 77, 0.22);
  font-family: "Open Sans", "Montserrat", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body.ab-onboarding-page {
  margin: 0;
  color: var(--ab-ink);
  background: #dfe6fb;
  overflow-x: hidden;
}

.ab-skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 30;
  padding: 10px 14px;
  color: #fff;
  background: #101b33;
  border-radius: 10px;
  transform: translateY(-140%);
}

.ab-skip-link:focus {
  transform: translateY(0);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

a {
  color: var(--ab-blue-dark);
}

.ab-stage {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 72px 24px 56px;
  isolation: isolate;
}

.ab-panorama {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 8%, rgba(255, 233, 177, 0.92) 0 23%, transparent 42%),
    linear-gradient(105deg, #ffe1a4 0%, #f9d99f 26%, #eadff6 55%, #d8dff8 100%);
}

.ab-cloud {
  position: absolute;
  top: 13%;
  width: 112px;
  height: 38px;
}

.ab-cloud::before,
.ab-cloud::after {
  content: "";
  position: absolute;
  border-radius: 50% 50% 0 0;
  background: #fff;
}

.ab-cloud::before {
  inset: 8px 0 0;
  border-radius: 50px 50px 0 0;
}

.ab-cloud::after {
  width: 70px;
  height: 54px;
  left: 24px;
  bottom: 2px;
}

.ab-cloud-left {
  left: 12%;
}

.ab-cloud-right {
  right: 9%;
  top: 17%;
  transform: scale(0.8);
  opacity: 0.72;
}

.ab-skyline {
  position: absolute;
  left: -10px;
  bottom: 33%;
  width: 520px;
  height: 300px;
}

.ab-building {
  position: absolute;
  bottom: 0;
  background: #2178f4;
  box-shadow: inset 0 -18px 0 #0654c9;
}

.ab-building-a {
  left: 58px;
  width: 110px;
  height: 150px;
  border-radius: 28px 28px 0 0;
  background-image: repeating-linear-gradient(90deg, transparent 0 12px, rgba(255,255,255,0.85) 12px 18px);
}

.ab-building-b {
  left: 172px;
  width: 112px;
  height: 125px;
  background-image: repeating-linear-gradient(0deg, transparent 0 13px, rgba(255,255,255,0.86) 13px 18px);
}

.ab-cn-tower {
  position: absolute;
  left: 104px;
  bottom: 0;
  width: 18px;
  height: 360px;
  background: linear-gradient(90deg, #6b7b9e, #ffffff 42%, #445272);
  border-radius: 12px 12px 0 0;
}

.ab-cn-tower::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 178px;
  width: 86px;
  height: 36px;
  background: #ffffff;
  border: 8px solid #1d4d8c;
  border-radius: 50%;
  box-shadow: 0 -8px 0 #ff4d6d;
}

.ab-cn-tower::after {
  content: "";
  position: absolute;
  left: 7px;
  top: -56px;
  width: 4px;
  height: 70px;
  background: #ff3e7c;
  border-radius: 3px;
}

.ab-wheel {
  position: absolute;
  left: 344px;
  bottom: 34px;
  width: 146px;
  height: 146px;
  border: 10px solid #2b86ff;
  border-radius: 50%;
}

.ab-wheel::before,
.ab-wheel::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -18px;
  width: 6px;
  height: 166px;
  background: #2b86ff;
  transform: translateX(-50%) rotate(45deg);
  transform-origin: center;
}

.ab-wheel::after {
  transform: translateX(-50%) rotate(-45deg);
}

.ab-liberty {
  position: absolute;
  left: 50%;
  top: -78px;
  width: 178px;
  height: 310px;
  transform: translateX(-50%);
  background:
    linear-gradient(#f07a32, #f07a32) 105px 0 / 18px 16px no-repeat,
    linear-gradient(#23a992, #23a992) 111px 12px / 8px 92px no-repeat,
    linear-gradient(32deg, transparent 0 43%, #2aa894 44% 60%, transparent 61% 100%) 78px 84px / 74px 98px no-repeat,
    linear-gradient(-30deg, transparent 0 45%, #2aa894 46% 60%, transparent 61% 100%) 36px 110px / 86px 94px no-repeat;
}

.ab-liberty::before {
  content: "";
  position: absolute;
  left: 54px;
  top: 118px;
  width: 82px;
  height: 176px;
  background: #35b59f;
  clip-path: polygon(45% 0, 70% 13%, 90% 100%, 7% 100%, 24% 13%);
  box-shadow: inset -12px 0 0 rgba(0, 111, 96, 0.18);
}

.ab-liberty::after {
  content: "";
  position: absolute;
  left: 75px;
  top: 82px;
  width: 44px;
  height: 44px;
  background: #2a9f8e;
  border-radius: 50% 50% 38% 38%;
  box-shadow:
    0 -34px 0 -14px #35b59f,
    -15px -20px 0 -13px #35b59f,
    17px -22px 0 -13px #35b59f,
    33px -2px 0 -16px #35b59f,
    -27px 1px 0 -16px #35b59f;
}

.ab-gate {
  position: absolute;
  right: 48px;
  bottom: 34%;
  width: 300px;
  height: 164px;
  border-top: 15px solid #bb5f22;
  background: linear-gradient(#f47d31 0 18px, transparent 18px);
}

.ab-gate::before {
  content: "";
  position: absolute;
  left: -16px;
  right: -16px;
  top: -4px;
  height: 12px;
  background: #9d4b18;
  border-radius: 2px;
}

.ab-gate span {
  position: absolute;
  bottom: 0;
  width: 28px;
  height: 138px;
  background: linear-gradient(90deg, #e9792a, #ffc464, #d96520);
}

.ab-gate span:nth-child(1) { left: 28px; }
.ab-gate span:nth-child(2) { left: 104px; }
.ab-gate span:nth-child(3) { right: 104px; }
.ab-gate span:nth-child(4) { right: 28px; }

.ab-ground {
  position: absolute;
  left: -8vw;
  right: -8vw;
}

.ab-ground-back {
  bottom: 30.5%;
  height: 92px;
  background: #0c8f74;
  border-radius: 50% 50% 0 0 / 68% 68% 0 0;
}

.ab-ground-mid {
  bottom: 18.5%;
  height: 174px;
  background: #5cc4b2;
  clip-path: polygon(0 10%, 14% 18%, 28% 9%, 43% 17%, 57% 12%, 72% 18%, 86% 10%, 100% 18%, 100% 100%, 0 100%);
}

.ab-path {
  position: absolute;
  left: -6vw;
  right: -6vw;
  bottom: 7%;
  height: 142px;
  background: #ffd982;
  clip-path: polygon(0 40%, 12% 30%, 28% 55%, 46% 15%, 62% 42%, 80% 28%, 100% 52%, 100% 100%, 0 100%);
}

.ab-ground-front {
  bottom: -17%;
  height: 268px;
  background: #10a88d;
  border-radius: 50% 50% 0 0 / 44% 44% 0 0;
}

.ab-home-link {
  position: fixed;
  top: 22px;
  left: 26px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 14px;
  color: #075fcb;
  text-decoration: none;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(216, 226, 244, 0.9);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.ab-logo-mark {
  width: 26px;
  height: 26px;
  color: #0b67e9;
}

.ab-logo-mark svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ab-wizard {
  width: min(100%, 1040px);
  z-index: 1;
}

.ab-card {
  background: var(--ab-card);
  border: 1px solid rgba(216, 226, 244, 0.95);
  border-radius: 18px;
  box-shadow: var(--ab-shadow);
  overflow: hidden;
}

.ab-card-header {
  padding: 18px 20px 12px;
  border-bottom: 1px solid var(--ab-line);
}

.ab-card-topline {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.ab-back {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  color: #27425f;
  background: #eef4fb;
  border: 0;
  border-radius: 50%;
  transition: background 160ms ease, transform 160ms ease;
}

.ab-back:hover {
  background: #dfeafa;
}

.ab-back:active {
  transform: translateY(1px);
}

.ab-back svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ab-step-name {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #2b3145;
}

.ab-step-count {
  min-width: 48px;
  padding: 7px 11px;
  text-align: center;
  color: #58708d;
  background: #f0f5fb;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.ab-progress {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 8px;
  margin-top: 13px;
}

.ab-progress span {
  height: 4px;
  border-radius: 999px;
  background: #d9e3f1;
}

.ab-progress span.is-done,
.ab-progress span.is-current {
  background: var(--ab-blue);
}

.ab-card-body {
  padding: 20px 20px 14px;
}

.ab-prompt-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.ab-mascot {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
}

.ab-mascot svg {
  width: 45px;
  height: 45px;
  filter: drop-shadow(0 8px 10px rgba(35, 110, 232, 0.24));
}

.ab-prompt {
  min-height: 56px;
  display: flex;
  align-items: center;
  padding: 14px 20px;
  background: #f7f9fc;
  border-radius: 18px;
}

.ab-prompt h1 {
  margin: 0;
  color: #071229;
  font-size: 21px;
  line-height: 1.28;
  font-weight: 800;
  text-wrap: balance;
}

.ab-prompt p {
  margin: 4px 0 0;
  color: #63718d;
  font-size: 15px;
}

.ab-content-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.94fr) minmax(320px, 1fr);
  gap: 22px;
  align-items: stretch;
}

.ab-art-panel {
  position: relative;
  min-height: 238px;
  border-radius: 16px;
  overflow: hidden;
  background: #dceaff;
  border: 1px solid rgba(205, 219, 245, 0.9);
}

.ab-art-panel::before {
  display: none;
  content: none;
}

.ab-art-panel::after {
  display: none;
  content: none;
}

.ab-step-art-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: center;
}

.ab-form-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.ab-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ab-group {
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.ab-group > legend {
  padding: 0;
}

.ab-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.ab-field-full {
  grid-column: 1 / -1;
}

.ab-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #37445f;
  font-size: 14px;
  font-weight: 800;
}

.ab-required {
  color: var(--ab-error);
}

.ab-input,
.ab-select,
.ab-combobox-input {
  width: 100%;
  min-height: 50px;
  padding: 0 15px;
  color: var(--ab-ink);
  background: #fff;
  border: 1px solid #aebbe2;
  border-radius: 10px;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.ab-input::placeholder,
.ab-combobox-input::placeholder {
  color: #677590;
  opacity: 1;
}

.ab-input:hover,
.ab-select:hover,
.ab-combobox-input:hover {
  border-color: #7e95ce;
}

.ab-input:focus-visible,
.ab-select:focus-visible,
.ab-combobox-input:focus-visible,
.ab-choice:focus-visible,
.ab-option-card:focus-visible,
.ab-link-button:focus-visible,
.ab-primary:focus-visible,
.ab-secondary:focus-visible,
.ab-back:focus-visible,
.ab-auth-tab:focus-visible,
.ab-social:focus-visible,
.ab-password-toggle:focus-visible {
  outline: none;
  border-color: var(--ab-blue);
  box-shadow: var(--ab-focus);
}

.ab-field.is-invalid .ab-input,
.ab-field.is-invalid .ab-select,
.ab-field.is-invalid .ab-combobox-input,
.ab-group.is-invalid .ab-choice,
.ab-group.is-invalid .ab-option-card {
  border-color: var(--ab-error);
}

.ab-error {
  color: var(--ab-error);
  font-size: 13px;
  font-weight: 700;
}

.ab-help,
.ab-inline-help {
  color: #5f6e8a;
  font-size: 14px;
  line-height: 1.45;
}

.ab-note {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 56px;
  padding: 13px 16px;
  color: #271a73;
  background: #f7edff;
  border: 1px solid #e4c9ff;
  border-radius: 15px;
  font-size: 14px;
  line-height: 1.45;
}

.ab-note svg,
.ab-info-icon {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  color: #b73dff;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ab-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ab-choice {
  position: relative;
  min-height: 104px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 10px;
  color: #0f1c38;
  background: #f4f7fb;
  border: 1px solid #d8e2f4;
  border-radius: 16px;
  font-weight: 800;
  text-align: center;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.ab-choice:hover,
.ab-option-card:hover {
  transform: translateY(-1px);
  border-color: #9bb4e8;
  background: #f8fbff;
}

.ab-choice.is-selected,
.ab-option-card.is-selected {
  border-color: var(--ab-blue);
  background: #eef5ff;
  box-shadow: inset 0 0 0 1px rgba(35, 110, 232, 0.34);
}

.ab-choice-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  display: none;
  place-items: center;
  color: #fff;
  background: var(--ab-blue);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 900;
}

.ab-choice.is-selected .ab-choice-check,
.ab-option-card.is-selected .ab-choice-check {
  display: grid;
}

.ab-choice img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.ab-choice small {
  display: block;
  color: #63718d;
  font-size: 12px;
  font-weight: 700;
}

.ab-option-stack {
  display: grid;
  gap: 14px;
}

.ab-option-card {
  position: relative;
  min-height: 68px;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px 48px 14px 16px;
  color: #12213e;
  background: #fff;
  border: 1px solid #d6e0ef;
  border-radius: 14px;
  text-align: left;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.ab-card-icon {
  width: 28px;
  height: 28px;
  color: #536889;
}

.ab-card-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ab-combobox {
  position: relative;
}

.ab-combobox-list {
  position: absolute;
  z-index: 10;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  max-height: 230px;
  overflow: auto;
  padding: 6px;
  margin: 0;
  list-style: none;
  background: #fff;
  border: 1px solid #cbd7ec;
  border-radius: 12px;
  box-shadow: 0 18px 34px rgba(21, 35, 72, 0.18);
}

.ab-combobox-list[hidden] {
  display: none;
}

.ab-combobox-option,
.ab-empty-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 9px 10px;
  border-radius: 9px;
  color: var(--ab-ink);
}

.ab-combobox-option {
  cursor: pointer;
}

.ab-combobox-option:hover,
.ab-combobox-option.is-active {
  background: #eef5ff;
}

.ab-selected-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  margin-top: 10px;
  padding: 8px 12px;
  color: #0d55bd;
  background: #eaf3ff;
  border: 1px solid #b9cff5;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
}

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

.ab-segmented button {
  min-height: 54px;
  padding: 0 14px;
  color: #163263;
  background: #fff;
  border: 1px solid #cbd7ec;
  border-radius: 13px;
  font-weight: 800;
}

.ab-segmented button.is-selected {
  color: #0c4db6;
  border-color: var(--ab-blue);
  box-shadow: inset 0 0 0 1px var(--ab-blue), var(--ab-focus);
}

.ab-footer {
  display: flex;
  justify-content: center;
  padding: 18px 20px 20px;
  border-top: 1px solid var(--ab-line);
}

.ab-primary,
.ab-secondary,
.ab-link-button,
.ab-social,
.ab-auth-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease, background 150ms ease;
}

.ab-primary svg,
.ab-secondary svg,
.ab-link-button svg,
.ab-social svg,
.ab-auth-tab svg,
.ab-benefit-icon svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ab-primary {
  min-width: min(100%, 420px);
  min-height: 52px;
  padding: 0 28px;
  color: #fff;
  background: linear-gradient(90deg, #6678ee, var(--ab-purple));
  box-shadow: 0 14px 24px rgba(75, 63, 195, 0.22);
}

.ab-primary:hover:not(:disabled) {
  background: linear-gradient(90deg, var(--ab-blue), #6435ae);
  transform: translateY(-1px);
}

.ab-primary:disabled {
  color: rgba(255,255,255,0.82);
  background: linear-gradient(90deg, #b3bdf0, #bca9d8);
  box-shadow: none;
}

.ab-secondary {
  min-height: 44px;
  padding: 0 18px;
  color: #174caa;
  background: #eef5ff;
  border-color: #c3d7f8;
}

.ab-link-button {
  min-height: 44px;
  padding: 0 14px;
  color: #174caa;
  background: transparent;
}

.ab-match-card {
  display: grid;
  gap: 18px;
}

.ab-spinner {
  width: 72px;
  height: 72px;
  margin: 20px auto 10px;
  border-radius: 50%;
  border: 6px solid #edf2f8;
  border-top-color: var(--ab-blue);
  animation: ab-spin 1s linear infinite;
}

.ab-match-title {
  text-align: center;
  font-size: 24px;
  font-weight: 900;
  margin: 0;
}

.ab-match-copy {
  margin: 0 auto;
  max-width: 470px;
  color: #5e6e8a;
  text-align: center;
  line-height: 1.55;
}

.ab-check-list {
  width: fit-content;
  margin: 0 auto;
  display: grid;
  gap: 12px;
  color: #24324b;
  font-weight: 700;
}

.ab-check-list span {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ab-dot-check {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--ab-blue);
  border-radius: 50%;
  font-size: 12px;
}

.ab-benefits-card {
  width: min(100%, 810px);
  margin: 0 auto;
}

.ab-benefit-hero {
  position: relative;
  min-height: 166px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  padding: 28px;
  color: #fff;
  text-align: center;
  background: linear-gradient(120deg, #414bf0, #27b3ee);
  border-radius: 14px;
  overflow: hidden;
}

.ab-benefit-hero::before,
.ab-benefit-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.ab-benefit-hero::before {
  width: 152px;
  height: 152px;
  left: -58px;
  top: 0;
}

.ab-benefit-hero::after {
  width: 124px;
  height: 124px;
  right: -54px;
  top: -20px;
}

.ab-benefit-hero > * {
  position: relative;
  z-index: 1;
}

.ab-benefit-hero p {
  margin: 0;
  font-weight: 800;
}

.ab-benefit-hero strong {
  display: block;
  margin-top: 4px;
  font-size: 44px;
  line-height: 1;
}

.ab-benefit-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 7px 14px;
  background: rgba(6, 67, 166, 0.42);
  border-radius: 999px;
  font-size: 14px;
}

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

.ab-benefit {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: start;
  gap: 12px;
  padding: 16px;
  border-radius: 12px;
}

.ab-benefit strong {
  display: block;
  color: #39435a;
  margin-bottom: 2px;
}

.ab-benefit span {
  color: #66728a;
}

.ab-benefit-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #236ee8;
  background: rgba(35, 110, 232, 0.12);
}

.ab-benefit:nth-child(1) { background: #eef5ff; }
.ab-benefit:nth-child(2) { background: #f4efff; }
.ab-benefit:nth-child(3) { background: #edfbf4; }
.ab-benefit:nth-child(4) { background: #fffbe9; }

.ab-account-card {
  display: grid;
  grid-template-columns: 370px minmax(0, 1fr);
  width: min(100%, 928px);
  min-height: 744px;
  margin: 0 auto;
}

.ab-account-side {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 20px;
  padding: 178px 24px 26px;
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 255, 255, 0.86), transparent 34%),
    linear-gradient(145deg, #eef6ff 0%, #dceaff 100%);
  border-right: 1px solid var(--ab-line);
  overflow: hidden;
}

.ab-account-brand {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  text-align: center;
}

.ab-account-logo {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #0b67e9;
  font-size: 25px;
  font-weight: 900;
}

.ab-trust-pill {
  position: relative;
  z-index: 1;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  padding: 7px 14px;
  color: #0b67e9;
  background: #fff;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
}

.ab-trust-pill span {
  width: 10px;
  height: 10px;
  background: #5ed2c1;
  border: 3px solid #d9f7f2;
  border-radius: 50%;
}

.ab-account-headline {
  position: relative;
  z-index: 1;
  max-width: 330px;
  margin: 26px 0 0;
  color: #29324a;
  font-size: 31px;
  line-height: 1.18;
  font-weight: 900;
}

.ab-account-headline strong {
  color: #236ee8;
}

.ab-account-collage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  grid-template-rows: 142px 142px;
  gap: 8px;
  min-height: 292px;
  margin-top: 4px;
}

.ab-account-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border: 5px solid #fff;
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(35, 80, 150, 0.14);
  background: #dceaff;
}

.ab-account-photo-main {
  grid-row: 1 / span 2;
  object-position: center;
}

.ab-account-photo-campus {
  object-position: center top;
}

.ab-account-photo-luggage {
  object-position: center;
}

.ab-stat-row {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 4px;
}

.ab-stat {
  padding: 12px 10px;
  text-align: center;
  background: #fff;
  border-radius: 9px;
  color: #1b2a44;
  box-shadow: 0 8px 18px rgba(35, 80, 150, 0.1);
}

.ab-stat strong {
  display: block;
  color: #1469e8;
  font-size: 20px;
}

.ab-stat span {
  display: block;
  font-size: 12px;
  line-height: 1.2;
}

.ab-account-form {
  padding: 26px 25px 28px;
}

.ab-account-form h1 {
  margin: 0 0 12px;
  color: #343b54;
  font-size: 29px;
  font-weight: 900;
}

#stepHeading:focus {
  outline: none;
}

.ab-account-form > p {
  margin: 0 0 18px;
  color: #4f5c76;
  line-height: 1.5;
}

.ab-social-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 20px;
}

.ab-social {
  min-height: 48px;
  background: #fff;
  border-color: #aebbe2;
  color: #3a435b;
  font-size: 18px;
}

.ab-social-mark {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  font-weight: 900;
  line-height: 1;
}

.ab-google-mark {
  color: #4285f4;
}

.ab-facebook-mark {
  color: #4267b2;
  font-family: Arial, sans-serif;
  font-size: 25px;
}

.ab-social:hover,
.ab-auth-tab:hover {
  background: #f8fbff;
  border-color: #7e95ce;
}

.ab-social:active,
.ab-auth-tab:active {
  transform: translateY(1px);
}

.ab-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  margin: 16px 0;
  color: #4e5a72;
  font-weight: 800;
}

.ab-divider::before,
.ab-divider::after {
  content: "";
  height: 1px;
  background: var(--ab-line);
}

.ab-auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, 140px);
  justify-content: center;
  margin-bottom: 0;
}

.ab-auth-tabs-single {
  grid-template-columns: minmax(160px, 220px);
}

.ab-auth-tab {
  min-height: 50px;
  color: #657492;
  background: #fff;
  border-radius: 9px 9px 0 0;
}

.ab-auth-tab.is-selected {
  color: #0c58c5;
  background: #dceaff;
  border-bottom: 4px solid var(--ab-blue);
}

.ab-account-fields {
  padding: 22px 20px 20px;
  background: #f4f7fd;
  border: 1px solid var(--ab-line);
}

.ab-password-mode {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.ab-password-mode button {
  min-height: 42px;
  color: #22304a;
  background: #fff;
  border: 1px solid #aebbe2;
  border-radius: 9px;
  font-weight: 800;
}

.ab-password-mode button.is-selected {
  color: #fff;
  background: var(--ab-blue);
  border-color: var(--ab-blue);
}

.ab-password-control {
  position: relative;
}

.ab-password-control .ab-input {
  padding-right: 54px;
}

.ab-password-toggle {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  color: #236ee8;
  background: #e8f1ff;
  border: 1px solid #b6cef8;
  border-radius: 9px;
}

.ab-password-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ab-requirements {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  margin: 10px 0 0;
  color: #5d6c86;
  font-size: 13px;
}

.ab-requirements strong {
  grid-column: 1 / -1;
  color: #24324b;
}

.ab-requirements span::before {
  content: "-";
  margin-right: 8px;
  color: #60729b;
  font-weight: 900;
}

.ab-requirements span.is-met {
  color: var(--ab-success);
  font-weight: 800;
}

.ab-consent {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: start;
  margin: 16px 0;
  padding: 14px;
  background: #fff;
  border: 1px solid #cbd7ec;
  border-radius: 13px;
  color: #44516b;
  line-height: 1.45;
}

.ab-consent input {
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
}

.ab-toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 20;
  transform: translateX(-50%) translateY(18px);
  max-width: min(90vw, 460px);
  padding: 12px 16px;
  color: #fff;
  background: rgba(23, 33, 59, 0.94);
  border-radius: 999px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.ab-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.ab-success-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 34px;
  text-align: center;
}

.ab-success-page h1 {
  margin: 12px 0;
  font-size: 32px;
  font-weight: 900;
}

.ab-success-page p {
  color: #53627d;
  line-height: 1.55;
}

.ab-actions-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.ab-actions-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

@keyframes ab-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 900px) {
  .ab-stage {
    padding: 74px 16px 34px;
    align-items: start;
  }

  .ab-home-link {
    top: 14px;
    left: 14px;
  }

  .ab-wizard {
    width: 100%;
  }

  .ab-content-grid,
  .ab-account-card {
    grid-template-columns: 1fr;
  }

  .ab-art-panel {
    min-height: 188px;
  }

  .ab-account-side {
    min-height: auto;
    padding: 34px 30px 28px;
    border-right: 0;
    border-bottom: 1px solid var(--ab-line);
  }

  .ab-account-brand {
    justify-items: start;
    text-align: left;
  }

  .ab-account-collage {
    width: min(100%, 430px);
    margin: 8px auto 0;
  }

  .ab-stat-row {
    width: min(100%, 430px);
    margin: 4px auto 0;
  }
}

@media (max-width: 640px) {
  .ab-stage {
    padding-left: 10px;
    padding-right: 10px;
  }

  .ab-panorama {
    background:
      radial-gradient(circle at 18% 9%, rgba(255, 233, 177, 0.92) 0 28%, transparent 58%),
      linear-gradient(120deg, #ffe1a4 0%, #e2ddf8 100%);
  }

  .ab-skyline,
  .ab-gate,
  .ab-liberty {
    transform: scale(0.72);
    transform-origin: bottom left;
  }

  .ab-gate {
    right: -70px;
  }

  .ab-card {
    border-radius: 16px;
  }

  .ab-card-header,
  .ab-card-body,
  .ab-footer {
    padding-left: 14px;
    padding-right: 14px;
  }

  .ab-card-topline {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .ab-step-name {
    font-size: 15px;
  }

  .ab-progress {
    gap: 5px;
  }

  .ab-prompt-row {
    grid-template-columns: 1fr;
  }

  .ab-mascot {
    display: none;
  }

  .ab-prompt {
    padding: 14px;
  }

  .ab-prompt h1 {
    font-size: 19px;
  }

  .ab-art-panel {
    min-height: 152px;
  }

  .ab-choice-grid,
  .ab-field-grid,
  .ab-benefits-grid,
  .ab-social-row,
  .ab-password-mode,
  .ab-requirements {
    grid-template-columns: 1fr;
  }

  .ab-choice {
    min-height: 72px;
    flex-direction: row;
    justify-content: flex-start;
    padding-left: 14px;
    text-align: left;
  }

  .ab-primary {
    min-width: 100%;
  }

  .ab-account-form {
    padding: 26px 16px;
  }

  .ab-account-side {
    padding: 30px 18px;
  }

  .ab-account-brand {
    justify-items: center;
    text-align: center;
  }

  .ab-account-collage {
    grid-template-rows: 118px 118px;
  }

  .ab-account-headline {
    font-size: 26px;
  }

  .ab-auth-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ab-auth-tabs-single {
    grid-template-columns: 1fr;
  }
}

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