:root {
  --ink: #18222b;
  --muted: #58616c;
  --blue: #4358ed;
  --blue-dark: #263382;
  --panel: #4358e8;
  --green: #16bf6a;
  --green-soft: #dff6eb;
  --border: #e0e3e7;
  --danger: #b42318;
  --danger-bg: #fef3f2;
  --success: #067647;
  --success-bg: #ecfdf3;
  --accent-rgb: 67, 88, 237;
  --auth-page-glow: rgba(41, 65, 169, 0.78);
  --auth-page-start: #102376;
  --auth-page-mid: #0b1970;
  --auth-page-end: #07145f;
  --auth-wave-start: rgba(73, 93, 193, 0.64);
  --auth-wave-end: rgba(18, 35, 127, 0.08);
  --panel-start: #455be9;
  --panel-mid: #4257e5;
  --panel-end: #4054df;
  --brand-mark-accent: #4860ee;
  --quote-surface: #263382;
  --quote-shadow: rgba(20, 31, 112, 0.22);
  --auth-soft: #eef0ff;
  --auth-button-start: #4358e9;
  --auth-button-end: #4358ef;
  --rocket-start: #9bc7ff;
  --rocket-end: #4f89ff;
  --rocket-platform: #5367ff;
  --rocket-fin: #2545a7;
  --rocket-window: #719ef7;
  --rocket-flame: #a9ccff;
  --smoke-start: #e7efff;
  --smoke-end: #b7cdf8;
  --smoke-stroke: #dbe6ff;
  --auth-card-shadow: rgba(0, 12, 67, 0.32);
  --compact-card-shadow: rgba(0, 12, 67, 0.3);
}

html[data-theme="green"] {
  --blue: #4f942e;
  --blue-dark: #155e2b;
  --panel: #4f942e;
  --accent-rgb: 79, 148, 46;
  --auth-page-glow: rgba(81, 132, 48, 0.72);
  --auth-page-start: #173f24;
  --auth-page-mid: #0d4a24;
  --auth-page-end: #092f19;
  --auth-wave-start: rgba(119, 177, 68, 0.42);
  --auth-wave-end: rgba(12, 74, 35, 0.08);
  --panel-start: #72b92d;
  --panel-mid: #4f982e;
  --panel-end: #2f7b2d;
  --brand-mark-accent: #4f942e;
  --quote-surface: #0d6527;
  --quote-shadow: rgba(15, 79, 28, 0.25);
  --auth-soft: #edf8dc;
  --auth-button-start: #58a52d;
  --auth-button-end: #3f8e2d;
  --rocket-start: #d8efb7;
  --rocket-end: #86c94b;
  --rocket-platform: #82c63d;
  --rocket-fin: #185f2c;
  --rocket-window: #6cae35;
  --rocket-flame: #d8efb7;
  --smoke-start: #f0f9e4;
  --smoke-end: #c8e8a7;
  --smoke-stroke: #e2f2ca;
  --auth-card-shadow: rgba(7, 49, 22, 0.32);
  --compact-card-shadow: rgba(7, 49, 22, 0.3);
}

html[data-theme="brown"] {
  --blue: #98613f;
  --blue-dark: #5d3827;
  --panel: #98613f;
  --accent-rgb: 152, 97, 63;
  --auth-page-glow: rgba(137, 84, 54, 0.68);
  --auth-page-start: #533327;
  --auth-page-mid: #40271e;
  --auth-page-end: #291712;
  --auth-wave-start: rgba(185, 125, 83, 0.43);
  --auth-wave-end: rgba(77, 43, 30, 0.08);
  --panel-start: #ae754d;
  --panel-mid: #925b3a;
  --panel-end: #75432c;
  --brand-mark-accent: #98613f;
  --quote-surface: #573326;
  --quote-shadow: rgba(68, 37, 26, 0.27);
  --auth-soft: #f6eee8;
  --auth-button-start: #a76d46;
  --auth-button-end: #875236;
  --rocket-start: #f0d3b8;
  --rocket-end: #c58b5e;
  --rocket-platform: #c58255;
  --rocket-fin: #623825;
  --rocket-window: #b57950;
  --rocket-flame: #edcba9;
  --smoke-start: #fbf2e9;
  --smoke-end: #dec2aa;
  --smoke-stroke: #f2dfce;
  --auth-card-shadow: rgba(54, 27, 17, 0.32);
  --compact-card-shadow: rgba(54, 27, 17, 0.3);
}

html[data-theme="black"] {
  --blue: #343b48;
  --blue-dark: #171b22;
  --panel: #343b48;
  --accent-rgb: 52, 59, 72;
  --auth-page-glow: rgba(77, 83, 96, 0.63);
  --auth-page-start: #22262e;
  --auth-page-mid: #15181e;
  --auth-page-end: #090a0d;
  --auth-wave-start: rgba(94, 101, 116, 0.38);
  --auth-wave-end: rgba(18, 21, 27, 0.08);
  --panel-start: #424955;
  --panel-mid: #303640;
  --panel-end: #222730;
  --brand-mark-accent: #343b48;
  --quote-surface: #15191f;
  --quote-shadow: rgba(0, 0, 0, 0.3);
  --auth-soft: #eceef1;
  --auth-button-start: #414854;
  --auth-button-end: #252a32;
  --rocket-start: #d9dde3;
  --rocket-end: #929aa7;
  --rocket-platform: #727b89;
  --rocket-fin: #1d222a;
  --rocket-window: #7c8592;
  --rocket-flame: #cbd0d8;
  --smoke-start: #f1f3f5;
  --smoke-end: #bec4cc;
  --smoke-stroke: #e0e3e8;
  --auth-card-shadow: rgba(0, 0, 0, 0.38);
  --compact-card-shadow: rgba(0, 0, 0, 0.34);
}

html[data-theme="custom"] {
  --blue: var(--custom-accent);
  --blue-dark: color-mix(in srgb, var(--custom-accent), #111827 48%);
  --panel: color-mix(in srgb, var(--custom-accent), #182130 20%);
  --accent-rgb: var(--custom-accent-rgb);
  --auth-page-glow: color-mix(in srgb, var(--custom-accent), transparent 34%);
  --auth-page-start: color-mix(in srgb, var(--custom-accent), #0b111d 58%);
  --auth-page-mid: color-mix(in srgb, var(--custom-accent), #070c15 68%);
  --auth-page-end: color-mix(in srgb, var(--custom-accent), #03060b 78%);
  --auth-wave-start: color-mix(in srgb, var(--custom-accent), transparent 51%);
  --auth-wave-end: color-mix(in srgb, var(--custom-accent), transparent 90%);
  --panel-start: color-mix(in srgb, var(--custom-accent), #182130 18%);
  --panel-mid: color-mix(in srgb, var(--custom-accent), #111927 30%);
  --panel-end: color-mix(in srgb, var(--custom-accent), #0b111d 43%);
  --brand-mark-accent: var(--custom-accent);
  --quote-surface: color-mix(in srgb, var(--custom-accent), #070c15 58%);
  --quote-shadow: rgba(5, 8, 14, 0.27);
  --auth-soft: color-mix(in srgb, var(--custom-accent), white 90%);
  --auth-button-start: color-mix(in srgb, var(--custom-accent), #182130 12%);
  --auth-button-end: color-mix(in srgb, var(--custom-accent), #0b111d 30%);
  --rocket-start: color-mix(in srgb, var(--custom-accent), white 60%);
  --rocket-end: color-mix(in srgb, var(--custom-accent), white 18%);
  --rocket-platform: color-mix(in srgb, var(--custom-accent), #172033 8%);
  --rocket-fin: color-mix(in srgb, var(--custom-accent), #07101d 58%);
  --rocket-window: color-mix(in srgb, var(--custom-accent), white 28%);
  --rocket-flame: color-mix(in srgb, var(--custom-accent), white 62%);
  --smoke-start: color-mix(in srgb, var(--custom-accent), white 93%);
  --smoke-end: color-mix(in srgb, var(--custom-accent), white 70%);
  --smoke-stroke: color-mix(in srgb, var(--custom-accent), white 86%);
  --auth-card-shadow: rgba(3, 6, 11, 0.34);
  --compact-card-shadow: rgba(3, 6, 11, 0.31);
}

* {
  box-sizing: border-box;
}

.sr-only {
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  position: absolute;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

a {
  color: var(--blue);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Company workspace chooser --------------------------------------------- */
.company-choice-page {
  --company-logo-size: 80px;
  --button-start: var(--auth-button-start);
  --button-end: var(--auth-button-end);
  --button-shadow: rgba(var(--accent-rgb), 0.18);
  --input-surface: #f8f9fc;
  --input-border: var(--border);
  --input-focus: var(--blue);
  padding: 34px 4vw;
  overflow-y: auto;
}
.company-choice-card {
  width: min(760px, 94vw);
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 34px;
  color: #182230;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 28px;
  box-shadow: 0 32px 78px var(--auth-card-shadow);
  animation: auth-card-enter 0.65s cubic-bezier(0.2, 0.75, 0.2, 1) both;
}
.company-choice-heading {
  display: grid;
  justify-items: center;
  text-align: center;
}
.company-choice-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 24px;
  color: #182230;
  font-size: 17px;
}
.company-choice-brand:hover {
  text-decoration: none;
}
.company-choice-brand > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--brand-mark-accent);
  font-size: 16px;
  font-weight: 850;
  background: var(--input-surface);
  border: 1px solid var(--input-border);
  border-radius: 9px;
}
.company-choice-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  padding: 16px;
  color: #fff;
  background: linear-gradient(145deg, var(--button-start), var(--button-end));
  border-radius: 19px;
  box-shadow: 0 14px 30px var(--button-shadow);
}
.company-choice-icon span {
  width: 7px;
  background: currentColor;
  border-radius: 5px 5px 2px 2px;
}
.company-choice-icon span:nth-child(1) {
  height: 18px;
  opacity: 0.7;
}
.company-choice-icon span:nth-child(2) {
  height: 30px;
}
.company-choice-icon span:nth-child(3) {
  height: 23px;
  opacity: 0.84;
}
.company-choice-kicker {
  margin: 20px 0 8px;
  color: var(--brand-mark-accent);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.company-choice-heading h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.08;
  letter-spacing: -1.35px;
}
.company-choice-heading > p:last-child {
  max-width: 600px;
  margin: 13px 0 0;
  color: #687386;
  font-size: 14px;
  line-height: 1.6;
}
.company-choice-error {
  margin-top: 20px;
  padding: 13px 15px;
  color: #9b332f;
  font-size: 13px;
  font-weight: 700;
  background: #fff0ef;
  border: 1px solid #f1c5c2;
  border-radius: 12px;
}
.company-choice-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 13px 15px;
  color: #31446f;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  background: #f0f4ff;
  border: 1px solid #ccd7ff;
  border-radius: 12px;
}
.company-choice-notice > span {
  display: inline-grid;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  place-items: center;
  color: #fff;
  background: #4964ef;
  border-radius: 50%;
}
.company-choice-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}
.company-choice-list form {
  min-width: 0;
}
.company-choice-global-form {
  grid-column: 1 / -1;
}
.company-choice-global {
  min-height: 104px;
  background: linear-gradient(135deg, var(--input-surface), #fff);
}
.company-choice-global .company-choice-mark {
  font-size: 22px;
}
.company-choice-divider {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #8a93a4;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.company-choice-divider::before,
.company-choice-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #e7eaf1;
}
.company-choice-option {
  width: 100%;
  min-height: 144px;
  position: relative;
  display: grid;
  grid-template-columns: var(--company-logo-size) minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 24px 17px;
  color: #182230;
  text-align: left;
  cursor: pointer;
  background: #fafbfe;
  border: 1px solid #e2e6ef;
  border-radius: 16px;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}
.company-choice-option:hover {
  transform: translateY(-2px);
  background: #fff;
  border-color: var(--input-focus);
  box-shadow: 0 13px 28px rgba(20, 31, 75, 0.09);
}
.company-choice-option:focus-visible {
  outline: 3px solid rgba(67, 88, 237, 0.19);
  outline-offset: 2px;
}
.company-choice-option.current {
  background: var(--input-surface);
  border-color: var(--input-focus);
}
.company-choice-mark {
  width: var(--company-logo-size);
  height: var(--company-logo-size);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 20px;
  font-weight: 850;
  letter-spacing: 0.04em;
  background: linear-gradient(145deg, var(--button-start), var(--button-end));
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
}
.company-choice-mark.has-image {
  background: #fff;
  border: 1px solid var(--border);
}
.company-choice-mark img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 3px;
  object-fit: contain;
}
.company-choice-mark [hidden] {
  display: none !important;
}
.company-choice-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}
.company-choice-copy strong {
  overflow-wrap: anywhere;
  font-size: 15px;
  line-height: 1.3;
}
.company-choice-copy small {
  color: #778195;
  font-size: 11px;
  line-height: 1.4;
}
.company-choice-default,
.company-choice-current {
  position: absolute;
  right: 9px;
  padding: 4px 7px;
  font-size: 9px;
  font-weight: 800;
  border-radius: 999px;
}
.company-choice-default {
  top: 9px;
  color: #745420;
  background: #fff4d7;
}
.company-choice-current {
  bottom: 9px;
  color: #15744b;
  background: #e5f8ef;
}
.company-choice-arrow {
  color: var(--brand-mark-accent);
  font-size: 20px;
  transition: transform 0.18s ease;
}
.company-choice-option:hover .company-choice-arrow {
  transform: translateX(3px);
}
.company-choice-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #edf0f5;
}
.company-choice-footer > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #15744b;
  font-size: 12px;
  font-weight: 850;
  background: #e5f8ef;
  border-radius: 50%;
}
.company-choice-footer p {
  display: grid;
  gap: 2px;
  margin: 0;
}
.company-choice-footer strong {
  font-size: 11px;
}
.company-choice-footer small {
  color: #7b8495;
  font-size: 10px;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 4vw;
  /* clip avoids a hidden-but-programmatically-scrollable canvas when a
       carousel dot receives focus in a fullscreen browser. */
  overflow: clip;
  position: relative;
  background:
    radial-gradient(circle at 8% 0%, var(--auth-page-glow), transparent 40%),
    linear-gradient(
      135deg,
      var(--auth-page-start) 0%,
      var(--auth-page-mid) 45%,
      var(--auth-page-end) 100%
    );
}

.auth-page::before,
.auth-page::after {
  content: "";
  position: absolute;
  width: 70vw;
  height: 28vw;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--auth-wave-start),
    var(--auth-wave-end)
  );
  filter: blur(1px);
  pointer-events: none;
}

.auth-page::before {
  right: -20vw;
  top: 19vh;
  transform: rotate(-16deg);
}
.auth-page::after {
  left: 24vw;
  bottom: -20vw;
  transform: rotate(-12deg);
}

.auth-card {
  width: min(1240px, 92vw);
  min-height: min(780px, calc(100vh - 56px));
  max-height: 850px;
  display: grid;
  grid-template-columns: 42.5% 57.5%;
  padding: 12px;
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 31px;
  box-shadow: 0 32px 78px var(--auth-card-shadow);
  animation: auth-card-enter 0.7s cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

.brand-panel {
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 36px 38px 28px;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(
    155deg,
    var(--panel-start) 0%,
    var(--panel-mid) 60%,
    var(--panel-end) 100%
  );
  border-radius: 23px;
}

.brand {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 13px;
  color: #fff;
  font-size: clamp(25px, 2vw, 34px);
  font-weight: 700;
  letter-spacing: -0.8px;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  background: #f7f8ff;
  border-radius: 7px;
}

.brand-mark svg {
  width: 29px;
  height: 29px;
  color: var(--brand-mark-accent);
}

.auth-card .brand {
  animation: content-rise 0.55s 0.16s cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

.rocket-art {
  height: clamp(170px, 20vh, 240px);
  margin: 0 -20px 4px;
  display: grid;
  place-items: center;
}

.rocket-art svg {
  width: min(100%, 460px);
  max-height: 100%;
}

.auth-card .rocket-art {
  animation: illustration-enter 0.75s 0.22s cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

.brand-carousel {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  padding-bottom: 42px;
  overflow: hidden;
  animation: content-rise 0.6s 0.32s cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

.carousel-slides {
  min-height: 0;
  flex: 1;
  position: relative;
}

.brand-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateX(22px);
  pointer-events: none;
  overflow: hidden;
  padding-top: clamp(8px, 1.6vh, 18px);
  gap: clamp(26px, 4vh, 40px);
  transition:
    opacity 0.58s ease,
    transform 0.58s cubic-bezier(0.2, 0.75, 0.2, 1),
    visibility 0s linear 0.58s;
}

.brand-slide.is-current {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
  transition-delay: 0s;
}

.brand-copy h2 {
  margin: 0 0 13px;
  font-size: clamp(28px, 2.3vw, 42px);
  line-height: 1.08;
  letter-spacing: -1.2px;
}

.brand-copy p {
  max-width: 510px;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(15px, 1.05vw, 18px);
  line-height: 1.42;
}

.brand-quote {
  margin-top: 0;
  padding: clamp(17px, 2vh, 24px) 24px;
  text-align: center;
  background: var(--quote-surface);
  border-radius: 15px;
  box-shadow: 0 15px 28px var(--quote-shadow);
}

.brand-quote strong {
  font-size: clamp(17px, 1.15vw, 21px);
}
.brand-quote p {
  margin: 10px auto 0;
  max-width: 410px;
  font-size: clamp(13px, 0.96vw, 16px);
  line-height: 1.42;
  color: rgba(255, 255, 255, 0.94);
}

.carousel-dots {
  min-height: 34px;
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-top: 12px;
  z-index: 5;
}
.carousel-dots button {
  width: 11px;
  height: 11px;
  padding: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.5);
  border: 0;
  border-radius: 50%;
  transition:
    width 0.25s ease,
    height 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}
.carousel-dots button:hover {
  background: rgba(255, 255, 255, 0.78);
}
.carousel-dots button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.carousel-dots button.current {
  width: 15px;
  height: 15px;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.13);
}

.form-panel {
  display: grid;
  place-items: center;
  padding: 34px clamp(42px, 4.5vw, 72px);
}
.form-shell {
  width: min(100%, 580px);
}

.auth-card .form-heading {
  animation: content-rise 0.58s 0.25s cubic-bezier(0.2, 0.75, 0.2, 1) both;
}
.auth-card .progress-track {
  animation: content-rise 0.58s 0.34s cubic-bezier(0.2, 0.75, 0.2, 1) both;
}
.auth-card .auth-form .field-group {
  animation: content-rise 0.55s cubic-bezier(0.2, 0.75, 0.2, 1) both;
}
.auth-card .auth-form .field-group:nth-of-type(1) {
  animation-delay: 0.42s;
}
.auth-card .auth-form .field-group:nth-of-type(2) {
  animation-delay: 0.5s;
}
.auth-card .auth-form .submit-button {
  animation: content-rise 0.55s 0.58s cubic-bezier(0.2, 0.75, 0.2, 1) both;
}
.auth-card .security-note {
  animation: content-rise 0.5s 0.65s cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

.form-heading h1 {
  margin: 0 0 19px;
  font-size: clamp(33px, 2.5vw, 45px);
  line-height: 1.08;
  letter-spacing: -2px;
}

.form-heading p {
  max-width: 630px;
  margin: 0;
  font-size: clamp(16px, 1.2vw, 20px);
  line-height: 1.44;
}

.progress-track {
  width: 68%;
  margin: clamp(40px, 5vh, 58px) auto clamp(38px, 4.7vh, 54px);
  position: relative;
  display: grid;
  grid-template-columns: 22px 1fr 22px 1fr 22px;
  align-items: center;
}

.progress-node {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 2;
  justify-self: center;
  border-radius: 50%;
  background: var(--green-soft);
  transition:
    background 0.3s ease,
    transform 0.3s ease;
}

.progress-node i {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
  transition: background 0.3s ease;
}
.progress-node.is-complete {
  background: var(--green);
  transform: scale(0.94);
}
.progress-node.is-complete i {
  background: #fff;
}

.progress-active-marker {
  width: 34px;
  height: 34px;
  position: absolute;
  top: 50%;
  left: 11px;
  z-index: 3;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  box-shadow:
    0 0 0 3px #fff,
    0 0 0 6px var(--green);
  transform: translate(-50%, -50%);
  transition:
    left 0.42s cubic-bezier(0.22, 0.8, 0.28, 1),
    transform 0.3s ease;
}

.progress-active-marker i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
}
.progress-track[data-step="2"] .progress-active-marker {
  left: 50%;
}
.progress-track[data-step="3"] .progress-active-marker {
  left: calc(100% - 11px);
}

.progress-line {
  height: 3px;
  margin: 0 12px;
  background: var(--green-soft);
  transition: background 0.22s ease;
}
.progress-line.is-complete {
  background: var(--green);
}

.progress-track.is-goal .progress-active-marker {
  animation: goal-pulse 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.progress-track.is-goal .progress-active-marker i {
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  color: var(--green);
  font-size: 14px;
  font-style: normal;
  font-weight: 900;
  background: #fff;
}

.progress-track.is-goal .progress-active-marker i::before {
  content: "✓";
}

.auth-form {
  display: grid;
  gap: 18px;
}
.field-group {
  display: grid;
  gap: 9px;
}
.field-group label {
  color: #1e2630;
  font-size: 15px;
  font-weight: 650;
}
.label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}
.label-row a {
  font-size: 15px;
  font-weight: 650;
}

.form-input {
  width: 100%;
  height: 56px;
  padding: 0 16px;
  color: #202933;
  font-size: 15px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  outline: none;
  box-shadow: 0 2px 5px rgba(29, 38, 53, 0.025);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.form-input::placeholder {
  color: #9aa1aa;
}
.form-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.12);
}

.password-field {
  position: relative;
}
.password-field .form-input {
  padding-right: 58px;
}

.password-toggle {
  width: 48px;
  height: 48px;
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  padding: 0;
  color: #25303b;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 8px;
}

.password-toggle:hover {
  background: #f4f5f8;
}
.password-toggle:focus-visible {
  outline: 3px solid rgba(var(--accent-rgb), 0.28);
}
.password-toggle svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.password-toggle svg[hidden] {
  display: none;
}

.field-error {
  min-height: 0;
  color: var(--danger);
  font-size: 13px;
}
.field-error:empty {
  display: none;
}

.alert {
  padding: 13px 15px;
  font-size: 14px;
  line-height: 1.45;
  border: 1px solid;
  border-radius: 9px;
}
.alert-error {
  color: var(--danger);
  background: var(--danger-bg);
  border-color: #fecdca;
}
.alert-success {
  color: var(--success);
  background: var(--success-bg);
  border-color: #abefc6;
}

.submit-button,
.secondary-button {
  height: 54px;
  display: inline-grid;
  place-items: center;
  margin-top: clamp(18px, 2.8vh, 31px);
  padding: 0 30px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(
    90deg,
    var(--auth-button-start),
    var(--auth-button-end)
  );
  border: 0;
  border-radius: 10px;
  box-shadow: 0 10px 18px rgba(var(--accent-rgb), 0.16);
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease;
}

.submit-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 13px 22px rgba(var(--accent-rgb), 0.24);
}
.submit-button:active {
  transform: translateY(0);
}
.submit-button:focus-visible,
.secondary-button:focus-visible {
  outline: 4px solid rgba(var(--accent-rgb), 0.25);
  outline-offset: 2px;
}
.submit-button.is-success {
  background: linear-gradient(90deg, #12b76a, #18c978);
}

.security-note {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 19px 0 0;
  color: #707985;
  font-size: 12px;
}
.security-note svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.compact-page {
  padding: 32px;
  overflow: auto;
}
.compact-card {
  width: min(520px, 100%);
  padding: 32px;
  position: relative;
  z-index: 1;
  text-align: center;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 30px 70px var(--compact-card-shadow);
  animation: auth-card-enter 0.65s cubic-bezier(0.2, 0.75, 0.2, 1) both;
}
.compact-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue);
  font-size: 20px;
  font-weight: 750;
}
.compact-brand:hover {
  text-decoration: none;
}
.brand-mark.small {
  width: 34px;
  height: 34px;
  color: #fff;
  background: var(--blue);
}
.compact-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 24px auto 17px;
  color: var(--blue);
  background: var(--auth-soft);
  border-radius: 50%;
}
.compact-icon svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.compact-card h1 {
  margin: 0 0 10px;
  font-size: 28px;
  letter-spacing: -0.7px;
}
.compact-card > p {
  margin: 0 auto 21px;
  max-width: 390px;
  color: var(--muted);
  line-height: 1.48;
}
.compact-form {
  text-align: left;
}
.compact-form .submit-button {
  width: 100%;
  margin-top: 8px;
}
.compact-card .alert {
  margin: 0 0 22px;
  text-align: left;
}
.back-link {
  display: inline-block;
  margin-top: 25px;
  font-weight: 650;
}
.password-hint {
  margin-top: -2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.compact-success-button {
  width: 100%;
  margin-top: 3px;
  text-decoration: none;
}
.compact-success-button:hover {
  text-decoration: none;
}

@keyframes auth-card-enter {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes illustration-enter {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes content-rise {
  from {
    opacity: 0;
    transform: translateY(13px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes goal-pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.88);
    box-shadow:
      0 0 0 3px #fff,
      0 0 0 6px var(--green);
  }
  45% {
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow:
      0 0 0 3px #fff,
      0 0 0 12px rgba(22, 191, 106, 0.2);
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow:
      0 0 0 3px #fff,
      0 0 0 7px var(--green);
  }
}

.dashboard-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 30px;
  background: #f1f3fa;
}
.dashboard-card {
  width: min(650px, 100%);
  padding: 52px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 20px 50px rgba(26, 40, 92, 0.12);
}
.dashboard-kicker {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.15em;
}
.dashboard-card h1 {
  margin: 8px 0 32px;
  font-size: 44px;
}
.dashboard-card dl {
  margin: 0;
}
.dashboard-card dl div {
  display: grid;
  grid-template-columns: 140px 1fr;
  padding: 17px 0;
  border-top: 1px solid #e8eaf0;
}
.dashboard-card dt {
  color: var(--muted);
}
.dashboard-card dd {
  margin: 0;
  font-weight: 700;
}
.secondary-button {
  height: 48px;
  margin-top: 30px;
}

@media (max-height: 900px) and (min-width: 901px) {
  .auth-page {
    padding-block: 18px;
  }
  .auth-card {
    min-height: min(720px, calc(100vh - 36px));
  }
  .brand-panel {
    padding-top: 30px;
    padding-bottom: 22px;
  }
  .rocket-art {
    height: 165px;
  }
  .brand-copy h2 {
    font-size: 31px;
  }
  .brand-copy p {
    font-size: 14px;
  }
  .brand-quote {
    padding: 15px 20px;
  }
  .brand-slide {
    padding-top: 5px;
    gap: 22px;
  }
  .brand-quote p {
    margin-top: 8px;
    font-size: 13px;
  }
  .form-heading h1 {
    margin-bottom: 15px;
    font-size: 38px;
  }
  .form-heading p {
    font-size: 17px;
  }
  .progress-track {
    margin-top: 34px;
    margin-bottom: 32px;
  }
  .form-input {
    height: 52px;
  }
  .submit-button {
    height: 50px;
    margin-top: 14px;
  }
}

@media (max-width: 1050px) {
  .auth-card {
    width: min(94vw, 900px);
    grid-template-columns: 40% 60%;
  }
  .brand-panel {
    padding: 30px 28px 22px;
  }
  .brand-quote {
    padding-inline: 18px;
  }
  .form-panel {
    padding: 45px;
  }
  .brand-copy h2 {
    font-size: 29px;
  }
  .brand-copy p {
    font-size: 14px;
  }
  .brand-quote strong {
    font-size: 16px;
  }
  .brand-quote p {
    font-size: 12px;
  }
}

@media (max-width: 780px) {
  .auth-page {
    padding: 20px;
    overflow: auto;
  }
  .company-choice-page {
    --company-logo-size: 64px;
    padding: 18px;
  }
  .company-choice-card {
    width: 100%;
    padding: 27px 18px 22px;
    border-radius: 22px;
  }
  .company-choice-list {
    grid-template-columns: 1fr;
  }
  .company-choice-option {
    min-height: 124px;
    padding: 22px 14px;
  }
  .company-choice-footer {
    align-items: flex-start;
  }
  .auth-card {
    width: 100%;
    min-height: auto;
    max-height: none;
    display: block;
    padding: 8px;
    border-radius: 24px;
  }
  .brand-panel {
    min-height: 285px;
    padding: 27px;
    border-radius: 18px;
  }
  .brand {
    font-size: 27px;
  }
  .brand-mark {
    width: 38px;
    height: 38px;
  }
  .brand-panel {
    min-height: 470px;
  }
  .rocket-art {
    display: none;
  }
  .brand-carousel {
    margin-top: 35px;
  }
  .carousel-slides {
    min-height: 300px;
  }
  .brand-copy h2 {
    margin-bottom: 9px;
    font-size: 34px;
  }
  .brand-copy p {
    font-size: 16px;
  }
  .brand-slide {
    padding-top: 4px;
    gap: 24px;
  }
  .brand-quote {
    padding: 18px;
  }
  .brand-quote p {
    margin-top: 10px;
    font-size: 14px;
  }
  .carousel-dots {
    padding-top: 13px;
  }
  .form-panel {
    padding: 42px 24px 35px;
  }
  .form-heading h1 {
    margin-bottom: 15px;
    font-size: 37px;
  }
  .form-heading p {
    font-size: 17px;
  }
  .progress-track {
    width: 78%;
    margin: 41px auto 40px;
  }
  .form-input {
    height: 58px;
  }
  .submit-button {
    height: 56px;
    margin-top: 13px;
  }
}

@media (max-width: 460px) {
  .auth-page {
    padding: 0;
    background: #fff;
  }
  .company-choice-page {
    min-height: 100vh;
    padding: 0;
    background: #fff;
  }
  .company-choice-card {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .auth-card {
    padding: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .brand-panel {
    min-height: 450px;
    border-radius: 0 0 24px 24px;
  }
  .form-panel {
    padding-inline: 20px;
  }
  .label-row {
    align-items: center;
  }
  .compact-page {
    padding: 0;
  }
  .compact-card {
    min-height: 100vh;
    padding: 32px 22px;
    border-radius: 0;
  }
  .dashboard-card {
    padding: 32px 24px;
  }
  .dashboard-card dl div {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
