.login-shell {
  display: block;
  min-height: 100vh;
  padding: 0;
  background: #fff;
}

.auth-layout {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(560px, 1fr) minmax(500px, 1fr);
}

.auth-form-panel {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  padding: 38px clamp(28px, 7vw, 110px);
  background: #fff;
}

.auth-form-wrap {
  width: min(500px, 100%);
}

.login-auth-wrap {
  width: min(450px, 100%);
}

.signup-auth-wrap {
  width: min(620px, 100%);
  padding-block: 8px;
}

.auth-back-home {
  display: inline-flex;
  margin-bottom: clamp(48px, 8vh, 96px);
  align-items: center;
  color: #667085;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
}

.signup-auth-wrap .auth-back-home {
  margin-bottom: clamp(22px, 4vh, 44px);
}

.auth-back-home:hover {
  color: var(--purple);
}

.auth-heading {
  margin-bottom: 24px;
}

.auth-heading > span {
  display: block;
  margin-bottom: 7px;
  color: var(--purple);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .14em;
}

.auth-heading h1 {
  margin: 0;
  color: #172036;
  font-size: clamp(31px, 3vw, 40px);
  line-height: 1.12;
  letter-spacing: -.035em;
}

.auth-heading p {
  margin: 8px 0 0;
  color: #758097;
  font-size: 12px;
  line-height: 1.55;
}

.auth-method-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-bottom: 22px;
  padding: 5px;
  border: 1px solid #e4e7ec;
  border-radius: 13px;
  background: #f7f8fb;
}

.auth-method-tabs button {
  min-height: 40px;
  border-radius: 9px;
  padding: 9px 12px;
  background: transparent;
  color: #7a8497;
  font-size: 11px;
}

.auth-method-tabs button.active {
  background: #fff;
  color: var(--purple);
  box-shadow: 0 5px 16px rgba(31, 25, 76, .09);
}

.auth-main-form,
.signup-form-grid {
  gap: 15px;
}

.signup-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.signup-form-grid .auth-wide {
  grid-column: 1 / -1;
}

.auth-main-form label,
.signup-form-grid > label:not(.consent-check),
.otp-create-step label {
  gap: 8px;
  color: #28344d;
  font-size: 11px;
  font-weight: 750;
}

.auth-main-form label b,
.signup-form-grid label b,
.otp-create-step label b {
  display: inline;
  margin-left: 2px;
  color: #ef4444;
  font-weight: 800;
}

.auth-main-form input,
.signup-form-grid input,
.otp-create-step input {
  min-height: 46px;
  border-color: #dce1ea;
  border-radius: 9px;
  padding: 12px 13px;
  font-size: 12px;
}

.auth-main-form input::placeholder,
.signup-form-grid input::placeholder {
  color: #a0a9ba;
}

.auth-form-help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: -2px;
  color: #7d8798;
  font-size: 10px;
}

.auth-form-help a {
  color: var(--purple);
  font-weight: 750;
  text-decoration: none;
}

.auth-otp-note {
  margin: -2px 0 0;
  color: #7c8699;
  font-size: 10px;
  line-height: 1.5;
}

.auth-submit {
  width: 100%;
  min-height: 46px;
  border-radius: 9px;
  box-shadow: 0 10px 24px rgba(109, 40, 217, .18);
}

.auth-switch {
  margin: 20px 0 0;
  color: #667085;
  font-size: 11px;
}

.auth-switch button {
  display: inline;
  padding: 0;
  color: var(--purple);
  background: transparent;
  font-size: inherit;
  font-weight: 800;
}

.consent-check {
  display: grid;
  align-items: start;
  gap: 10px;
  grid-template-columns: 18px 1fr !important;
  color: #4d586e !important;
  font-size: 10px !important;
  font-weight: 550 !important;
  line-height: 1.5;
}

.consent-check input {
  width: 17px !important;
  min-height: 17px !important;
  height: 17px;
  margin: 1px 0 0;
  padding: 0;
  accent-color: var(--purple);
}

.consent-check a {
  color: var(--purple);
}

.optional-consent {
  margin-top: -6px;
}

.password-rule {
  margin: -7px 0 1px;
  color: #778196;
  font-size: 10px;
  line-height: 1.45;
}

.otp-create-step {
  padding: 14px;
  border: 1px solid #e4dcfa;
  border-radius: 12px;
  background: #faf8ff;
}

.auth-brand-panel {
  position: relative;
  display: grid;
  min-width: 0;
  overflow: hidden;
  place-items: center;
  padding: 60px;
  color: #fff;
  background:
    radial-gradient(circle at 78% 18%, rgba(109, 40, 217, .3), transparent 30%),
    radial-gradient(circle at 15% 82%, rgba(22, 163, 106, .2), transparent 33%),
    linear-gradient(145deg, #121742, #171a59 58%, #11163f);
}

.auth-brand-panel::before,
.auth-brand-panel::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 50%;
  content: "";
}

.auth-brand-panel::before {
  top: -170px;
  right: -160px;
  width: 430px;
  height: 430px;
}

.auth-brand-panel::after {
  bottom: -230px;
  left: -170px;
  width: 510px;
  height: 510px;
}

.auth-grid-pattern {
  position: absolute;
  inset: 0;
  opacity: .72;
  background-image:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-position: center;
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, transparent 8%, #000 30%, #000 72%, transparent 94%);
}

.auth-brand-content {
  position: relative;
  z-index: 2;
  width: min(500px, 100%);
  text-align: center;
}

.auth-brand-lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
}

.auth-brand-lockup .brand-mark {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(7, 9, 34, .28);
}

.auth-brand-lockup strong {
  color: #fff;
  font-size: 21px;
  letter-spacing: -.01em;
}

.auth-brand-content h2 {
  max-width: 520px;
  margin: 27px auto 12px;
  color: #fff;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.2;
  letter-spacing: -.035em;
}

.auth-brand-content > p {
  max-width: 480px;
  margin: 0 auto;
  color: rgba(228, 230, 255, .72);
  font-size: 13px;
  line-height: 1.65;
}

.auth-brand-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.auth-brand-points span {
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  color: rgba(245, 246, 255, .9);
  background: rgba(255, 255, 255, .06);
  font-size: 9px;
  font-weight: 700;
}

.form-error {
  border: 1px solid #fecdd3;
}

@media (max-width: 1100px) {
  .auth-layout {
    grid-template-columns: minmax(510px, 1.1fr) minmax(400px, .9fr);
  }

  .auth-form-panel {
    padding-inline: 50px;
  }

  .auth-brand-panel {
    padding-inline: 34px;
  }
}

@media (max-width: 900px) {
  .auth-layout {
    display: block;
    min-height: 100vh;
  }

  .auth-form-panel {
    min-height: 100vh;
    align-items: flex-start;
    padding: 34px 24px 75px;
  }

  .auth-form-wrap {
    margin-inline: auto;
  }

  .auth-back-home,
  .signup-auth-wrap .auth-back-home {
    margin-bottom: 42px;
  }

  .auth-brand-panel {
    display: none;
  }
}

@media (max-width: 600px) {
  .auth-form-panel {
    padding: 24px 18px 70px;
  }

  .signup-form-grid {
    grid-template-columns: 1fr;
  }

  .signup-form-grid .auth-wide {
    grid-column: auto;
  }

  .auth-heading h1 {
    font-size: 31px;
  }

  .auth-heading p {
    font-size: 11px;
  }

  .auth-method-tabs button {
    padding-inline: 7px;
    font-size: 10px;
  }
}
