/* Dedicated passwordless login — matches scroll-lander brand tokens. */
.login-page {
  --login-ink: #0A0A0A;
  --login-body: #4B5563;
  --login-muted: #6B7280;
  --login-everglade: #1D4032;
  --login-aqua: #43E5A4;
  --login-cream: #FCFBFA;
  --login-cream-deep: #F1EFE9;
  --login-border: #D5DDD8;
  --login-err: #b42318;
  --login-ok: #056C42;
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--hs-font-body);
  color: var(--login-ink);
  background-color: var(--login-cream);
  background-image:
    radial-gradient(rgba(10, 10, 10, 0.045) 1px, transparent 1.4px),
    radial-gradient(circle at 12% 18%, rgba(67, 229, 164, 0.18), transparent 42%),
    radial-gradient(circle at 88% 82%, rgba(29, 64, 50, 0.08), transparent 44%),
    linear-gradient(135deg, rgba(67, 229, 164, 0.28) 0%, rgba(29, 64, 50, 0.06) 100%),
    linear-gradient(180deg, var(--login-cream), var(--login-cream-deep));
  background-size: 26px 26px, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
}

.login-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 16px;
  background: var(--login-aqua);
  color: var(--login-ink);
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 8px 0;
}
.login-skip:focus {
  left: 0;
}

/* The lander's top bar, so moving between the two pages does not feel like
   moving between two sites: fixed, glass, hairline rule, brand at the left.
   The nav and the Log in link are the only parts left off -- one is for a page
   this is not, and the other is where you already are. */
.login-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--hs-layer-sticky, 100);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: var(--hs-space-3, 12px) var(--hs-space-6, 24px);
  background: var(--hs-glass-control, rgba(255, 255, 255, 0.88));
  backdrop-filter: var(--hs-glass-blur, blur(24px) saturate(1.7));
  border-bottom: var(--hs-size-hairline, 1px) solid var(--hs-glass-card-border, rgba(14, 27, 17, 0.08));
}

.login-brand {
  display: inline-flex;
  align-items: center;
  /* clear space = 1/4 the mark height, per the brand guide */
  gap: 0.4em;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  border-bottom: none;
}
.login-brand:hover {
  opacity: 0.92;
}
/* Nothing here sizes the lockup. ds/hs-brand.css does, off the --hs-lockup-*
   tokens. This file used to restate the two heights -- and before that it said
   28/22, a 1.27 ratio against the design system's 1.5, so the wordmark read a
   size large next to the identical lockup on the lander. A copy of the ratio is
   a copy that can drift; the only knob a surface turns is the font-size. */

/* The header is fixed now, so the page owes it that room back. */
.login-main {
  display: flex;
  justify-content: center;
  padding: 84px 20px 64px;
}

.login-panel {
  width: 100%;
  max-width: 420px;
  animation: login-rise 0.45s ease both;
}

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

.login-title {
  margin: 0 0 10px;
  font-family: var(--hs-font-display);
  font-size: clamp(1.75rem, 4vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--login-everglade);
}

.login-lede {
  margin: 0 0 28px;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--login-body);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/*
 * Author `display` beats the UA sheet's [hidden] rule at equal specificity, so
 * every element this page toggles has to opt back in. Without it the field
 * label stays on screen next to the masked address it was replaced by.
 */
.login-page [hidden] {
  display: none !important;
}

.login-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--login-muted);
  margin-bottom: 8px;
}

.login-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--login-border);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 16px;
  font-family: inherit;
  color: var(--login-ink);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.login-input::placeholder {
  color: #9AA0A6;
}
.login-input:focus {
  outline: none;
  border-color: var(--hs-border-field-focus, #606963);
  box-shadow: none;
}
.login-input:disabled {
  opacity: 0.65;
}

.login-submit {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: none;
  border-radius: 999px;
  background: var(--login-aqua);
  color: var(--login-ink);
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, opacity 0.15s ease;
}
.login-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -8px rgba(67, 229, 164, 0.55);
}
.login-submit:focus-visible {
  outline: 2px solid var(--login-everglade);
  outline-offset: 3px;
}
.login-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/*
 * Shown in place of the field when this browser already knows the address —
 * a masked confirmation, not an input, because there is nothing left to type.
 */
.login-known {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--login-muted);
}
.login-known strong {
  display: block;
  margin-top: 4px;
  font-size: 17px;
  font-weight: 700;
  color: var(--login-ink);
  overflow-wrap: anywhere;
}

.login-switch {
  margin: 12px 0 0;
  padding: 4px 0;
  align-self: center;
  border: none;
  background: none;
  font-size: 14px;
  font-family: inherit;
  font-weight: 600;
  color: var(--login-everglade);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.login-switch:hover {
  color: var(--login-ink);
}
.login-switch:focus-visible {
  outline: 2px solid var(--login-everglade);
  outline-offset: 3px;
  border-radius: 6px;
}

.login-msg {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.45;
}
.login-msg.is-err {
  color: var(--login-err);
}
.login-msg.is-ok {
  color: var(--login-ok);
}

.login-foot {
  margin: 28px 0 0;
  font-size: 14px;
  color: var(--login-muted);
}
.login-foot a {
  color: var(--login-everglade);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.login-foot a:hover {
  color: var(--login-ink);
}

@media (max-width: 520px) {
  .login-top {
    padding: var(--hs-space-3, 12px) var(--hs-space-5, 20px);
  }
  .login-main {
    padding: 12px 18px 48px;
  }
}
