.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 80% 10%, rgba(255,255,255,.08), transparent 28%),
    linear-gradient(145deg, #07162c, #0b1f3a 58%, #173d67);
}

.auth-card {
  width: min(430px, 100%);
  padding: 34px;
  border-radius: 24px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 24px 80px rgba(0,0,0,.30);
}

.auth-brand-mark {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 18px;
  background: #eef4fb;
  font-size: 1.7rem;
}

.auth-kicker {
  color: #708097;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.auth-card h1 {
  margin: 5px 0 8px;
  color: #0b1f3a;
  font-size: 2rem;
  letter-spacing: -.035em;
}

.auth-intro {
  margin: 0 0 24px;
  color: #66758b;
  line-height: 1.55;
}

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

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

.auth-form label > span {
  color: #526177;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.auth-form input {
  width: 100%;
  border: 1px solid #d4dce8;
  border-radius: 11px;
  padding: 12px 13px;
  background: #fbfcfe;
  color: #17233b;
  outline: none;
}

.auth-form input:focus {
  border-color: #7397bd;
  background: white;
  box-shadow: 0 0 0 3px rgba(115,151,189,.16);
}

.auth-submit {
  min-height: 44px;
  margin-top: 2px;
  border: 0;
  border-radius: 11px;
  padding: 11px 16px;
  background: #0b1f3a;
  color: white;
  font-weight: 850;
}

.auth-submit:hover:not(:disabled) {
  background: #173d67;
}

.auth-submit:disabled {
  cursor: wait;
  opacity: .7;
}

.auth-text-button {
  justify-self: center;
  border: 0;
  background: transparent;
  padding: 2px 6px;
  color: #315f8d;
  font-size: .78rem;
  font-weight: 800;
}

.auth-text-button:hover:not(:disabled) {
  text-decoration: underline;
}

.auth-text-button:disabled {
  opacity: .55;
}

.auth-message {
  min-height: 18px;
  margin-top: -4px;
  color: #64738a;
  font-size: .78rem;
  line-height: 1.4;
}

.auth-message.error {
  color: #a63f4c;
}

.auth-message.success {
  color: #30704a;
}

.auth-footnote {
  margin: 20px 0 0;
  padding-top: 17px;
  border-top: 1px solid #e6ebf2;
  color: #8793a5;
  font-size: .73rem;
  line-height: 1.45;
}

.auth-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 2px;
}

.auth-user {
  max-width: 220px;
  overflow: hidden;
  color: #607086;
  font-size: .75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-logout {
  padding-inline: 10px;
}

@media (max-width: 820px) {
  .auth-user {
    display: none;
  }
}

@media (max-width: 560px) {
  .auth-gate {
    padding: 14px;
  }

  .auth-card {
    padding: 26px 22px;
    border-radius: 19px;
  }

  .auth-controls {
    gap: 4px;
  }

  .auth-logout {
    padding: 8px 9px;
    font-size: .74rem;
  }
}
