:root {
  color-scheme: light;
  --ink: #17110f;
  --muted: #6a5a52;
  --paper: #fff8ec;
  --snow: #fffdf7;
  --red: #c51628;
  --red-deep: #8f101e;
  --green: #114a35;
  --green-deep: #09291f;
  --gold: #d7a946;
  --line: rgba(77, 46, 34, 0.16);
  --shadow: 0 24px 60px rgba(44, 21, 14, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.92), rgba(255, 248, 236, 0.96)),
    radial-gradient(circle at 8% 4%, rgba(197, 22, 40, 0.13), transparent 30%),
    radial-gradient(circle at 92% 10%, rgba(17, 74, 53, 0.18), transparent 30%),
    var(--paper);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(255, 255, 255, 0.68) 0 1px, transparent 1.8px);
  background-size: 84px 84px, 136px 136px;
  background-position: 0 0, 28px 42px;
  opacity: 0.34;
  animation: snowDrift 24s linear infinite;
}

a {
  color: inherit;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(360px, 0.54fr);
  min-height: 100vh;
}

.auth-art {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: end;
  padding: clamp(28px, 6vw, 72px);
  color: white;
  background: var(--green-deep);
}

.auth-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(9, 41, 31, 0.22), rgba(9, 41, 31, 0.86)),
    linear-gradient(90deg, rgba(9, 41, 31, 0.68), transparent);
}

.auth-art-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.auth-art h1,
.auth-card h1 {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 0.94;
}

.auth-art p,
.auth-card p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.06rem;
  line-height: 1.65;
}

.auth-card p {
  color: var(--muted);
}

.auth-offer {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid rgba(17, 74, 53, 0.16);
  border-radius: 14px;
  background: rgba(17, 74, 53, 0.055);
}

.auth-offer > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
}

.auth-offer > div > span {
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.auth-offer strong {
  font-family: Fraunces, Georgia, serif;
  font-size: 2rem;
}

.auth-offer small {
  color: var(--muted);
  font-family: Inter, sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.auth-offer ul {
  display: grid;
  gap: 7px;
  margin: 14px 0 0;
  padding: 14px 0 0 18px;
  border-top: 1px solid rgba(17, 74, 53, 0.12);
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.consent-check {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  margin-block: 4px 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.45;
  text-transform: none;
}

.consent-check input {
  width: 18px;
  min-height: 18px;
  margin: 1px 0 0;
  accent-color: var(--green);
}

.brand {
  position: absolute;
  left: clamp(24px, 6vw, 70px);
  top: 24px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: white;
  font-weight: 900;
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.auth-panel {
  display: grid;
  align-content: center;
  padding: clamp(24px, 5vw, 64px);
}

.auth-card {
  width: min(100%, 520px);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.9);
  box-shadow: var(--shadow);
}

.eyebrow {
  display: block;
  margin-bottom: 12px;
  color: var(--red-deep);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

form {
  display: grid;
  gap: 13px;
  margin-top: 26px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

input {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(77, 46, 34, 0.18);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 0 13px;
  font: inherit;
  letter-spacing: 0;
}

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--red);
  color: white;
  box-shadow: 0 12px 24px rgba(197, 22, 40, 0.22);
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.auth-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.auth-message {
  min-height: 24px;
  margin-top: 14px;
  color: var(--red-deep);
  font-weight: 800;
  line-height: 1.45;
}

.auth-message.success {
  color: var(--green);
}

@keyframes snowDrift {
  to {
    background-position: 70px 420px, -90px 540px;
  }
}

@media (max-width: 900px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-art {
    min-height: 360px;
  }

  .brand {
    left: 24px;
  }
}

/* North Pole member login */

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 100;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--snow);
  color: var(--green-deep);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.auth-login {
  min-height: 100svh;
  overflow-x: hidden;
  color: #fffdf7;
  background: #06251c;
}

.auth-login::before {
  z-index: 1;
  opacity: 0.42;
  pointer-events: none;
  animation-duration: 30s;
}

.login-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 28%, rgba(225, 174, 73, 0.17), transparent 26%),
    linear-gradient(115deg, rgba(4, 32, 24, 0.99) 0%, rgba(4, 32, 24, 0.83) 37%, rgba(4, 23, 21, 0.47) 68%, rgba(4, 23, 21, 0.72) 100%);
}

.login-backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: #06251c;
}

.login-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% center;
  filter: saturate(0.92) contrast(1.04);
  transform: scale(1.015);
}

.login-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 30, 22, 0.96) 0%, rgba(3, 30, 22, 0.82) 38%, rgba(3, 24, 21, 0.28) 65%, rgba(3, 24, 21, 0.58) 100%),
    linear-gradient(180deg, rgba(3, 24, 20, 0.38), transparent 28%, rgba(3, 24, 20, 0.5));
}

.login-header,
.login-layout,
.login-footer {
  width: min(100% - 48px, 1520px);
  margin-inline: auto;
}

.login-header {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 26px 18px;
}

.login-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: #fffdf7;
  text-decoration: none;
}

.login-brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.04)),
    rgba(5, 44, 32, 0.84);
  box-shadow:
    0 12px 34px rgba(0, 0, 0, 0.34),
    inset 0 1px rgba(255, 255, 255, 0.2);
}

.login-brand-mark::after {
  content: "";
  position: absolute;
  inset: -3px;
  z-index: -1;
  border-radius: inherit;
  background: conic-gradient(from 210deg, transparent, rgba(232, 184, 80, 0.7), transparent 42%);
  filter: blur(1px);
}

.login-brand-mark img,
.login-card-seal img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.login-brand-copy {
  display: grid;
  gap: 3px;
}

.login-brand-copy strong {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.08rem;
  letter-spacing: -0.015em;
}

.login-brand-copy small {
  color: rgba(255, 253, 247, 0.68);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.login-return {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(5, 38, 29, 0.38);
  color: rgba(255, 253, 247, 0.8);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  backdrop-filter: blur(12px);
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.login-return svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.login-return:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(5, 38, 29, 0.64);
  color: white;
  transform: translateX(-2px);
}

.login-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(410px, 0.72fr);
  align-items: center;
  gap: clamp(56px, 9vw, 150px);
  padding-block: clamp(28px, 5vh, 64px);
}

.login-story {
  max-width: 700px;
  animation: loginRise 800ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.login-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  color: #f2c86a;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.login-status-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f2c86a;
  box-shadow: 0 0 0 5px rgba(242, 200, 106, 0.12);
}

.login-status-dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(242, 200, 106, 0.6);
  border-radius: 50%;
  animation: loginPulse 2.8s ease-out infinite;
}

.login-story h1 {
  max-width: 760px;
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(4.3rem, 6.4vw, 7.6rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.86;
  text-wrap: balance;
}

.login-story h1 span {
  display: block;
  color: #f6d991;
  font-style: italic;
  font-variation-settings: "SOFT" 60, "WONK" 1;
}

.login-story-intro {
  max-width: 610px;
  margin: 28px 0 0;
  color: rgba(255, 253, 247, 0.78);
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  line-height: 1.7;
}

.login-story-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 670px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.login-story-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: start;
  min-height: 92px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  background: rgba(4, 31, 24, 0.36);
  color: rgba(255, 253, 247, 0.7);
  font-size: 0.75rem;
  line-height: 1.45;
  backdrop-filter: blur(12px);
}

.login-story-list strong {
  display: block;
  margin-bottom: 2px;
  color: #fffdf7;
  font-size: 0.78rem;
}

.story-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(242, 200, 106, 0.24);
  border-radius: 10px;
  background: rgba(242, 200, 106, 0.09);
  color: #f2c86a;
}

.story-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.login-story-note {
  position: relative;
  max-width: 520px;
  margin-top: 30px;
  padding-left: 18px;
}

.login-story-note::before {
  content: "";
  position: absolute;
  inset: 2px auto 2px 0;
  width: 1px;
  background: linear-gradient(#f2c86a, rgba(242, 200, 106, 0.1));
}

.story-note-label {
  color: #f2c86a;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.login-story-note p {
  margin: 7px 0 0;
  color: rgba(255, 253, 247, 0.68);
  font-family: Fraunces, Georgia, serif;
  font-size: 1rem;
  line-height: 1.5;
}

.login-card-wrap {
  display: flex;
  justify-content: flex-end;
  animation: loginRise 900ms 100ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.login-card {
  position: relative;
  width: min(100%, 490px);
  padding: clamp(28px, 3.2vw, 44px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 28px;
  background: rgba(255, 252, 244, 0.94);
  color: #1b1613;
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.38),
    0 2px 0 rgba(255, 255, 255, 0.5) inset;
  backdrop-filter: blur(26px) saturate(1.1);
}

.login-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(circle at 100% 0%, rgba(228, 180, 76, 0.2), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 36%);
}

.login-card > * {
  position: relative;
}

.login-card-heading {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 15px;
  align-items: center;
}

.login-card-seal {
  display: block;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(136, 95, 28, 0.22);
  border-radius: 50%;
  box-shadow:
    0 10px 24px rgba(66, 36, 16, 0.14),
    0 0 0 4px rgba(255, 255, 255, 0.55);
}

.login-card-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--red-deep);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.login-card h2 {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(2rem, 3vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.login-card-intro {
  margin: 19px 0 0;
  color: #685d55;
  font-size: 0.9rem;
  line-height: 1.58;
}

.login-card form {
  gap: 17px;
  margin-top: 26px;
}

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

.auth-field label,
.auth-label-row label {
  display: block;
  color: #413832;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.095em;
  text-transform: uppercase;
}

.auth-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.auth-label-row > span {
  color: #8a7b72;
  font-size: 0.66rem;
  font-weight: 600;
}

.auth-input {
  position: relative;
}

.auth-input > svg {
  position: absolute;
  left: 15px;
  top: 50%;
  z-index: 1;
  width: 19px;
  height: 19px;
  color: #807169;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  transform: translateY(-50%);
  pointer-events: none;
}

.auth-input input {
  min-height: 56px;
  border-color: rgba(63, 48, 38, 0.2);
  border-radius: 14px;
  padding: 0 48px 0 46px;
  background: rgba(255, 255, 255, 0.74);
  color: #1b1613;
  font-size: 0.92rem;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.auth-input input::placeholder {
  color: #9b8e86;
  opacity: 1;
}

.auth-input input:hover {
  border-color: rgba(63, 48, 38, 0.34);
  background: white;
}

.auth-input input:focus {
  outline: none;
  border-color: var(--green);
  background: white;
  box-shadow:
    0 0 0 4px rgba(17, 74, 53, 0.12),
    0 10px 26px rgba(31, 21, 16, 0.07);
}

.password-toggle {
  position: absolute;
  right: 6px;
  top: 6px;
  z-index: 2;
  display: grid;
  width: 44px;
  min-height: 44px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #786a62;
  box-shadow: none;
}

.password-toggle:hover {
  background: rgba(17, 74, 53, 0.08);
  color: var(--green);
}

.password-toggle:focus-visible {
  outline: 3px solid rgba(17, 74, 53, 0.24);
  outline-offset: 1px;
}

.password-toggle svg {
  grid-area: 1 / 1;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.password-toggle .eye-closed,
.password-toggle[aria-pressed="true"] .eye-open {
  display: none;
}

.password-toggle[aria-pressed="true"] .eye-closed {
  display: block;
}

.login-submit {
  justify-content: space-between;
  width: 100%;
  min-height: 56px;
  margin-top: 3px;
  border-radius: 14px;
  padding-inline: 19px;
  background:
    linear-gradient(135deg, #d01c2f, #a50f20);
  box-shadow:
    0 14px 28px rgba(177, 18, 37, 0.24),
    inset 0 1px rgba(255, 255, 255, 0.22);
  font-size: 0.84rem;
  letter-spacing: 0.015em;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.login-submit svg,
.login-create svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transition: transform 180ms ease;
}

.login-submit:hover:not(:disabled) {
  filter: brightness(1.06);
  box-shadow:
    0 17px 34px rgba(177, 18, 37, 0.3),
    inset 0 1px rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.login-submit:hover:not(:disabled) svg,
.login-create:hover svg {
  transform: translateX(3px);
}

.login-submit:focus-visible,
.login-create:focus-visible,
.login-return:focus-visible,
.login-brand:focus-visible {
  outline: 3px solid #f2c86a;
  outline-offset: 3px;
}

.login-submit:disabled {
  opacity: 0.7;
  transform: none;
}

.login-card .auth-message {
  min-height: 0;
  margin-top: -5px;
  color: #9f1020;
  font-size: 0.78rem;
  font-weight: 700;
}

.login-card .auth-message:not(:empty) {
  min-height: 40px;
  margin-top: 0;
  padding: 10px 12px;
  border: 1px solid rgba(159, 16, 32, 0.16);
  border-radius: 10px;
  background: rgba(197, 22, 40, 0.06);
}

.login-card .auth-message.success:not(:empty) {
  border-color: rgba(17, 74, 53, 0.16);
  background: rgba(17, 74, 53, 0.07);
  color: var(--green);
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 14px;
  color: #8c7e75;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.login-divider::before,
.login-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(63, 48, 38, 0.14);
}

.login-create {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border: 1px solid rgba(17, 74, 53, 0.22);
  border-radius: 14px;
  background: rgba(17, 74, 53, 0.055);
  color: var(--green-deep);
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.login-create:hover {
  border-color: rgba(17, 74, 53, 0.38);
  background: rgba(17, 74, 53, 0.09);
  transform: translateY(-1px);
}

.login-security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 18px 0 0;
  color: #786b63;
  font-size: 0.67rem;
  font-weight: 600;
  text-align: center;
}

.login-security svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: var(--green);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.login-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 9px;
  padding-block: 16px 22px;
  color: rgba(255, 253, 247, 0.48);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* North Pole membership signup */

.signup-stage {
  min-height: 100svh;
  overflow-y: auto;
}

.signup-layout {
  grid-template-columns: minmax(0, 1.08fr) minmax(430px, 0.76fr);
  gap: clamp(48px, 7vw, 120px);
  padding-block: clamp(18px, 3vh, 42px);
}

.signup-story h1 {
  max-width: 760px;
  font-size: clamp(4rem, 6vw, 7rem);
}

.signup-pass {
  max-width: 680px;
  margin-top: 28px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0%, rgba(242, 200, 106, 0.12), transparent 35%),
    rgba(4, 31, 24, 0.42);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
}

.signup-pass-price {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.signup-pass-price > span {
  color: #f2c86a;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.signup-pass-price strong {
  color: #fffdf7;
  font-family: Fraunces, Georgia, serif;
  font-size: 2.35rem;
  letter-spacing: -0.045em;
  line-height: 1;
}

.signup-pass-price small {
  color: rgba(255, 253, 247, 0.55);
  font-family: Inter, sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.signup-pass ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.signup-pass li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 9px;
  align-items: start;
  color: rgba(255, 253, 247, 0.65);
  font-size: 0.69rem;
  line-height: 1.45;
}

.signup-pass li strong {
  display: block;
  color: #fffdf7;
  font-size: 0.72rem;
}

.signup-card {
  padding-block: clamp(27px, 3vw, 38px);
}

.signup-card form {
  gap: 13px;
  margin-top: 21px;
}

.signup-card .auth-input input {
  min-height: 52px;
}

.signup-card .password-toggle {
  top: 4px;
}

.signup-consent {
  grid-template-columns: 22px 1fr;
  gap: 11px;
  min-height: 52px;
  align-items: center;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(17, 74, 53, 0.16);
  border-radius: 12px;
  background: rgba(17, 74, 53, 0.045);
  color: #665a53;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    background-color 180ms ease;
}

.signup-consent:hover {
  border-color: rgba(17, 74, 53, 0.3);
  background: rgba(17, 74, 53, 0.075);
}

.signup-consent input {
  width: 20px;
  min-height: 20px;
  margin: 0;
  cursor: pointer;
}

.signup-consent input:focus-visible {
  outline: 3px solid rgba(17, 74, 53, 0.24);
  outline-offset: 3px;
}

.signup-card .login-divider {
  margin-top: 17px;
}

.signup-card .login-security {
  margin-top: 14px;
}

@keyframes loginRise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes loginPulse {
  from {
    opacity: 0.8;
    transform: scale(0.6);
  }

  70%,
  to {
    opacity: 0;
    transform: scale(1.6);
  }
}

@media (max-width: 1180px) {
  .login-layout {
    grid-template-columns: minmax(0, 0.92fr) minmax(390px, 0.7fr);
    gap: clamp(36px, 6vw, 70px);
  }

  .login-story h1 {
    font-size: clamp(3.8rem, 6.6vw, 5.8rem);
  }

  .login-story-list {
    grid-template-columns: 1fr;
    max-width: 460px;
  }

  .login-story-list li {
    grid-template-columns: 34px 1fr;
    min-height: 0;
  }

  .login-story-list strong {
    display: inline;
    margin-right: 4px;
  }

  .login-story-note {
    display: none;
  }

  .signup-layout {
    grid-template-columns: minmax(0, 0.86fr) minmax(410px, 0.72fr);
  }

  .signup-pass ul {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .auth-login {
    overflow-y: auto;
  }

  .login-stage {
    min-height: 100svh;
    overflow: visible;
  }

  .login-backdrop {
    position: fixed;
  }

  .login-backdrop img {
    object-position: 62% center;
  }

  .login-backdrop::after {
    background:
      linear-gradient(180deg, rgba(3, 30, 22, 0.78), rgba(3, 30, 22, 0.94) 58%, rgba(3, 24, 21, 0.98)),
      linear-gradient(90deg, rgba(3, 30, 22, 0.55), rgba(3, 24, 21, 0.2));
  }

  .login-header,
  .login-layout,
  .login-footer {
    width: min(100% - 32px, 620px);
  }

  .login-header {
    padding-block: 20px 12px;
  }

  .login-brand-copy small,
  .login-return span {
    display: none;
  }

  .login-return {
    width: 44px;
    justify-content: center;
    padding: 0;
  }

  .login-layout {
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
    padding-block: 24px 42px;
  }

  .login-story {
    max-width: 540px;
  }

  .login-kicker {
    margin-bottom: 17px;
  }

  .login-story h1 {
    max-width: 560px;
    font-size: clamp(3.6rem, 13vw, 5.3rem);
  }

  .login-story-intro {
    margin-top: 20px;
    font-size: 0.95rem;
  }

  .login-story-list {
    display: none;
  }

  .login-card-wrap {
    justify-content: stretch;
  }

  .login-card {
    width: 100%;
    border-radius: 24px;
  }

  .signup-layout {
    grid-template-columns: 1fr;
  }

  .signup-story h1 {
    font-size: clamp(3.4rem, 12vw, 5rem);
  }

  .signup-pass {
    margin-top: 22px;
    padding: 16px;
  }

  .signup-pass ul {
    display: none;
  }

  .login-footer {
    justify-content: center;
    padding-block: 8px 24px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .login-header,
  .login-layout,
  .login-footer {
    width: min(100% - 24px, 620px);
  }

  .login-brand-mark {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .login-brand-copy strong {
    font-size: 0.96rem;
  }

  .login-layout {
    gap: 22px;
    padding-top: 18px;
  }

  .login-story h1 {
    font-size: clamp(3.1rem, 15vw, 4.2rem);
    line-height: 0.89;
  }

  .login-story-intro {
    display: none;
  }

  .login-card {
    padding: 25px 20px;
    border-radius: 21px;
  }

  .login-card-heading {
    grid-template-columns: 48px 1fr;
    gap: 12px;
  }

  .login-card-seal {
    width: 48px;
    height: 48px;
  }

  .login-card h2 {
    font-size: 1.82rem;
  }

  .login-card-intro {
    font-size: 0.82rem;
  }

  .signup-story .login-story-intro {
    display: block;
  }

  .auth-input input {
    font-size: 16px;
  }

  .login-footer span:nth-child(n + 2) {
    display: none;
  }
}

@media (max-height: 780px) and (min-width: 821px) {
  .login-header {
    padding-block: 18px 10px;
  }

  .login-layout {
    padding-block: 16px 22px;
  }

  .login-story h1 {
    font-size: clamp(3.7rem, 5.5vw, 5.8rem);
  }

  .login-story-intro {
    margin-top: 20px;
  }

  .login-story-list {
    margin-top: 22px;
  }

  .login-story-note {
    display: none;
  }

  .login-card {
    padding-block: 30px;
  }

  .signup-card {
    padding-block: 25px;
  }

  .signup-card form {
    gap: 11px;
    margin-top: 17px;
  }

  .signup-card .login-divider {
    margin-block: 14px 11px;
  }

  .login-card form {
    margin-top: 20px;
  }

  .login-footer {
    padding-block: 10px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-login::before,
  .login-status-dot::after,
  .login-story,
  .login-card-wrap {
    animation: none;
  }

  .login-return,
  .login-submit,
  .login-submit svg,
  .login-create,
  .login-create svg,
  .skip-link {
    transition-duration: 0.01ms;
  }
}
