:root {
  --forest: #18221d;
  --forest-soft: #223029;
  --paper: #f3f0e8;
  --paper-deep: #e8e3d7;
  --ink: #1b2420;
  --muted: #68736c;
  --muted-light: #aeb9b2;
  --line: #c8cec7;
  --lime: #c7ed67;
  --coral: #e56b51;
  --error: #a84432;
  --error-bg: #f8e7e1;
  --success: #3c6d3e;
  --success-bg: #e7f1dd;
  --display: "Newsreader", Georgia, serif;
  --mono: "DM Mono", "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--mono);
  background: var(--paper);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  content: "";
  opacity: .16;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(450px, .96fr);
  min-height: 100vh;
}

.welcome {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: clamp(28px, 4vw, 56px);
  overflow: hidden;
  color: var(--paper);
  background:
    radial-gradient(circle at 70% 74%, rgba(199, 237, 103, .13), transparent 18rem),
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px),
    var(--forest);
  background-size: auto, 28px 28px, 28px 28px, auto;
}

.brand {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  width: fit-content;
  color: var(--paper);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
  animation: fade-in .55s ease both;
}

.brand-mark {
  position: relative;
  width: 30px;
  height: 30px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  border: 1.5px solid var(--forest);
  border-radius: 50%;
  content: "";
  transform: translateY(-50%);
  background: var(--lime);
}

.brand-mark::before {
  left: 3px;
}

.brand-mark::after {
  right: 3px;
}

.welcome-copy {
  position: relative;
  z-index: 2;
  width: min(100%, 680px);
  margin: auto 0;
  padding: 70px 0 28px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--coral);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.welcome h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(4.4rem, 7.2vw, 7.5rem);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: .8;
  animation: rise .58s .08s ease both;
}

.welcome h1 em {
  color: var(--lime);
  font-weight: 500;
}

.intro {
  max-width: 31ch;
  margin: 34px 0 0;
  color: var(--muted-light);
  font-family: var(--display);
  font-size: 1.34rem;
  line-height: 1.36;
  animation: rise .58s .14s ease both;
}

.constellation {
  position: relative;
  z-index: 1;
  width: min(100%, 590px);
  margin: -30px 0 10px auto;
  opacity: .9;
  animation: fade-in .8s .22s ease both;
}

.constellation svg {
  display: block;
  width: 100%;
  overflow: visible;
}

.orbit {
  stroke: rgba(243, 240, 232, .25);
  stroke-width: 1;
  fill: none;
  stroke-dasharray: 3 6;
}

.orbit-secondary {
  stroke: rgba(199, 237, 103, .22);
}

.node {
  stroke: var(--paper);
  stroke-width: 1.5;
  fill: var(--forest);
}

.node-b {
  fill: var(--lime);
  stroke: var(--lime);
}

.node-c {
  fill: var(--coral);
  stroke: var(--coral);
}

.node-core {
  stroke: rgba(199, 237, 103, .35);
  stroke-width: 1;
  fill: none;
}

.welcome-foot {
  margin: 0;
  color: var(--muted-light);
  font-size: .58rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.form-panel {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 48px clamp(28px, 6vw, 92px);
  background:
    radial-gradient(circle at 80% 12%, rgba(199, 237, 103, .3), transparent 16rem),
    var(--paper);
}

.form-wrap {
  width: min(100%, 470px);
  animation: rise .58s .12s ease both;
}

.destination {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: clamp(55px, 9vh, 100px);
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
}

.destination-number {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-size: .65rem;
}

.destination > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.destination-label {
  color: var(--muted);
  font-size: .56rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.destination strong {
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 600;
}

.form-heading {
  margin-bottom: 31px;
}

.form-heading .eyebrow {
  color: var(--coral);
  margin-bottom: 10px;
}

.form-heading h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.2rem, 6vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: .95;
}

.form-heading > p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: .68rem;
}

.notice {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin-bottom: 20px;
  padding: 13px 14px;
  border: 1px solid;
  font-size: .64rem;
  line-height: 1.45;
}

.notice svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
}

.notice-error {
  color: var(--error);
  border-color: rgba(168, 68, 50, .35);
  background: var(--error-bg);
}

.notice-success {
  color: var(--success);
  border-color: rgba(60, 109, 62, .32);
  background: var(--success-bg);
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: .59rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.field input {
  width: 100%;
  height: 55px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 0;
  outline: none;
  color: var(--ink);
  font: 500 .85rem var(--mono);
  background: rgba(255, 253, 248, .7);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.field input:hover {
  border-color: #9ca69f;
}

.field input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px var(--lime);
  background: #fffdf8;
}

.password-field {
  position: relative;
}

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

.reveal {
  position: absolute;
  top: 50%;
  right: 6px;
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--muted);
  cursor: pointer;
  background: transparent;
  transform: translateY(-50%);
}

.reveal:hover {
  color: var(--ink);
  background: var(--paper-deep);
}

.reveal:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: -2px;
}

.reveal svg {
  width: 21px;
  height: 21px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.eye-closed {
  display: none;
}

.reveal[aria-pressed="true"] .eye-open {
  display: none;
}

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

.submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 58px;
  margin-top: 27px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 0;
  color: var(--paper);
  font: 500 .7rem var(--mono);
  letter-spacing: .04em;
  cursor: pointer;
  background: var(--ink);
  transition: color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.submit:hover {
  color: var(--ink);
  background: var(--lime);
  box-shadow: 5px 5px 0 var(--ink);
  transform: translate(-2px, -2px);
}

.submit:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}

.submit-arrow {
  font-size: 1rem;
  transition: transform .2s ease;
}

.submit:hover .submit-arrow {
  transform: translate(4px, -4px);
}

.session-note {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: .58rem;
  line-height: 1.55;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  margin-top: 39px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: .59rem;
}

.quick-links a {
  color: var(--muted);
  text-underline-offset: 4px;
  transition: color .18s ease;
}

.quick-links a:hover,
.quick-links a:focus-visible {
  color: var(--ink);
}

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

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 900px) {
  .login-shell {
    display: block;
  }

  .welcome {
    min-height: auto;
    padding: 25px 24px 38px;
  }

  .welcome-copy {
    padding: 80px 0 15px;
  }

  .welcome h1 {
    font-size: clamp(4.2rem, 17vw, 6.2rem);
  }

  .intro {
    margin-top: 26px;
    font-size: 1.17rem;
  }

  .constellation {
    width: min(100%, 480px);
    margin-top: -10px;
  }

  .welcome-foot {
    display: none;
  }

  .form-panel {
    min-height: auto;
    padding: 42px 24px 55px;
  }

  .destination {
    margin-bottom: 55px;
  }
}

@media (max-width: 460px) {
  .welcome-copy {
    padding-top: 64px;
  }

  .welcome h1 {
    font-size: 3.75rem;
  }

  .constellation {
    margin-bottom: 0;
  }

  .form-panel {
    padding-inline: 17px;
  }

  .form-heading h2 {
    font-size: 3.3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
