.shell[hidden],
.auth-screen[hidden] {
  display: none;
}

.auth-screen {
  min-height: 100vh;
  padding: clamp(24px, 6vw, 76px);
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 8% 16%, #16414355, transparent 28%),
    radial-gradient(circle at 92% 90%, #9a744018, transparent 30%),
    #071113;
}

.auth-layout {
  width: min(1080px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(330px, 430px);
  gap: clamp(42px, 8vw, 120px);
  align-items: center;
}

.auth-intro {
  min-width: 0;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  margin-bottom: clamp(70px, 12vh, 142px);
}

.auth-brand strong,
.auth-brand small {
  display: block;
}

.auth-brand strong {
  font-size: 15px;
}

.auth-brand small {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .08em;
  margin-top: 3px;
  text-transform: uppercase;
}

.auth-intro h1 {
  max-width: 650px;
  margin: 12px 0 16px;
  color: var(--ink);
  font: 500 clamp(42px, 6vw, 76px) / .95 Georgia, serif;
  letter-spacing: -.055em;
}

.auth-lede {
  max-width: 520px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

.auth-visual {
  width: min(100%, 520px);
  margin: 46px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0 16px;
}

.auth-coordinates,
.auth-visual-caption {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.parcel-map {
  position: relative;
  height: 104px;
  margin: 12px 0 13px;
  overflow: hidden;
  border: 1px solid #2b514e;
  background:
    linear-gradient(28deg, transparent 48%, #6fe0b02e 49%, transparent 50%) 0 0 / 86px 86px,
    linear-gradient(155deg, transparent 48%, #6fe0b021 49%, transparent 50%) 0 0 / 112px 112px,
    #0b1b1c;
}

.parcel-map::before,
.parcel-map::after {
  content: "";
  position: absolute;
  background: #6fe0b040;
}

.parcel-map::before {
  inset: 25% 0 auto;
  height: 1px;
  box-shadow: 0 42px #6fe0b040;
}

.parcel-map::after {
  top: 0;
  bottom: 0;
  left: 33%;
  width: 1px;
  box-shadow: 170px 0 #6fe0b040;
}

.parcel-map i {
  position: absolute;
  z-index: 1;
  width: 1px;
  height: 180%;
  background: #e4bd7233;
  transform: rotate(64deg);
}

.parcel-map i:nth-child(1) { left: 13%; top: -36%; }
.parcel-map i:nth-child(2) { left: 54%; top: -32%; transform: rotate(72deg); }
.parcel-map i:nth-child(3) { left: 78%; top: -38%; transform: rotate(68deg); }
.parcel-map i:nth-child(4) { left: 36%; top: -31%; transform: rotate(69deg); }

.parcel-map b {
  position: absolute;
  z-index: 2;
  left: 64%;
  top: 44%;
  width: 13px;
  height: 13px;
  border: 2px solid var(--green);
  border-radius: 50%;
  background: #071113;
  box-shadow: 0 0 0 6px #6fe0b01c, 0 0 24px #6fe0b077;
}

.auth-visual-caption {
  justify-content: flex-start;
  gap: 9px;
  letter-spacing: .06em;
}

.auth-visual-caption .live-dot {
  width: 6px;
  height: 6px;
  margin-top: 1px;
}

.auth-principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 620px;
  margin-top: 30px;
}

.auth-principles div {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.auth-principles strong,
.auth-principles span {
  display: block;
}

.auth-principles strong {
  color: var(--gold);
  font-size: 10px;
  letter-spacing: .12em;
}

.auth-principles span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
  margin-top: 8px;
}

.auth-card {
  position: relative;
  padding: clamp(25px, 4vw, 39px);
  border: 1px solid #2b514e;
  border-radius: 10px;
  background: linear-gradient(145deg, #112728, #0c1c1e 70%);
  box-shadow: 0 25px 80px #02070780;
}

.auth-card::before {
  position: absolute;
  top: 0;
  left: 28px;
  width: 66px;
  height: 2px;
  background: var(--green);
  content: "";
}

.auth-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-lock {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--green);
  font-size: 17px;
}

.auth-card h2 {
  margin: 17px 0 10px;
  color: var(--ink);
  font: 500 34px / 1 Georgia, serif;
  letter-spacing: -.035em;
}

.auth-card .dialog-copy {
  margin-bottom: 27px;
}

.auth-field {
  display: block;
  margin: 18px 0;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .02em;
}

.auth-field input {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 13px 14px;
  border: 1px solid #2b514e;
  border-radius: 6px;
  outline: none;
  background: #081617;
  color: var(--ink);
  font-size: 14px;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.auth-field input::placeholder {
  color: #648078;
}

.auth-field input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px #6fe0b01c;
}

.auth-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 25px;
  padding: 14px 16px;
}

.auth-submit span {
  font-size: 18px;
  font-weight: 400;
}

.auth-security-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 24px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  color: var(--green);
  font-size: 10px;
  line-height: 1.4;
}

.auth-security-note small {
  color: var(--muted);
  font-size: 10px;
}

.auth-card .form-error {
  min-height: 17px;
  margin: 11px 0 0;
}

@media (max-width: 800px) {
  .auth-screen {
    display: block;
    padding: 24px 18px 45px;
  }

  .auth-layout {
    display: block;
    width: min(520px, 100%);
    margin: 0 auto;
  }

  .auth-brand {
    margin-bottom: 58px;
  }

  .auth-intro h1 {
    font-size: clamp(42px, 12vw, 62px);
  }

  .auth-visual {
    margin-top: 32px;
  }

  .auth-card {
    margin-top: 35px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-field input {
    transition: none;
  }
}
