:root {
  --auth-navy: #101a33;
  --auth-blue: #2864ed;
  --auth-violet: #6557e8;
  --auth-ink: #16213d;
  --auth-muted: #65718b;
  --auth-line: #dbe4f3;
  --auth-soft: #f3f7ff;
}

* {
  box-sizing: border-box;
}

body.auth-page {
  min-height: 100vh;
  margin: 0;
  color: var(--auth-ink);
  background:
    radial-gradient(circle at 8% 8%, rgba(55, 125, 255, .14), transparent 30rem),
    radial-gradient(circle at 92% 92%, rgba(101, 87, 232, .12), transparent 28rem),
    #edf3fb;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.auth-shell {
  width: min(1180px, calc(100% - 40px));
  min-height: min(760px, calc(100vh - 56px));
  margin: 28px auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
  overflow: hidden;
  border: 1px solid rgba(111, 135, 181, .24);
  border-radius: 30px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 28px 80px rgba(25, 44, 88, .16);
}

.auth-visual {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 700px;
  padding: 48px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(145deg, #101a33 0%, #173b86 52%, #4c54d9 100%);
}

.auth-visual::before,
.auth-visual::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .13);
}

.auth-visual::before {
  width: 520px;
  height: 520px;
  top: -225px;
  right: -170px;
  box-shadow: 0 0 0 76px rgba(255, 255, 255, .035), 0 0 0 152px rgba(255, 255, 255, .025);
}

.auth-visual::after {
  width: 350px;
  height: 350px;
  left: -185px;
  bottom: -175px;
  box-shadow: 0 0 0 68px rgba(255, 255, 255, .035);
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  width: fit-content;
  color: inherit;
}

.auth-brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 14px;
  color: #fff;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, .25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
}

.auth-brand-mark svg {
  width: 27px;
  height: 27px;
}

.auth-brand-mark img {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.auth-brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.auth-brand-copy strong {
  font-size: 1.06rem;
  letter-spacing: .01em;
}

.auth-brand-copy span {
  margin-top: 5px;
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .72;
}

.auth-visual-content {
  max-width: 490px;
  margin: auto 0;
  padding: 62px 0;
}

.auth-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #a9c9ff;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.auth-kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.auth-visual h2 {
  max-width: 470px;
  margin: 0;
  font-size: clamp(2.25rem, 4.2vw, 4rem);
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -.045em;
}

.auth-visual-content > p {
  max-width: 450px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, .74);
  font-size: 1.02rem;
  line-height: 1.75;
}

.auth-feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.auth-feature-list span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 999px;
  color: rgba(255, 255, 255, .85);
  background: rgba(255, 255, 255, .07);
  font-size: .79rem;
  font-weight: 650;
}

.auth-feature-list span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #70e1ac;
  box-shadow: 0 0 0 4px rgba(112, 225, 172, .12);
}

.auth-visual-footer {
  color: rgba(255, 255, 255, .58);
  font-size: .78rem;
}

.auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 62px clamp(38px, 5vw, 72px);
  background: rgba(255, 255, 255, .96);
}

.auth-mobile-brand {
  display: none;
  margin-bottom: 38px;
  color: var(--auth-ink);
}

.auth-mobile-brand .auth-brand-mark {
  color: #fff;
  border-color: #dce5f3;
  background: #fff;
}

.auth-mobile-brand .auth-brand-copy span {
  color: var(--auth-muted);
}

.auth-panel-kicker {
  margin: 0 0 10px;
  color: var(--auth-blue);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.auth-panel h1 {
  margin: 0;
  color: var(--auth-ink);
  font-size: clamp(2rem, 3.1vw, 2.65rem);
  line-height: 1.12;
  letter-spacing: -.04em;
}

.auth-intro {
  margin: 14px 0 34px;
  color: var(--auth-muted);
  font-size: .96rem;
  line-height: 1.65;
}

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

.auth-field label {
  display: block;
  margin-bottom: 8px;
  color: #2e3a56;
  font-size: .83rem;
  font-weight: 750;
}

.auth-field .form-control {
  min-height: 52px;
  padding: 12px 15px;
  border: 1px solid #cfd9eb;
  border-radius: 13px;
  color: var(--auth-ink);
  background: #fbfdff;
  box-shadow: none;
}

.auth-field .form-control:hover {
  border-color: #aabbd8;
}

.auth-field .form-control:focus {
  border-color: var(--auth-blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(40, 100, 237, .11);
}

.auth-form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--auth-muted);
  font-size: .83rem;
}

.auth-form-row .form-check {
  min-height: auto;
  margin: 0;
}

.auth-form-row .form-check-input {
  margin-top: .16em;
  border-color: #aebcd3;
}

.auth-form-row .form-check-input:checked {
  border-color: var(--auth-blue);
  background-color: var(--auth-blue);
}

.auth-link {
  color: var(--auth-blue);
  font-weight: 750;
  text-decoration: none;
}

.auth-link:hover {
  color: #174dc6;
  text-decoration: underline;
}

.auth-primary,
.auth-secondary {
  min-height: 52px;
  border-radius: 13px;
  font-weight: 750;
}

.auth-primary {
  border: 0;
  color: #fff;
  background: linear-gradient(110deg, var(--auth-blue), #4d58df);
  box-shadow: 0 12px 25px rgba(40, 100, 237, .22);
}

.auth-primary:hover,
.auth-primary:focus {
  color: #fff;
  background: linear-gradient(110deg, #1f57d7, #4149cd);
  transform: translateY(-1px);
}

.auth-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d2dced;
  color: #34415d;
  background: #f8faff;
  text-decoration: none;
}

.auth-secondary:hover {
  color: var(--auth-ink);
  border-color: #b7c6df;
  background: #f1f5fc;
}

.auth-alert {
  margin: 0 0 24px;
  padding: 13px 15px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-size: .86rem;
  line-height: 1.5;
}

.auth-alert-error {
  color: #952f39;
  border-color: #f2c7cb;
  background: #fff2f3;
}

.auth-alert-success {
  color: #16653e;
  border-color: #bce9d1;
  background: #eefbf4;
}

.auth-dev-note {
  margin-top: 22px;
  padding: 13px 15px;
  border: 1px dashed #9db4df;
  border-radius: 13px;
  color: #445370;
  background: #f3f7ff;
  font-size: .8rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.auth-dev-note strong {
  display: block;
  margin-bottom: 5px;
  color: #294a86;
}

.auth-panel-footer {
  margin-top: 34px;
  color: #8a94a8;
  font-size: .74rem;
  text-align: center;
}

.auth-status-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 22px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(145deg, #22aa6b, #138451);
  box-shadow: 0 12px 28px rgba(22, 139, 84, .2);
}

.auth-status-icon svg {
  width: 28px;
  height: 28px;
}

.auth-status-icon-error {
  background: linear-gradient(145deg, #df5360, #ae2f3d);
  box-shadow: 0 12px 28px rgba(174, 47, 61, .2);
}

.auth-password-note {
  display: flex;
  gap: 10px;
  margin: -4px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  color: #65718b;
  background: var(--auth-soft);
  font-size: .79rem;
  line-height: 1.5;
}

.auth-password-note::before {
  content: "i";
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  border: 1px solid #a8bee8;
  border-radius: 50%;
  color: var(--auth-blue);
  font-size: .7rem;
  font-weight: 800;
}

.auth-success-copy {
  margin-bottom: 26px;
}

@media (max-width: 900px) {
  .auth-shell {
    width: min(600px, calc(100% - 28px));
    min-height: auto;
    grid-template-columns: 1fr;
    margin: 14px auto;
  }

  .auth-visual {
    display: none;
  }

  .auth-panel {
    min-height: calc(100vh - 28px);
    padding: 42px clamp(24px, 8vw, 58px);
  }

  .auth-mobile-brand {
    display: inline-flex;
  }
}

@media (max-width: 480px) {
  .auth-shell {
    width: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
  }

  .auth-panel {
    min-height: 100vh;
    padding: 30px 22px;
  }

  .auth-form-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}
