.auth-page {
  min-height: 100vh;
  background: #070b0c;
  color: #f7fbfa;
}

.auth-page main {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.auth-page main::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
    radial-gradient(circle at 12% 18%, rgba(119,75,255,.2), transparent 30%),
    radial-gradient(circle at 88% 26%, rgba(29,211,154,.16), transparent 28%);
  background-size: 72px 72px, 72px 72px, auto, auto;
  mask-image: linear-gradient(to bottom, #000 75%, transparent);
}

.auth-shell {
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100vh - 190px);
  margin: 0 auto;
  padding: 54px 0 70px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, .78fr);
  gap: 32px;
  align-items: stretch;
}

.auth-shell.signup-layout {
  grid-template-columns: minmax(440px, .82fr) minmax(0, 1fr);
}

.auth-story,
.auth-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 34px;
  box-shadow: 0 32px 100px rgba(0,0,0,.35);
}

.auth-story {
  min-height: 650px;
  padding: clamp(34px, 5vw, 68px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(145deg, rgba(38,28,76,.96), rgba(9,35,31,.92)),
    #111;
}

.auth-story::before,
.auth-story::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.auth-story::before {
  width: 440px;
  height: 440px;
  right: -180px;
  top: -170px;
  border: 1px solid rgba(87,255,199,.2);
  box-shadow: 0 0 90px rgba(29,211,154,.12), inset 0 0 90px rgba(29,211,154,.05);
}

.auth-story::after {
  width: 280px;
  height: 280px;
  left: -130px;
  bottom: -140px;
  background: rgba(125,75,255,.15);
  filter: blur(22px);
}

.auth-kicker,
.auth-secure {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  padding: 9px 13px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: #d7e3e0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.auth-kicker-dot,
.auth-secure::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #35dea8;
  box-shadow: 0 0 16px rgba(53,222,168,.8);
}

.auth-story-copy {
  position: relative;
  z-index: 1;
  max-width: 660px;
}

.auth-story h1 {
  max-width: 720px;
  margin: 24px 0 18px;
  font-size: clamp(46px, 6vw, 78px);
  line-height: .96;
  letter-spacing: -.065em;
}

.auth-story h1 span {
  color: #6be8bc;
}

.auth-story-copy > p {
  max-width: 590px;
  margin: 0;
  color: rgba(232,241,239,.72);
  font-size: 18px;
  line-height: 1.7;
}

.auth-proof-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 38px;
}

.auth-proof {
  min-height: 106px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  background: rgba(3,10,10,.28);
  backdrop-filter: blur(14px);
}

.auth-proof strong {
  font-size: 24px;
  letter-spacing: -.04em;
}

.auth-proof span {
  margin-top: 4px;
  color: rgba(233,240,239,.58);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.auth-promise-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 13px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.auth-promise-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(239,246,244,.8);
  font-weight: 650;
}

.auth-promise-list li::before {
  content: "✓";
  display: grid;
  place-items: center;
  flex: 0 0 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(53,222,168,.14);
  color: #56e2b2;
  font-size: 12px;
}

.auth-card {
  padding: clamp(30px, 4vw, 52px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(155deg, rgba(22,28,29,.96), rgba(10,14,15,.98));
}

.auth-card-head {
  margin-bottom: 28px;
}

.auth-card h2 {
  margin: 18px 0 10px;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.03;
  letter-spacing: -.055em;
}

.auth-card-head p {
  margin: 0;
  color: #98a7a4;
  line-height: 1.65;
}

.auth-form {
  display: grid;
  gap: 18px;
}

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

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

.auth-field label,
.auth-label-row label {
  color: #dfe9e7;
  font-size: 13px;
  font-weight: 800;
}

.auth-field-wrap {
  position: relative;
}

.auth-input {
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 16px;
  outline: none;
  background: rgba(255,255,255,.045);
  color: #fff;
  font: inherit;
  transition: border-color .2s, box-shadow .2s, background .2s;
}

.auth-input::placeholder { color: #687774; }
.auth-input:hover { border-color: rgba(255,255,255,.18); }
.auth-input:focus {
  border-color: rgba(70,224,174,.7);
  background: rgba(255,255,255,.065);
  box-shadow: 0 0 0 4px rgba(53,222,168,.1);
}

.auth-input.has-toggle { padding-right: 74px; }

.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  padding: 9px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #9eadaa;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.password-toggle:hover { background: rgba(255,255,255,.07); color: #fff; }

.auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #9ba9a6;
  font-size: 13px;
}

.auth-check {
  display: inline-flex;
  align-items: flex-start;
  gap: 9px;
  color: #9ba9a6;
  font-size: 13px;
  line-height: 1.5;
}

.auth-check input {
  width: 17px;
  height: 17px;
  margin: 1px 0 0;
  accent-color: #35dea8;
}

.auth-link {
  color: #80e9c5;
  font-weight: 750;
  text-decoration: none;
}

.auth-link:hover { color: #b7f5df; text-decoration: underline; }

.auth-submit {
  width: 100%;
  min-height: 56px;
  margin-top: 2px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(110deg, #7547ff, #3478f6 58%, #27c993);
  color: #fff;
  font: inherit;
  font-weight: 900;
  letter-spacing: -.01em;
  cursor: pointer;
  box-shadow: 0 15px 38px rgba(67,89,245,.23);
  transition: transform .2s, filter .2s, opacity .2s;
}

.auth-submit:hover { transform: translateY(-2px); filter: brightness(1.08); }
.auth-submit:disabled { cursor: wait; opacity: .58; transform: none; }

.auth-message {
  display: none;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 13px;
  background: rgba(255,255,255,.045);
  color: #c6d2d0;
  font-size: 13px;
  line-height: 1.5;
}

.auth-message:not(:empty) { display: block; }
.auth-message.error { border-color: rgba(255,105,128,.3); background: rgba(255,74,105,.08); color: #ff9caf; }
.auth-message.success { border-color: rgba(53,222,168,.3); background: rgba(53,222,168,.08); color: #7aebc5; }

.auth-switch {
  margin: 24px 0 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: #91a09d;
  text-align: center;
  font-size: 14px;
}

.password-strength {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.password-strength span {
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  transition: background .2s;
}

.password-strength[data-score="1"] span:nth-child(1),
.password-strength[data-score="2"] span:nth-child(-n+2) { background: #ff8a66; }
.password-strength[data-score="3"] span:nth-child(-n+3) { background: #e3c757; }
.password-strength[data-score="4"] span { background: #35dea8; }

.password-hint {
  color: #75827f;
  font-size: 12px;
  line-height: 1.45;
}

.auth-fineprint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #6f7d7a;
  font-size: 11px;
}

.auth-fineprint::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #35dea8;
}

@media (max-width: 940px) {
  .auth-shell,
  .auth-shell.signup-layout { grid-template-columns: 1fr; width: min(680px, calc(100% - 28px)); }
  .auth-story { min-height: auto; padding: 40px; }
  .auth-shell.signup-layout .auth-card { order: 1; }
  .auth-shell.signup-layout .auth-story { order: 2; }
}

@media (max-width: 600px) {
  .auth-shell { padding: 26px 0 46px; gap: 18px; }
  .auth-story, .auth-card { border-radius: 24px; }
  .auth-story { padding: 28px 24px; }
  .auth-story h1 { font-size: 43px; }
  .auth-story-copy > p { font-size: 15px; }
  .auth-proof-grid { grid-template-columns: 1fr; }
  .auth-proof { min-height: 78px; }
  .auth-promise-list { font-size: 14px; }
  .auth-card { padding: 28px 22px; }
  .auth-options { align-items: flex-start; }
}
