:root {
  --auth-black: #050505;
  --auth-ink: #1d2024;
  --auth-muted: #626972;
  --auth-blue: #8dcbec;
  --auth-blue-dark: #5fa9d1;
  --auth-paper: #ffffff;
  --auth-surface: #f3f5f7;
  --auth-line: #d8dde2;
  --auth-danger: #9d3535;
  --auth-danger-bg: #fff4f4;
  --auth-danger-line: #e9c4c4;
  --auth-max: 1180px;
}

* {
  box-sizing: border-box;
}

html,
body.auth-page {
  margin: 0;
  min-height: 100%;
}

body.auth-page {
  background: var(--auth-surface);
  color: var(--auth-ink);
  display: flex;
  flex-direction: column;
  font-family: "Open Sans", Arial, sans-serif;
  line-height: 1.5;
  min-height: 100vh;
}

.auth-page a {
  color: inherit;
}

.auth-site-header {
  background: var(--auth-black);
  color: #fff;
  position: relative;
  z-index: 20;
}

.auth-site-header__inner {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--auth-max);
  min-height: 92px;
  padding: 14px 24px;
}

.auth-brand {
  display: block;
  flex: 0 1 420px;
}

.auth-brand img {
  display: block;
  height: auto;
  max-height: 60px;
  max-width: min(100%, 390px);
  object-fit: contain;
  object-position: left center;
}

.auth-site-nav {
  align-items: center;
  display: flex;
  font-size: 14px;
  gap: 28px;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.auth-site-nav a {
  color: #fff;
  text-decoration: none;
}

.auth-site-nav a:hover,
.auth-site-nav a:focus-visible {
  color: var(--auth-blue);
}

.auth-site-nav .auth-account-link {
  border: 2px solid #fff;
  border-radius: 999px;
  padding: 9px 18px;
}

.auth-nav-toggle {
  background: transparent;
  border: 1px solid #fff;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: none;
  font: inherit;
  padding: 9px 17px;
}

.auth-flash-stack {
  left: 50%;
  max-width: min(520px, calc(100% - 32px));
  position: fixed;
  text-align: center;
  top: 108px;
  transform: translateX(-50%);
  width: 100%;
  z-index: 50;
}

.auth-flash {
  background: #fff;
  border: 1px solid var(--auth-line);
  border-radius: 12px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, .14);
  margin: 0;
  padding: 14px 18px;
}

.auth-shell {
  align-items: center;
  display: flex;
  flex: 1 0 auto;
  justify-content: center;
  padding: 72px 24px;
}

.auth-card {
  background: var(--auth-paper);
  border: 1px solid #e5e8eb;
  border-radius: 22px;
  box-shadow: 0 22px 65px rgba(0, 0, 0, .10);
  max-width: 620px;
  padding: 54px 58px;
  text-align: center;
  width: 100%;
}

.auth-eyebrow {
  color: #347da4;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.auth-card h1 {
  color: var(--auth-ink);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.05;
  margin: 0;
}

.auth-intro {
  color: var(--auth-muted);
  font-size: 17px;
  margin: 18px auto 32px;
  max-width: 470px;
}

.auth-support-copy,
.auth-footnote {
  color: var(--auth-muted);
  font-size: 14px;
  margin: -8px auto 26px;
  max-width: 440px;
}

.auth-footnote {
  border-top: 1px solid #e7eaed;
  margin: 30px 0 0;
  padding-top: 24px;
}

.auth-notice {
  border-radius: 14px;
  margin: 0 auto 26px;
  padding: 18px 20px;
  text-align: center;
}

.auth-notice--error {
  background: var(--auth-danger-bg);
  border: 1px solid var(--auth-danger-line);
  color: var(--auth-danger);
}

.auth-notice strong {
  display: block;
  font-size: 16px;
}

.auth-notice p {
  margin: 6px 0 0;
}

.auth-notice__action {
  margin: 16px 0 0;
}

.auth-form {
  display: grid;
  gap: 21px;
  margin: 0;
  text-align: left;
}

.auth-field {
  display: grid;
  gap: 8px;
}

.auth-field label {
  color: var(--auth-ink);
  font-size: 14px;
  font-weight: 700;
}

.auth-field input {
  background: #fff;
  border: 1px solid #bfc6cd;
  border-radius: 11px;
  color: var(--auth-ink);
  font: inherit;
  min-height: 54px;
  outline: 0;
  padding: 13px 15px;
  width: 100%;
}

.auth-field input:focus {
  border-color: #347da4;
  box-shadow: 0 0 0 3px rgba(52, 125, 164, .16);
}

.auth-password-field {
  position: relative;
}

.auth-password-field input {
  padding-right: 75px;
}

.auth-password-toggle {
  background: transparent;
  border: 0;
  color: #286d92;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 8px;
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
}

.auth-password-help {
  color: var(--auth-muted);
  font-size: 12px;
  line-height: 1.45;
}

.auth-password-help ul {
  margin: 3px 0 0;
  padding-left: 18px;
}

.auth-actions {
  align-items: center;
  display: flex;
  justify-content: center;
  margin-top: 5px;
}

.auth-actions--stacked {
  flex-direction: column;
  gap: 15px;
  margin-top: 30px;
}

.auth-button {
  align-items: center;
  background: var(--auth-blue);
  border: 1px solid var(--auth-blue-dark);
  border-radius: 999px;
  color: #111;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  justify-content: center;
  min-height: 48px;
  min-width: 190px;
  padding: 12px 24px;
  text-decoration: none;
  width: auto;
}

.auth-button:hover,
.auth-button:focus-visible {
  background: #a7d8f1;
  border-color: #347da4;
}

.auth-button--small {
  min-height: 40px;
  min-width: 0;
  padding: 8px 18px;
}

.auth-text-link {
  color: #286d92;
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  margin-top: 22px;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.auth-site-footer {
  background: var(--auth-black);
  color: #c8c8c8;
  flex: 0 0 auto;
}

.auth-site-footer__inner {
  align-items: center;
  display: grid;
  gap: 26px;
  grid-template-columns: 1fr auto;
  margin: 0 auto;
  max-width: var(--auth-max);
  padding: 36px 24px;
}

.auth-site-footer strong {
  color: #fff;
  font-size: 16px;
}

.auth-site-footer p {
  font-size: 13px;
  margin: 5px 0 0;
}

.auth-site-footer nav {
  display: flex;
  font-size: 13px;
  gap: 22px;
}

.auth-site-footer a {
  color: #fff;
}

.auth-site-footer__legal {
  border-top: 1px solid #282828;
  grid-column: 1 / -1;
  padding-top: 18px;
}

@media (max-width: 860px) {
  .auth-site-header__inner {
    min-height: 78px;
  }

  .auth-brand {
    flex-basis: 300px;
  }

  .auth-brand img {
    max-height: 48px;
  }

  .auth-nav-toggle {
    display: inline-flex;
  }

  .auth-site-nav {
    align-items: stretch;
    background: var(--auth-black);
    display: none;
    flex-direction: column;
    gap: 0;
    left: 0;
    padding: 10px 24px 26px;
    position: absolute;
    right: 0;
    top: 100%;
  }

  .auth-site-nav.is-open {
    display: flex;
  }

  .auth-site-nav a {
    padding: 12px 0;
  }

  .auth-site-nav .auth-account-link {
    align-self: flex-start;
    margin-top: 8px;
    padding: 9px 18px;
  }

  .auth-flash-stack {
    top: 92px;
  }
}

@media (max-width: 620px) {
  .auth-site-header__inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .auth-brand {
    flex-basis: 225px;
  }

  .auth-brand img {
    max-width: 220px;
  }

  .auth-shell {
    align-items: flex-start;
    padding: 34px 15px 42px;
  }

  .auth-card {
    border-radius: 16px;
    padding: 38px 22px;
  }

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

  .auth-intro {
    font-size: 15px;
    margin-bottom: 27px;
  }

  .auth-button {
    min-width: 170px;
  }

  .auth-site-footer__inner {
    align-items: start;
    grid-template-columns: 1fr;
    padding: 30px 20px;
  }

  .auth-site-footer nav {
    flex-direction: column;
    gap: 11px;
  }

  .auth-site-footer__legal {
    grid-column: auto;
    width: 100%;
  }
}
