.guest {
  --csf-burgundy: #9d1737;
  --csf-burgundy-dark: #79112a;
  --csf-yellow: #fdbd17;
  --csf-blue: #08a8cc;
  --csf-ink: #20262d;
  --csf-muted: #657079;
  --csf-paper: #fffdf9;
  --csf-line: #dedbd4;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  border: 0;
  color: var(--csf-ink);
  font-family: 'Nunito Sans', 'Avenir Next', 'Segoe UI', sans-serif;
  background:
    linear-gradient(115deg, rgba(157, 23, 55, .035), transparent 42%),
    repeating-linear-gradient(0deg, rgba(32, 38, 45, .018) 0 1px, transparent 1px 6px),
    #f4f3ef;
}

.guest::before,
.guest::after {
  content: '';
  position: fixed;
  z-index: 0;
  pointer-events: none;
}

.guest::before {
  top: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background: linear-gradient(90deg, var(--csf-burgundy) 0 38%, var(--csf-yellow) 38% 67%, var(--csf-blue) 67%);
}

.guest::after {
  right: -112px;
  top: 11vh;
  width: 270px;
  height: 270px;
  border: 54px solid rgba(8, 168, 204, .08);
  border-radius: 50%;
}

.guest main {
  width: 100%;
  max-width: none;
  min-height: calc(100vh - 48px);
  padding: clamp(38px, 7vw, 84px) 24px 70px;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
}

.auth-shell {
  width: min(100%, 680px);
  position: relative;
}

.auth-shell::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: -18px;
  bottom: -18px;
  width: 46%;
  height: 54%;
  background: var(--csf-yellow);
}

.auth-access {
  position: relative;
  padding: clamp(38px, 6vw, 70px);
  background:
    repeating-linear-gradient(0deg, rgba(32, 38, 45, .018) 0 1px, transparent 1px 5px),
    var(--csf-paper);
  border-top: 7px solid var(--csf-blue);
  box-shadow: 0 24px 65px rgba(38, 36, 31, .15);
}

.auth-access::before {
  content: '01';
  position: absolute;
  right: 28px;
  top: 26px;
  color: #a69f92;
  font-family: 'Newsreader', Georgia, serif;
  font-size: 13px;
}

.auth-access-inner {
  width: 100%;
}

.auth-brand {
  min-height: 78px;
  margin-bottom: clamp(38px, 6vw, 58px);
  padding-bottom: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--csf-line);
}

.auth-brand img {
  display: block;
  width: auto;
  max-width: 174px;
  max-height: 72px;
  object-fit: contain;
  object-position: left center;
}

.auth-wordmark {
  display: flex;
  flex-direction: column;
  color: var(--csf-ink);
  font-size: 17px;
  font-weight: 800;
  line-height: .92;
}

.auth-wordmark strong:first-child { color: var(--csf-burgundy); }
.auth-wordmark strong:nth-child(2) { color: var(--csf-yellow); }
.auth-wordmark span { margin-top: 4px; color: #35466f; font-size: 10px; letter-spacing: .08em; }

.auth-workspace-label {
  color: var(--csf-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.auth-heading {
  padding-bottom: 30px;
  border-bottom: 1px solid var(--csf-line);
}

.auth-heading .eyebrow {
  margin: 0 0 14px;
  color: var(--csf-burgundy);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .2em;
}

.auth-heading h2 {
  margin: 0 0 11px;
  color: var(--csf-ink);
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(42px, 7vw, 58px);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -.035em;
}

.auth-heading p:last-child {
  margin: 0;
  color: var(--csf-muted);
  font-size: 14px;
  line-height: 1.55;
}

.auth-form {
  padding-top: 32px;
}

.auth-form .field {
  margin-bottom: 25px;
}

.auth-form label {
  margin-bottom: 8px;
  color: var(--csf-ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.auth-form input:not([type=checkbox]) {
  min-height: 54px;
  padding: 13px 0 9px;
  border: 0;
  border-bottom: 1px solid #a7a197;
  border-radius: 0;
  color: var(--csf-ink);
  font-family: 'Nunito Sans', 'Avenir Next', 'Segoe UI', sans-serif;
  font-size: 17px;
  background: transparent;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.auth-form input:not([type=checkbox]):focus {
  border-color: var(--csf-blue);
  outline: none;
  box-shadow: inset 0 -3px var(--csf-blue);
}

.auth-submit {
  width: 100%;
  min-height: 58px;
  margin-top: 9px;
  padding: 14px 18px 14px 22px;
  display: flex;
  justify-content: space-between;
  border: 0;
  border-radius: 0;
  color: #fff;
  background: var(--csf-burgundy);
  box-shadow: 8px 8px 0 var(--csf-yellow);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.auth-submit svg {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-submit:hover {
  filter: none;
  background: var(--csf-burgundy-dark);
  transform: translate(2px, 2px);
  box-shadow: 6px 6px 0 var(--csf-yellow);
}

.auth-submit:active {
  transform: translate(7px, 7px);
  box-shadow: 1px 1px 0 var(--csf-yellow);
}

.auth-support {
  margin-top: 43px;
  padding-top: 23px;
  border-top: 1px solid var(--csf-line);
}

.auth-support p {
  margin: 0 0 10px;
  color: var(--csf-muted);
  font-size: 12px;
  line-height: 1.65;
}

.auth-support a {
  display: inline-block;
  margin-bottom: 11px;
  color: var(--csf-burgundy);
  font-size: 13px;
  font-weight: 800;
  text-decoration-color: var(--csf-yellow);
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}

.guest .page-footer {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: -42px auto 0;
  padding: 0 24px 24px;
  border: 0;
  color: #76736c;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
}

@media (max-width: 620px) {
  .guest {
    overflow: visible;
  }

  .guest::after {
    display: none;
  }

  .guest main {
    min-height: 0;
    padding: 8px 0 0;
    display: block;
  }

  .auth-shell {
    width: 100%;
  }

  .auth-shell::before {
    display: none;
  }

  .auth-access {
    min-height: calc(100vh - 8px);
    padding: 34px 28px 54px;
    border-top: 0;
    box-shadow: none;
  }

  .auth-brand {
    min-height: 66px;
    margin-bottom: 40px;
    padding-bottom: 20px;
  }

  .auth-brand img {
    max-width: 142px;
    max-height: 58px;
  }

  .auth-workspace-label {
    font-size: 9px;
    letter-spacing: .12em;
  }

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

  .guest .page-footer {
    margin: 0;
    padding: 20px 28px;
    color: rgba(255,255,255,.7);
    background: var(--csf-burgundy-dark);
  }
}

@media (max-width: 390px) {
  .auth-access {
    padding-inline: 22px;
  }

  .auth-workspace-label {
    display: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .auth-brand,
  .auth-heading,
  .auth-form,
  .auth-support {
    animation: auth-enter .55s both cubic-bezier(.2,.75,.25,1);
  }

  .auth-heading { animation-delay: .06s; }
  .auth-form { animation-delay: .12s; }
  .auth-support { animation-delay: .18s; }

  @keyframes auth-enter {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
