body.auth-page {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(31, 168, 104, .08), transparent 24%),
    radial-gradient(circle at top right, rgba(59, 130, 246, .07), transparent 22%),
    radial-gradient(circle at bottom left, rgba(15, 23, 42, .05), transparent 26%),
    linear-gradient(180deg, #f7f9fc 0%, #edf3f8 100%);
}

.auth-page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  gap: .75rem;
  padding: 1.5rem 1rem 2rem;
}

.auth-page-shell__card {
  width: min(100%, 760px);
  border-radius: 2rem;
  background: rgba(255, 255, 255, .98);
  border: 1px solid rgba(15, 23, 42, .08);
  box-shadow:
    0 1.5rem 3.5rem rgba(15, 23, 42, .08),
    inset 0 1px 0 rgba(255, 255, 255, .8);
  padding: clamp(1.25rem, 2.4vw, 2rem);
  position: relative;
  overflow: hidden;
}

.auth-page-shell__card::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: .3rem;
  background: linear-gradient(90deg, var(--auth-accent, #1fa868), rgba(31, 168, 104, .2));
}

.auth-page-shell__card::after {
  content: '';
  position: absolute;
  right: -8rem;
  top: -8rem;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 168, 104, .12), transparent 70%);
  pointer-events: none;
}

.auth-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 1.15rem;
}

.auth-brand__mark {
  width: 6.75rem;
  height: 6.75rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .06);
  box-shadow: 0 .8rem 1.8rem rgba(15, 23, 42, .08);
  overflow: hidden;
}

.auth-brand__mark img {
  width: 78%;
  height: 78%;
  object-fit: contain;
}

.auth-brand__mark span {
  color: #0f1729;
  font-size: 1.75rem;
  font-weight: 800;
}

.auth-page-shell__header {
  text-align: center;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.auth-page-shell__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0 .8rem;
  margin-bottom: .9rem;
  border-radius: 999px;
  background: rgba(31, 168, 104, .1);
  color: color-mix(in srgb, var(--auth-accent, #1fa868) 78%, #0f1729);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.auth-page-shell__header h1 {
  margin: 0;
  color: #172033;
  font-size: clamp(2rem, 3.4vw, 3.15rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.05em;
}

.auth-page-shell__header p {
  margin: .9rem auto 0;
  max-width: 34rem;
  color: #6b7a90;
  font-size: .98rem;
  line-height: 1.55;
}

.auth-page-shell__body {
  width: min(100%, 560px);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.auth-form {
  display: grid;
  gap: .85rem;
}

.auth-form__header {
  display: grid;
  gap: .3rem;
  margin-bottom: .35rem;
  text-align: center;
}

.auth-form__header h4 {
  margin: 0;
  color: #172033;
  font-size: 1.15rem;
  font-weight: 700;
}

.auth-form__header p,
.auth-copy-muted {
  margin: 0;
  color: #6b7a90;
  font-size: .92rem;
  line-height: 1.5;
}

.auth-page-shell .form-group {
  margin-bottom: .85rem;
}

.auth-page-shell label,
.auth-page-shell .form-check-label {
  color: #394658;
  font-size: .86rem;
  font-weight: 600;
}

.auth-page-shell .form-control {
  min-height: 2.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(15, 23, 42, .12);
  background-color: #fff;
  box-shadow: none;
  color: #172033;
}

.auth-page-shell .form-control::placeholder {
  color: #97a3b5;
}

.auth-page-shell .form-control:focus {
  border-color: rgba(var(--bs-warning-rgb), .62);
  background-color: #fff;
  box-shadow: 0 0 0 .2rem rgba(var(--bs-warning-rgb), .18);
}

.auth-password-field .form-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.auth-password-field {
  border-radius: 1rem;
}

.auth-password-field .input-group-text,
.auth-password-field .auth-password-toggle {
  border: 1px solid rgba(15, 23, 42, .12);
  border-left: 0;
  background: #fff;
  color: #526173;
}

.auth-password-toggle {
  min-width: 4.5rem;
  min-height: 2.5rem;
  border-top-right-radius: 1rem;
  border-bottom-right-radius: 1rem;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  font-size: .82rem;
  font-weight: 700;
}

.auth-password-field:focus-within .form-control,
.auth-password-field:focus-within .auth-password-toggle {
  border-color: rgba(var(--bs-warning-rgb), .62);
}

.auth-password-field:focus-within {
  box-shadow: 0 0 0 .2rem rgba(var(--bs-warning-rgb), .18);
}

.auth-password-field .auth-password-toggle:focus,
.auth-password-field .auth-password-toggle:focus-visible {
  border-color: rgba(var(--bs-warning-rgb), .62);
  box-shadow: none;
  outline: 0;
}

.auth-page-shell .form-select {
  min-height: 2.5rem;
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 1rem;
  background-color: #fff;
  box-shadow: none;
}

.auth-page-shell .form-select:focus {
  border-color: rgba(var(--bs-warning-rgb), .62);
  background-color: #fff;
  box-shadow: 0 0 0 .2rem rgba(var(--bs-warning-rgb), .18);
}

.auth-page-shell .btn-primary,
.auth-page-shell .btn.btn-primary {
  min-height: 3.15rem;
  border-radius: 1rem;
  border: 1px solid #111b33;
  background: #111b33;
  color: #fff;
  box-shadow: 0 .95rem 1.8rem rgba(17, 27, 51, .16);
  font-weight: 700;
  letter-spacing: -.01em;
}

.auth-page-shell .btn-primary:hover,
.auth-page-shell .btn.btn-primary:hover {
  background: color-mix(in srgb, var(--auth-accent, #1fa868) 92%, #111b33);
  border-color: color-mix(in srgb, var(--auth-accent, #1fa868) 92%, #111b33);
}

.auth-link {
  color: color-mix(in srgb, var(--auth-accent, #1fa868) 88%, #0f1729);
  font-weight: 700;
  text-decoration: none;
}

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

.auth-footer-note {
  margin-top: .35rem;
  color: #6b7a90;
  font-size: .94rem;
  text-align: center;
}

.auth-page-shell__support {
  color: #64748b;
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
}

.auth-page-shell__support:hover {
  color: #172033;
  text-decoration: underline;
}

.auth-page-shell .form-check {
  padding-left: 1.55rem;
}

.auth-page-shell .form-check-input {
  margin-top: .3rem;
}

.auth-captcha-field {
  display: grid;
  gap: .6rem;
}

.auth-captcha-field__label {
  color: #394658;
  font-size: .86rem;
  font-weight: 600;
}

.auth-captcha-field__question-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 8.5rem;
  gap: .75rem;
  align-items: stretch;
}

.auth-captcha-field__question {
  min-height: 3.45rem;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: 0 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(15, 23, 42, .12);
  background: #f8fafc;
  color: #344054;
  font-size: .98rem;
  font-weight: 600;
  line-height: 1.2;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
}

.auth-captcha-field__question-mark {
  width: 1.7rem;
  height: 1.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(31, 168, 104, .12);
  color: var(--auth-accent, #1fa868);
  font-size: .95rem;
  font-weight: 800;
  flex: 0 0 auto;
}

.auth-captcha-field__answer .auth-captcha-field__input {
  min-height: 3.45rem;
  border-radius: 1rem;
  text-align: center;
  font-weight: 700;
  letter-spacing: .02em;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
}

.auth-captcha-field__answer .auth-captcha-field__input::placeholder {
  color: #9aa4b2;
  font-weight: 500;
}

.auth-captcha-field__answer .auth-captcha-field__input:focus {
  border-color: color-mix(in srgb, var(--auth-accent, #1fa868) 55%, #fff);
  box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--auth-accent, #1fa868) 12%, transparent);
}

.auth-page-shell .btn,
.auth-page-shell .form-control,
.auth-page-shell .form-select {
  transition: all .18s ease;
}

@media (max-width: 767.98px) {
  .auth-page-shell {
    padding-inline: .9rem;
  }

  .auth-page-shell__card {
    border-radius: 1.35rem;
    padding: 1.25rem;
  }

  .auth-brand__mark {
    width: 5.6rem;
    height: 5.6rem;
  }

  .auth-page-shell__header h1 {
    font-size: 1.8rem;
  }

  .auth-page-shell__header p {
    font-size: .96rem;
  }

  .auth-captcha-field__question-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .auth-captcha-field {
    gap: .45rem;
  }

  .auth-captcha-field__label {
    font-size: .82rem;
  }

  .auth-captcha-field__question-row {
    gap: .5rem;
  }

  .auth-captcha-field__question {
    min-height: 3rem;
    padding-inline: .85rem;
    font-size: .92rem;
    border-radius: .9rem;
  }

  .auth-captcha-field__question-mark {
    width: 1.5rem;
    height: 1.5rem;
    font-size: .82rem;
  }

  .auth-captcha-field__answer .auth-captcha-field__input {
    min-height: 3rem;
    border-radius: .9rem;
    font-size: .95rem;
  }
}
