#auth-gate {
  display: grid;
  grid-template-columns: minmax(0, 1.36fr) minmax(340px, 1fr);
  place-items: stretch;
  min-height: 100dvh;
  width: min(100%, 1700px);
  margin: 0 auto;
  padding: clamp(12px, 2vw, 30px);
  gap: clamp(8px, 2vw, 32px);
}

.auth-showcase {
  position: relative;
  isolation: isolate;
  display: grid;
  overflow: hidden;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 550px;
  gap: 20px;
  padding: clamp(26px, 4.1vw, 66px) clamp(27px, 4.8vw, 75px);
  border: 1px solid #343954;
  border-radius: 22px;
  background:
    radial-gradient(ellipse at 77% 83%, #2b2266a8, transparent 65%),
    radial-gradient(ellipse at 88% 39%, #25315cb0, transparent 48%),
    #111424;
  box-shadow: 0 18px 45px #15132b36;
  color: #f5f5ff;
}
.auth-showcase::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background-image: linear-gradient(#7c8fc218 1px, transparent 1px), linear-gradient(90deg, #7c8fc218 1px, transparent 1px);
  background-size: 45px 45px;
  mask-image: radial-gradient(ellipse at 82% 65%, black, transparent 75%);
}
#auth-network {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.auth-showcase__brand { display: flex; align-items: center; gap: 10px; font-size: 17px; }
.auth-showcase__brand .brand-mark { width: 36px; height: 36px; }
.auth-showcase__brand span { margin-left: 4px; color: #b0b8d5; font-weight: 600; }
.auth-showcase__copy { align-self: center; padding-bottom: clamp(70px, 11vh, 130px); }
.auth-showcase__copy h2 {
  margin: 0 0 18px;
  font-size: clamp(34px, 4.25vw, 75px);
  font-weight: 730;
  line-height: 1.23;
  letter-spacing: -.052em;
  text-shadow: 0 3px 30px #101321;
}
.auth-showcase__copy h2 span { color: #c5b8ff; }
.auth-showcase__copy p { color: #ccd2eb; font-size: clamp(13px, 1.25vw, 16px); line-height: 1.8; }
.auth-showcase__status {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  border: 1px solid #7a88ae48;
  border-radius: 8px;
  padding: 7px 10px;
  background: #151a31c7;
  color: #d6dcf3;
  font: 11px/1.3 ui-monospace, "SF Mono", "PingFang SC", monospace;
}
.auth-showcase__status i { width: 7px; height: 7px; border-radius: 50%; background: #a5aac5; box-shadow: 0 0 0 3px #dae1ff17; }
.auth-showcase__status[data-online="true"] i { background: #82e9bd; box-shadow: 0 0 0 3px #82e9bd26; }
.auth-showcase__status[data-online="false"] i { background: #f0bb7d; box-shadow: 0 0 0 3px #f0bb7d26; }

.auth-entry { position: relative; display: grid; min-width: 0; place-items: center; padding: 68px 18px 40px; }
.auth-entry__tools { position: absolute; top: 6px; right: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.auth-entry__tools .manual-link { margin: 0; padding: 0; color: var(--muted); text-align: start; text-decoration: none; }
.auth-entry__tools .manual-link:hover { color: var(--brand-strong); }
.auth-entry__tools select { border-radius: 7px; }

#auth-form {
  width: min(100%, 400px);
  gap: 13px;
  padding: clamp(22px, 3vw, 39px);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.auth-entry__heading { display: grid; gap: 8px; margin-bottom: 10px; }
.auth-entry__heading h1 { font-size: clamp(25px, 2.45vw, 32px); letter-spacing: -.034em; }
.auth-entry__heading p { font-size: 13px; line-height: 1.5; }
#auth-form .field { color: var(--ink); font-size: 12px; font-weight: 650; }
#auth-form input {
  min-height: 39px;
  border-radius: 8px;
  background: var(--chat-wall);
  font-size: 14px;
  font-weight: 500;
}
.auth-password-control { position: relative; display: flex; }
.auth-password-control input { padding-right: 48px; }
#auth-password-toggle { position: absolute; inset: 4px 4px 4px auto; padding-inline: 8px; border-radius: 6px; }
#auth-password-toggle:hover { background: var(--brand-soft); }
#auth-form .button { min-height: 40px; border-radius: 8px; font-size: 13px; }
#auth-submit { border: 1px solid transparent; background: var(--action); color: var(--action-ink); font-weight: 700; }
#auth-submit:hover:not(:disabled) { background: var(--action-hover); }
#auth-switch { background: var(--chat-wall); }
#auth-switch:hover:not(:disabled) { background: var(--brand-soft); }
#auth-error:empty { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .auth-showcase__copy, #auth-form { animation: auth-arrive .45s ease-out both; }
  #auth-form { animation-delay: 55ms; }
}

@keyframes auth-arrive {
  from { opacity: .35; transform: translateY(7px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 860px) {
  #auth-gate { grid-template-columns: minmax(0, 1fr) minmax(325px, .9fr); }
  .auth-entry { padding-inline: 10px; }
  .auth-showcase__copy h2 { font-size: clamp(28px, 4.7vw, 45px); }
}

@media (max-width: 640px) {
  #auth-gate { grid-template-columns: 1fr; align-content: start; padding: 10px; gap: 0; }
  .auth-showcase { min-height: 0; gap: 14px; padding: 15px 18px 17px; border-radius: 13px; }
  .auth-showcase__brand { font-size: 14px; }
  .auth-showcase__brand .brand-mark { width: 27px; height: 27px; }
  .auth-showcase__copy { padding-bottom: 0; }
  .auth-showcase__copy h2 { margin-bottom: 6px; font-size: clamp(23px, 5.2vw, 31px); }
  .auth-showcase__copy h2 br { display: none; }
  .auth-showcase__copy p { color: #e0e5fa; font-size: 11px; line-height: 1.55; }
  .auth-showcase__copy p br { display: none; }
  .auth-showcase__status { display: none; }
  .auth-entry { padding: 45px 0 8px; }
  .auth-entry__tools { top: 8px; right: 4px; }
  #auth-form { padding: 19px 17px; gap: 10px; border-radius: 12px; }
}
