.auth-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 18%, rgba(49, 86, 220, .12), transparent 25%),
    radial-gradient(circle at 90% 86%, rgba(255, 117, 94, .13), transparent 24%),
    #f8f6f0 !important;
}

.auth-page .auth-stage {
  min-height: calc(100vh - 5rem);
  padding-top: 48px;
  padding-bottom: 48px;
  background: transparent !important;
}

.auth-page .auth-card {
  overflow: hidden;
  border: 1px solid rgba(23, 37, 84, .1) !important;
  border-radius: 28px !important;
  background: #fff !important;
  box-shadow: 0 28px 90px rgba(23, 37, 84, .15) !important;
  animation: auth-card-enter .6s both;
}

.auth-page .auth-panel {
  position: relative;
  display: flex;
  min-height: 590px;
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
  border: 0;
  background-color: #172554 !important;
  background-image:
    linear-gradient(180deg, rgba(15, 27, 66, .38) 0%, rgba(15, 27, 66, .82) 65%, #172554 100%),
    url("/static/hero_5.jpg") !important;
  background-position: center;
  background-size: cover;
  color: #fff !important;
}

.auth-page .auth-panel--register {
  background-image:
    linear-gradient(180deg, rgba(15, 27, 66, .28) 0%, rgba(15, 27, 66, .78) 65%, #172554 100%),
    url("/static/hero_4.jpg") !important;
}

.auth-page .auth-panel::after {
  position: absolute;
  top: 48%;
  right: -120px;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 50%;
  box-shadow: 0 0 0 25px rgba(255, 255, 255, .045), 0 0 0 52px rgba(255, 255, 255, .035);
  content: "";
  pointer-events: none;
}

.auth-page .auth-panel-brand,
.auth-page .auth-panel > div:nth-child(2),
.auth-page .auth-panel-bottom {
  position: relative;
  z-index: 1;
}

.auth-page .auth-brand-mark {
  display: block;
  width: 45px;
  height: 45px;
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 15px;
  background: transparent;
  object-fit: cover;
  transform: rotate(-6deg);
}

.auth-page .auth-panel-brand > span:last-child {
  color: #fff;
  font-size: 13px;
  letter-spacing: .02em;
}

.auth-page .auth-panel-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  background: rgba(23, 37, 84, .35);
  color: #e0f2fe !important;
  font-size: 9px;
}

.auth-page .auth-panel-kicker::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d7f36b;
  content: "";
}

.auth-page .auth-panel-title {
  max-width: 430px;
  font-size: clamp(2.3rem, 4vw, 3.8rem);
  letter-spacing: -.065em;
  line-height: .98;
}

.auth-page .auth-panel-title em {
  color: #d7f36b;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.auth-page .auth-panel > div:nth-child(2) > p:last-child {
  max-width: 340px;
  color: #e1e8f5 !important;
  font-size: 13px;
  line-height: 1.85;
}

.auth-page .auth-panel-bottom {
  max-width: 365px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .26);
}

.auth-page .auth-panel-bottom > i {
  color: #d7f36b;
  font-size: 18px;
}

.auth-page .auth-panel-bottom p {
  margin: 9px 0 15px;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.45;
}

.auth-page .auth-panel-bottom span {
  color: #cbd5e1;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .2em;
}

.auth-page .auth-form-panel {
  align-self: center;
  width: 100%;
  padding: clamp(30px, 5vw, 66px) !important;
  background: #fff !important;
}

.auth-page .auth-form-kicker {
  color: #3156dc !important;
  font-size: 9px;
  letter-spacing: .16em;
}

.auth-page .auth-form-panel h2 {
  color: #172033 !important;
  font-size: clamp(2.25rem, 3vw, 3rem);
  letter-spacing: -.065em;
}

.auth-page .auth-form {
  margin-top: 34px;
}

.auth-page .auth-form label {
  margin-bottom: 8px;
  color: #27334d !important;
  font-size: 12px;
  font-weight: 800;
}

.auth-page .auth-form input {
  min-height: 51px;
  border: 1px solid #dce1eb !important;
  border-radius: 13px !important;
  background: #f8f9fc !important;
  color: #172033 !important;
  font-size: 13px;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.auth-page .auth-form input:focus {
  border-color: #3156dc !important;
  outline: 0 !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(49, 86, 220, .12) !important;
}

.auth-page .auth-form button[type="submit"] {
  min-height: 54px;
  margin-top: 8px;
  border-radius: 999px !important;
  background: #172554 !important;
  color: #fff !important;
  box-shadow: 0 12px 25px rgba(23, 37, 84, .18) !important;
  font-size: 13px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.auth-page .auth-form button[type="submit"]:hover {
  transform: translateY(-2px);
  background: #3156dc !important;
  box-shadow: 0 16px 32px rgba(49, 86, 220, .25) !important;
}

.auth-page .auth-form button[aria-label] {
  right: 12px;
}

.auth-page .auth-form button[aria-label]:hover {
  color: #3156dc !important;
}

.auth-page .auth-form-panel .text-brand-700,
.auth-page .auth-form-panel a {
  color: #3156dc !important;
  transition: color .2s ease;
}

.auth-page .auth-form-panel a:hover {
  color: #172554 !important;
}

.auth-page .auth-form-panel > p:last-child {
  margin-top: 29px;
  color: #687084 !important;
  font-size: 12px;
}

@keyframes auth-card-enter {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 760px) {
  .auth-page .auth-stage {
    min-height: auto;
    padding: 28px 16px 40px;
  }

  .auth-page .auth-card {
    max-width: 540px;
    border-radius: 23px !important;
  }

  .auth-page .auth-panel {
    min-height: 340px;
    gap: 32px;
    padding: 30px !important;
  }

  .auth-page .auth-panel-title {
    max-width: 390px;
    font-size: 2.5rem;
  }

  .auth-page .auth-panel-bottom {
    display: none;
  }

  .auth-page .auth-form-panel {
    padding: 34px 30px 38px !important;
  }
}

@media (max-width: 420px) {
  .auth-page .auth-panel {
    min-height: 300px;
    padding: 24px !important;
  }

  .auth-page .auth-form-panel {
    padding: 30px 23px 34px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-page *,
  .auth-page *::before,
  .auth-page *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
