.auth-page {
  display: grid;
  min-height: 100vh;
  padding: 22px;
  overflow-x: hidden;
  color: var(--j-text);
  background: transparent;
}

.auth-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 480px);
  gap: clamp(36px, 8vw, 130px);
  align-items: center;
  width: min(1320px, 100%);
  min-height: calc(100vh - 44px);
  margin: auto;
}

.auth-story {
  display: flex;
  flex-direction: column;
  min-height: min(720px, calc(100vh - 80px));
  padding: clamp(18px, 3vw, 42px);
}

.auth-brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  width: fit-content;
  color: var(--j-text);
  font-size: .76rem;
  letter-spacing: .24em;
  text-decoration: none;
}

.auth-page .auth-mark {
  display: grid;
  width: 38px;
  height: 38px;
  margin: 0;
  place-items: center;
  border: 1px solid var(--j-border-strong);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(137,220,255,.14), transparent 68%);
  box-shadow: inset 0 0 18px rgba(137,220,255,.1), 0 0 24px rgba(87,190,232,.08);
}
.auth-page .auth-mark::before { display: none; }
.auth-page .auth-mark span {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 50%;
  background: var(--j-cyan);
  box-shadow: 0 0 14px var(--j-cyan);
}

.story-copy { margin: auto 0; }
.story-copy h1 {
  max-width: 780px;
  margin: 20px 0 28px;
  font-size: clamp(3.4rem, 7vw, 7rem);
  font-weight: 540;
  letter-spacing: -.07em;
  line-height: .92;
}
.story-copy h1 em {
  color: transparent;
  font-style: normal;
  background: linear-gradient(105deg, #f7fbff 5%, #a9d9eb 50%, #8090d8);
  background-clip: text;
  -webkit-background-clip: text;
}
.story-copy > p:last-child {
  max-width: 620px;
  margin: 0;
  color: var(--j-muted);
  font-size: clamp(.96rem, 1.35vw, 1.1rem);
  line-height: 1.75;
}
.story-foot {
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 0;
  color: var(--j-faint);
  font-size: .65rem;
}
.story-foot span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--j-green);
  box-shadow: 0 0 10px var(--j-green);
}

.auth-shell .auth-card,
.auth-page > .auth-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: auto;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--j-border);
  border-radius: var(--j-radius-xl);
  background: var(--j-glass-strong), rgba(8, 14, 24, .7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), var(--j-shadow-float);
  backdrop-filter: blur(28px) saturate(150%);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
}
.auth-page > .auth-card { align-self: center; }
.auth-shell .auth-card h2,
.auth-page > .auth-card h1 {
  margin: 12px 0 10px;
  font-size: clamp(2rem, 4vw, 2.7rem);
  font-weight: 560;
  letter-spacing: -.055em;
  line-height: 1.05;
}
.auth-page .lede {
  margin: 0 0 30px;
  color: var(--j-muted);
  font-size: .86rem;
  line-height: 1.55;
}
.auth-page form { display: grid; gap: 8px; }
.auth-page form label {
  margin: 10px 0 0;
  color: var(--j-text-soft);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .025em;
}
.auth-page form input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--j-border);
  border-radius: 13px;
  outline: 0;
  color: var(--j-text);
  background: rgba(2, 6, 12, .38);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}
.auth-page form input:focus { border-color: rgba(137,220,255,.42); }
.auth-page form button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  margin-top: 18px;
  padding: 0 17px;
  border: 1px solid rgba(220,247,255,.5);
  border-radius: 13px;
  color: #06111a;
  background: linear-gradient(145deg,#d9f7ff,#83d8f9 58%,#6ebfea);
  box-shadow: inset 0 1px 0 #fff,0 10px 30px rgba(72,180,231,.19);
  font-weight: 720;
  cursor: pointer;
}
.auth-page .form-error {
  margin: 8px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(255,150,158,.25);
  border-radius: 10px;
  color: #ffc2c7;
  background: rgba(255,75,90,.07);
  font-size: .72rem;
}
.auth-page .auth-foot {
  margin: 26px 0 0;
  color: var(--j-faint);
  font-size: .7rem;
  text-align: center;
}
.auth-page .auth-foot a { color: var(--j-cyan-bright); text-decoration: none; }

@media (max-width: 860px) {
  .auth-shell { grid-template-columns: 1fr; gap: 22px; padding: 16px 0 30px; }
  .auth-story { min-height: auto; padding: 24px 10px; }
  .story-copy { margin: 70px 0 40px; }
  .story-copy h1 { font-size: clamp(3.4rem, 12vw, 6rem); }
  .story-foot { display: none; }
}

@media (max-width: 520px) {
  .auth-page { padding: 10px; }
  .auth-shell { min-height: calc(100vh - 20px); }
  .auth-story { padding: 16px 8px; }
  .story-copy { margin: 54px 0 24px; }
  .story-copy h1 { font-size: clamp(3.1rem, 16vw, 4.35rem); }
  .story-copy > p:last-child { font-size: .9rem; }
  .auth-shell .auth-card,
  .auth-page > .auth-card { padding: 27px 20px; border-radius: 26px; }
}
