.auth-shell {
  min-height: 100svh;
  background: #102b51 url("images/login-background.png") center center / cover no-repeat;
}

.auth-layout {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(480px, 40.4vw);
  align-items: center;
  padding: 44px 14.1vw 44px 8vw;
  color: #fff;
}

.auth-intro {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.auth-flip {
  grid-column: 2;
  width: 100%;
  min-height: min(734px, calc(100svh - 48px));
  perspective: 1400px;
}

.auth-card {
  display: grid;
  gap: 0;
  padding: 56px clamp(34px, 4.2vw, 64px);
  border: 0;
  border-radius: 30px;
  color: #10294e;
  background: #fff;
  box-shadow: 0 24px 80px rgba(8, 22, 44, 0.22);
}

.auth-face {
  min-height: 100%;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition: transform 700ms cubic-bezier(0.2, 0.75, 0.2, 1), opacity 250ms ease;
}

.auth-login {
  grid-template-rows: auto auto auto 64px auto 1px auto 64px;
  align-content: space-between;
  transform: rotateY(0deg);
}

.auth-register {
  grid-template-rows: auto repeat(4, auto) 1fr;
  align-content: start;
  gap: 8px;
  padding-block: 28px;
  transform: rotateY(180deg);
}

.auth-flip.is-registering {
  min-height: 734px;
}

.auth-card.auth-register .auth-field {
  gap: 8px;
}

.auth-recovery {
  grid-template-rows: auto auto 58px auto;
  align-content: center;
  gap: 24px;
  transform: none;
}

.auth-card[hidden] {
  display: none;
}

.auth-flip.is-registering .auth-login {
  transform: rotateY(180deg);
}

.auth-flip.is-registering .auth-register {
  transform: rotateY(360deg);
}

.auth-card-heading {
  padding: 0;
}

.auth-card-heading .eyebrow {
  margin: 0 0 8px;
  color: #d9252f;
}

.auth-card-heading h2 {
  margin: 0;
  color: #10294e;
  font-size: 42px;
  line-height: 1.18;
}

.auth-card .auth-field {
  display: grid;
  gap: 12px;
  min-width: 0;
  font-size: 20px;
  font-weight: 700;
}

.auth-input-wrap {
  position: relative;
  display: block;
  min-width: 0;
}

.auth-input-wrap > svg {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 20px;
  width: 25px;
  height: 25px;
  color: #687688;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translateY(-50%);
  pointer-events: none;
}

.auth-card .auth-input-wrap input,
.auth-card .auth-field > input {
  width: 100%;
  min-width: 0;
  min-height: 56px;
  padding: 12px 18px;
  border: 1px solid #c7cfda;
  border-radius: 13px;
  color: #152b4d;
  background: rgba(255, 255, 255, 0.8);
  font: inherit;
  font-size: 18px;
  font-weight: 400;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.auth-card .auth-input-wrap input {
  padding-left: 66px;
  padding-right: 58px;
}

.auth-card .auth-input-wrap input:focus,
.auth-card .auth-field > input:focus {
  outline: none;
  border-color: #1d4777;
  box-shadow: 0 0 0 3px rgba(29, 71, 119, 0.14);
}

.auth-card input::placeholder {
  color: #7c8490;
  opacity: 1;
}

.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 14px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 6px;
  border: 0;
  border-radius: 8px;
  color: #687688;
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
}

.auth-password-toggle:hover {
  color: #10294e;
  background: #edf2f7;
}

.auth-password-toggle svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-card .auth-submit,
.auth-verification-actions .auth-submit {
  display: flex;
  width: 100%;
  min-height: 64px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 0;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(100deg, #df071d, #ee1021);
  font: inherit;
  font-size: 25px;
  font-weight: 800;
  cursor: pointer;
  transition: filter 160ms ease, transform 160ms ease;
}

.auth-card .auth-submit:hover,
.auth-verification-actions .auth-submit:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.auth-card .auth-submit:disabled,
.auth-verification-actions .auth-submit:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.auth-card .auth-utility-button {
  justify-self: center;
  padding: 0;
  border: 0;
  color: #10294e;
  background: transparent;
  font: inherit;
  font-size: 20px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.auth-divider {
  width: 100%;
  height: 1px;
  background: #cbd0d7;
}

.auth-register-label {
  margin: 0;
  color: #10294e;
  font-size: 20px;
  font-weight: 600;
  text-align: center;
}

.auth-card .auth-register-button {
  display: flex;
  width: 100%;
  min-height: 64px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 2px solid #10294e;
  border-radius: 15px;
  color: #10294e;
  background: transparent;
  font: inherit;
  font-size: 24px;
  font-weight: 700;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease;
}

.auth-card .auth-register-button:hover {
  color: #fff;
  background: #10294e;
}

.auth-register-actions {
  display: grid;
  gap: 8px;
  align-content: start;
  padding-top: 0;
}

.auth-feedback {
  position: absolute;
  right: 16px;
  bottom: -42px;
  left: 16px;
  margin: 0;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
}

.auth-feedback.success {
  color: #e3fff0;
}

.auth-feedback.pending {
  color: #fff4cc;
}

.auth-verification-actions {
  position: absolute;
  top: calc(100% + 18px);
  right: 0;
  left: 0;
  color: #fff;
}

.auth-verification-actions p {
  margin: 0 0 10px;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
}

.auth-verification-actions form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  padding: 18px;
  border-radius: 14px;
  color: #10294e;
  background: rgba(255, 255, 255, 0.97);
}

.auth-verification-actions .auth-field {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
}

.auth-verification-actions .auth-field input {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #c7cfda;
  border-radius: 8px;
  font: inherit;
}

.auth-verification-actions .auth-submit {
  width: auto;
  min-height: 42px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
}

@media (max-width: 1200px) and (min-width: 761px) {
  .auth-layout {
    grid-template-columns: minmax(0, 1fr) minmax(460px, 47vw);
    padding-right: 8vw;
    padding-left: 6vw;
  }

  .auth-card-heading h2 {
    font-size: 36px;
  }

  .auth-card {
    padding: 48px 42px;
  }
}

@media (max-width: 760px) {
  .auth-shell {
    background-position: 35% center;
  }

  .auth-layout {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    padding: 24px 18px;
    background: linear-gradient(180deg, rgba(7, 29, 56, 0.24), rgba(7, 29, 56, 0.58));
  }

  .auth-flip {
    grid-column: 1;
    width: min(100%, 540px);
    min-height: min(690px, calc(100svh - 48px));
  }

  .auth-flip.is-registering {
    min-height: 690px;
  }

  .auth-card {
    padding: 38px 32px;
    border-radius: 24px;
  }

  .auth-login {
    grid-template-rows: auto auto auto 58px auto 1px auto 58px;
  }

  .auth-card-heading h2 {
    font-size: 32px;
  }

  .auth-card .auth-field {
    gap: 8px;
    font-size: 17px;
  }

  .auth-card .auth-input-wrap input,
  .auth-card .auth-field > input {
    min-height: 54px;
    font-size: 16px;
  }

  .auth-card .auth-submit {
    min-height: 58px;
    font-size: 22px;
  }

  .auth-card .auth-utility-button,
  .auth-register-label {
    font-size: 17px;
  }

  .auth-card .auth-register-button {
    min-height: 58px;
    font-size: 21px;
  }
}

@media (max-width: 420px) {
  .auth-layout {
    padding-inline: 12px;
  }

  .auth-flip {
    min-height: min(650px, calc(100svh - 32px));
  }

  .auth-flip.is-registering {
    min-height: 680px;
  }

  .auth-card {
    padding: 30px 22px;
    border-radius: 20px;
  }

  .auth-card-heading h2 {
    font-size: 28px;
  }

  .auth-verification-actions form {
    grid-template-columns: 1fr;
  }

  .auth-verification-actions .auth-submit {
    width: 100%;
  }
}
