.auth-body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(
      circle at 15% 10%,
      rgba(99, 102, 241, 0.18),
      transparent 32%
    ),
    #f5f7fb;
  color: #172033;
}

.auth-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns:
    minmax(380px, 0.95fr)
    minmax(520px, 1.05fr);
}

.auth-showcase {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  overflow: hidden;
  padding: 42px 56px;
  color: #ffffff;
  background:
    linear-gradient(
      145deg,
      rgba(22, 30, 65, 0.98),
      rgba(40, 45, 104, 0.96)
    );
}

.auth-showcase::before {
  position: absolute;
  top: -180px;
  right: -160px;
  width: 430px;
  height: 430px;
  content: "";
  border-radius: 50%;
  background:
    rgba(130, 142, 255, 0.12);
}

.auth-showcase::after {
  position: absolute;
  bottom: -200px;
  left: -180px;
  width: 480px;
  height: 480px;
  content: "";
  border-radius: 50%;
  background:
    rgba(70, 204, 183, 0.09);
}

.auth-brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.auth-brand__mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid
    rgba(255, 255, 255, 0.18);
  border-radius: 15px;
  font-size: 25px;
  font-weight: 800;
  background:
    rgba(255, 255, 255, 0.1);
  box-shadow:
    0 14px 34px
    rgba(0, 0, 0, 0.18);
}

.auth-brand__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.auth-brand__text strong {
  font-size: 17px;
}

.auth-brand__text small {
  color:
    rgba(255, 255, 255, 0.65);
  font-size: 12px;
}

.auth-showcase__content {
  position: relative;
  z-index: 1;
  width: min(100%, 590px);
  margin: auto 0;
  padding: 72px 0;
}

.auth-eyebrow {
  margin: 0 0 14px;
  color: #6267dc;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.auth-showcase .auth-eyebrow {
  color: #aeb7ff;
}

.auth-showcase h1 {
  max-width: 650px;
  margin: 0;
  font-size:
    clamp(38px, 4vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.auth-showcase h1 span {
  display: block;
  color: #aeb7ff;
}

.auth-showcase__description {
  max-width: 570px;
  margin: 24px 0 0;
  color:
    rgba(255, 255, 255, 0.74);
  font-size: 16px;
  line-height: 1.75;
}

.auth-feature-list {
  display: grid;
  gap: 18px;
  margin-top: 42px;
}

.auth-feature {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 15px;
  align-items: start;
}

.auth-feature__icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid
    rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  color: #bdc4ff;
  background:
    rgba(255, 255, 255, 0.07);
}

.auth-feature__icon svg {
  width: 20px;
  height: 20px;
}

.auth-feature strong {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
}

.auth-feature p {
  margin: 0;
  color:
    rgba(255, 255, 255, 0.62);
  font-size: 13px;
  line-height: 1.6;
}

.auth-showcase__footer {
  position: relative;
  z-index: 1;
  margin: 0;
  color:
    rgba(255, 255, 255, 0.48);
  font-size: 12px;
}

.auth-panel {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 54px;
}

.auth-panel__inner {
  width: min(100%, 520px);
}

.auth-form-header {
  margin-bottom: 30px;
}

.auth-form-header h2 {
  margin: 0;
  color: #162039;
  font-size:
    clamp(30px, 3vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.auth-form-header > p:last-child {
  margin: 14px 0 0;
  color: #677188;
  font-size: 14px;
  line-height: 1.7;
}

.auth-alert {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 22px;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.55;
}

.auth-alert svg {
  width: 19px;
  min-width: 19px;
  height: 19px;
}

.auth-alert ul {
  margin: 7px 0 0;
  padding-left: 18px;
}

.auth-alert--error {
  border: 1px solid #fecaca;
  color: #991b1b;
  background: #fff1f2;
}

.auth-alert--success {
  border: 1px solid #bbf7d0;
  color: #166534;
  background: #f0fdf4;
}

.auth-form {
  display: grid;
  gap: 19px;
}

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

.auth-field {
  display: grid;
  gap: 8px;
}

.auth-field > span:first-child {
  color: #344054;
  font-size: 13px;
  font-weight: 700;
}

.auth-input {
  display: flex;
  min-height: 52px;
  align-items: center;
  gap: 11px;
  padding: 0 15px;
  border: 1px solid #d8deea;
  border-radius: 14px;
  background: #ffffff;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.auth-input:focus-within {
  border-color: #7276e7;
  box-shadow:
    0 0 0 4px
    rgba(99, 102, 241, 0.12);
}

.auth-input > svg {
  width: 19px;
  height: 19px;
  color: #8a94a8;
}

.auth-input input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #172033;
  font: inherit;
  font-size: 14px;
  background: transparent;
}

.auth-input input::placeholder {
  color: #9da6b8;
}

.auth-password-toggle {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 9px;
  color: #778196;
  cursor: pointer;
  background: transparent;
}

.auth-password-toggle:hover {
  color: #5258cf;
  background: #f1f2ff;
}

.auth-password-toggle svg {
  width: 18px;
  height: 18px;
}

.auth-password-rules {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: -9px;
}

.auth-password-rules span {
  padding: 5px 8px;
  border-radius: 999px;
  color: #687287;
  font-size: 10px;
  font-weight: 700;
  background: #edf0f6;
}

.auth-form__options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.auth-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #606b80;
  font-size: 12px;
  line-height: 1.5;
  cursor: pointer;
}

.auth-check input {
  margin-top: 2px;
  accent-color: #6267dc;
}

.auth-text-link,
.auth-switch a {
  color: #555bd6;
  font-weight: 750;
  text-decoration: none;
}

.auth-text-link:hover,
.auth-switch a:hover {
  text-decoration: underline;
}

.auth-submit {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 15px;
  color: #ffffff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  background:
    linear-gradient(
      135deg,
      #6366df,
      #5558c9
    );
  box-shadow:
    0 14px 30px
    rgba(85, 88, 201, 0.24);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.auth-submit:hover {
  transform: translateY(-1px);
  box-shadow:
    0 18px 36px
    rgba(85, 88, 201, 0.3);
}

.auth-submit svg {
  width: 18px;
  height: 18px;
}

.auth-switch {
  margin: 24px 0 0;
  color: #6b7488;
  font-size: 13px;
  text-align: center;
}

@media (max-width: 980px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-showcase {
    min-height: auto;
    padding: 28px 34px;
  }

  .auth-showcase__content {
    padding: 64px 0 42px;
  }

  .auth-feature-list {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }

  .auth-feature {
    grid-template-columns: 1fr;
  }

  .auth-showcase__footer {
    display: none;
  }

  .auth-panel {
    min-height: auto;
    padding: 54px 28px 70px;
  }
}

@media (max-width: 680px) {
  .auth-showcase {
    padding: 24px 22px;
  }

  .auth-showcase__content {
    padding: 46px 0 20px;
  }

  .auth-showcase h1 {
    font-size: 38px;
  }

  .auth-feature-list {
    display: none;
  }

  .auth-panel {
    padding: 40px 20px 60px;
  }

  .auth-form__row {
    grid-template-columns: 1fr;
  }

  .auth-form__options {
    align-items: flex-start;
    flex-direction: column;
  }
}
.onboarding {
  width: min(100%, 680px);
}

.onboarding__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.onboarding__top h2 {
  margin: 0;
  color: #162039;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.onboarding__top > div > p:last-child {
  max-width: 560px;
  margin: 13px 0 0;
  color: #687287;
  font-size: 14px;
  line-height: 1.65;
}

.onboarding__step-count {
  flex: 0 0 auto;
  padding: 9px 12px;
  border: 1px solid #dfe3ec;
  border-radius: 999px;
  color: #70798d;
  font-size: 12px;
  background: #ffffff;
}

.onboarding__step-count strong {
  color: #565bd5;
}

.onboarding__progress {
  height: 6px;
  margin-bottom: 30px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7eaf2;
}

.onboarding__progress span {
  display: block;
  width: 20%;
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(
      90deg,
      #6166dc,
      #8386ef
    );
  transition: width 220ms ease;
}

.onboarding-form {
  display: grid;
}

.onboarding-step {
  display: none;
}

.onboarding-step--active {
  display: block;
  animation: onboarding-enter 220ms ease;
}

@keyframes onboarding-enter {
  from {
    opacity: 0;
    transform: translateX(14px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.onboarding-step__header {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 15px;
  align-items: start;
  margin-bottom: 24px;
}

.onboarding-step__icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 15px;
  color: #5e63d8;
  background: #eceeff;
}

.onboarding-step__icon svg {
  width: 23px;
  height: 23px;
}

.onboarding-step__header h3 {
  margin: 1px 0 6px;
  color: #1c2539;
  font-size: 21px;
  letter-spacing: -0.02em;
}

.onboarding-step__header p {
  margin: 0;
  color: #70798c;
  font-size: 13px;
  line-height: 1.6;
}

.onboarding-options {
  display: grid;
  gap: 12px;
}

.onboarding-option input,
.onboarding-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.onboarding-option__card {
  display: grid;
  min-height: 78px;
  grid-template-columns: 44px 1fr 22px;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid #dfe3ed;
  border-radius: 16px;
  cursor: pointer;
  background: #ffffff;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.onboarding-option__card:hover {
  transform: translateY(-1px);
  border-color: #bfc3ee;
  box-shadow:
    0 10px 24px
    rgba(52, 59, 120, 0.08);
}

.onboarding-option input:checked
+ .onboarding-option__card {
  border-color: #696ee2;
  background: #f5f5ff;
  box-shadow:
    0 0 0 3px
    rgba(99, 102, 221, 0.1);
}

.onboarding-option__icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  color: #6267dc;
  background: #eceeff;
}

.onboarding-option__icon svg {
  width: 20px;
  height: 20px;
}

.onboarding-option__card strong {
  display: block;
  margin-bottom: 5px;
  color: #263047;
  font-size: 14px;
}

.onboarding-option__card small {
  display: block;
  color: #747d91;
  font-size: 12px;
  line-height: 1.5;
}

.onboarding-option__check {
  width: 20px;
  height: 20px;
  color: #6970df;
  opacity: 0;
}

.onboarding-option input:checked
+ .onboarding-option__card
.onboarding-option__check {
  opacity: 1;
}

.onboarding-grade-groups {
  min-height: 180px;
}

.onboarding-grade-group {
  display: none;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.onboarding-grade-group--active {
  display: grid;
}

.onboarding-chip span {
  display: grid;
  min-height: 58px;
  place-items: center;
  padding: 10px;
  border: 1px solid #dfe3ed;
  border-radius: 14px;
  color: #596277;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
  background: #ffffff;
}

.onboarding-chip input:checked + span {
  border-color: #686ee0;
  color: #555bd2;
  background: #f1f2ff;
  box-shadow:
    0 0 0 3px
    rgba(99, 102, 221, 0.1);
}

.onboarding-plan-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.onboarding-select {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid #d8deea;
  border-radius: 14px;
  outline: 0;
  color: #263047;
  font: inherit;
  font-size: 14px;
  background: #ffffff;
}

.onboarding-select:focus {
  border-color: #7276e7;
  box-shadow:
    0 0 0 4px
    rgba(99, 102, 241, 0.12);
}

.onboarding-plan-preview,
.onboarding-complete-card {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 22px;
  padding: 17px;
  border: 1px solid #dfe3ed;
  border-radius: 16px;
  background: #f9faff;
}

.onboarding-plan-preview > span,
.onboarding-complete-card > span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 13px;
  color: #5d63d7;
  background: #e9ebff;
}

.onboarding-plan-preview strong,
.onboarding-complete-card strong {
  display: block;
  margin-bottom: 4px;
  color: #29334a;
  font-size: 14px;
}

.onboarding-plan-preview p,
.onboarding-complete-card p {
  margin: 0;
  color: #737d91;
  font-size: 12px;
  line-height: 1.5;
}

.onboarding-actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 30px;
}

.onboarding-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 19px;
  border-radius: 14px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.onboarding-button svg {
  width: 17px;
  height: 17px;
}

.onboarding-button--secondary {
  border: 1px solid #d9deea;
  color: #596277;
  background: #ffffff;
}

.onboarding-button--secondary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.onboarding-button--primary {
  margin-left: auto;
  border: 0;
  color: #ffffff;
  background:
    linear-gradient(
      135deg,
      #6367df,
      #5659cb
    );
  box-shadow:
    0 12px 26px
    rgba(85, 88, 201, 0.22);
}

@media (max-width: 680px) {
  .onboarding__top {
    flex-direction: column;
  }

  .onboarding-grade-group {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .onboarding-plan-grid {
    grid-template-columns: 1fr;
  }
}