*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 500px at 10% -10%, #fff4ec 0%, transparent 55%),
    radial-gradient(900px 420px at 100% 0%, #eef3ff 0%, transparent 50%),
    #fff;
  color: #141414;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.5;
}

a {
  color: #0033a0;
}

a:visited {
  color: #0033a0;
}

:focus-visible {
  outline: 2px solid #0033a0;
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: 12px;
  top: 8px;
  transform: translateY(-150%);
  background: #fff;
  color: #141414;
  border: 1px solid #141414;
  padding: 8px 10px;
  z-index: 2;
}

.skip:focus {
  transform: none;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(100% - 32px, 560px);
  margin: 0 auto;
  padding: 28px 0 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: #141414;
  text-decoration: none;
  min-height: 44px;
}

.brand:hover,
.brand:visited {
  color: #141414;
}

.pulse {
  width: 48px;
  height: auto;
  display: block;
}

.mark-reveal {
  display: grid;
  grid-template-columns: 0fr;
  transition: grid-template-columns 220ms cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.brand:hover .mark-reveal,
.brand:focus-visible .mark-reveal {
  grid-template-columns: 1fr;
}

.mark-clip {
  min-width: 0;
  overflow: hidden;
}

.wordmark {
  display: block;
  height: 34px;
  width: auto;
  margin-left: 6px;
  transform: translateX(-16px);
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.brand:hover .wordmark,
.brand:focus-visible .wordmark {
  transform: translateX(0);
}

.top-link {
  font-weight: 700;
  text-underline-offset: 3px;
}

.shell {
  width: min(100% - 32px, 560px);
  margin: 24px auto 64px;
}

.panel {
  padding: 28px 0 0;
  animation: rise 420ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.kicker {
  margin: 0 0 8px;
  color: #5a5a5a;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

h1 {
  margin: 0 0 10px;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.lede {
  margin: 0 0 28px;
  color: #333;
  max-width: 36ch;
}

.banner {
  margin: 0 0 18px;
  padding: 10px 12px;
  border: 1px solid #9b1b1b;
  background: #fdecec;
  color: #9b1b1b;
}

.banner.ok {
  border-color: #0b5d24;
  background: #eaf6ee;
  color: #0b5d24;
}

.stack {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

input[type="email"],
input[type="password"],
input[type="text"] {
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid #141414;
  border-radius: 5px;
  background: #fff;
  color: #141414;
  font: inherit;
}

input[type="text"].code {
  letter-spacing: 0.28em;
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
}

.hint {
  margin: 0;
  color: #5a5a5a;
  font-size: 0.95rem;
  font-weight: 400;
}

button.solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid #c2410c;
  border-radius: 5px;
  background: #c2410c;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

button.solid:hover,
button.solid:active {
  background: #b54708;
  border-color: #b54708;
}

button.solid:active {
  transform: translateY(1px);
}

.foot {
  margin: 22px 0 0;
  color: #5a5a5a;
  font-size: 0.95rem;
}

.foot a {
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  .panel,
  .mark-reveal,
  .wordmark,
  button.solid {
    animation: none;
    transition: none;
  }
}
