body.auth-page {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  background: #09040f;
}

.auth-page #root { min-height: 100vh; min-height: 100dvh; }
.auth-page a { color: inherit; text-decoration: none; }

.auth-shell {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(380px, 0.82fr) minmax(520px, 1.18fr);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 !important;
  overflow: hidden;
  background:
    radial-gradient(circle at 5% 100%, rgba(127, 69, 245, 0.18), transparent 34rem),
    radial-gradient(circle at 95% 0%, rgba(255, 79, 175, 0.13), transparent 32rem),
    #09040f;
}

.auth-grid {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(rgba(185, 92, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(185, 92, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(100deg, #000 0%, rgba(0, 0, 0, 0.7) 58%, transparent 100%);
  mask-image: linear-gradient(100deg, #000 0%, rgba(0, 0, 0, 0.7) 58%, transparent 100%);
}

.auth-orb {
  position: absolute;
  z-index: -2;
  display: block;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}

.auth-orb--top { width: 460px; height: 460px; top: -270px; right: -120px; background: rgba(255, 79, 175, 0.24); }
.auth-orb--bottom { width: 520px; height: 520px; bottom: -320px; left: -120px; background: rgba(127, 69, 245, 0.2); }

.auth-intro {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(28px, 4vw, 62px);
  border-right: 1px solid rgba(206, 119, 255, 0.18);
  background: linear-gradient(145deg, rgba(25, 9, 38, 0.76), rgba(10, 4, 16, 0.5));
}

.auth-intro::after {
  content: "ACCESS";
  position: absolute;
  bottom: 24%;
  left: -1.5rem;
  z-index: -1;
  font-family: var(--display);
  font-size: clamp(6rem, 14vw, 13rem);
  font-weight: 900;
  letter-spacing: -0.08em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(206, 119, 255, 0.07);
  transform: rotate(-90deg) translateX(-30%);
  transform-origin: left bottom;
  pointer-events: none;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 13px;
}

.auth-brand > span:last-child { display: flex; align-items: baseline; gap: 4px; font-family: var(--display); }
.auth-brand strong { font-size: 1.08rem; letter-spacing: -0.04em; }
.auth-brand small { color: #ff78d4; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.12em; }

.auth-intro-copy { margin: auto 0; padding: 68px 0; }
.auth-index,
.auth-kicker { margin: 0 0 18px; color: #ff78d4; font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; }

.auth-intro-copy h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(4rem, 7.2vw, 8.2rem);
  font-weight: 800;
  letter-spacing: -0.075em;
  line-height: 0.82;
  text-transform: uppercase;
}

.auth-intro-copy h1 span,
.auth-intro-copy h1 strong { display: block; }
.auth-intro-copy h1 span { color: #fff7ff; }
.auth-intro-copy h1 strong { color: transparent; -webkit-text-stroke: 1px rgba(255, 120, 212, 0.72); }
.auth-intro-copy > p:last-child { max-width: 430px; margin: 32px 0 0; color: rgba(246, 222, 255, 0.53); font-size: 1rem; line-height: 1.65; }

.auth-security-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid rgba(206, 119, 255, 0.16); }
.auth-security-list > div { min-width: 0; padding: 18px 12px 0 0; }
.auth-security-list span,
.auth-security-list strong,
.auth-security-list small { display: block; }
.auth-security-list span { margin-bottom: 12px; color: rgba(255, 120, 212, 0.62); font-family: var(--mono); font-size: 0.58rem; }
.auth-security-list strong { margin-bottom: 5px; color: rgba(255, 247, 255, 0.87); font-size: 0.74rem; text-transform: uppercase; }
.auth-security-list small { color: rgba(246, 222, 255, 0.34); font-size: 0.66rem; line-height: 1.45; }

.auth-stage {
  position: relative;
  display: grid;
  min-width: 0;
  place-items: center;
  padding: clamp(88px, 10vh, 130px) clamp(24px, 6vw, 92px) 76px;
}

.auth-stage-head {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 clamp(24px, 4vw, 52px);
  border-bottom: 1px solid rgba(206, 119, 255, 0.16);
  color: rgba(246, 222, 255, 0.35);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
}

.auth-stage-head b { color: rgba(255, 120, 212, 0.65); font-weight: 500; }

.auth-card {
  position: relative;
  width: min(100%, 500px);
  max-width: 100%;
  min-width: 0;
  padding: clamp(28px, 5vw, 50px);
  border: 1px solid rgba(206, 119, 255, 0.24);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(25, 9, 38, 0.96), rgba(12, 5, 19, 0.96));
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.48), 14px 14px 0 rgba(179, 82, 255, 0.045);
}

.auth-card::before,
.auth-card::after { content: ""; position: absolute; width: 32px; height: 32px; pointer-events: none; }
.auth-card::before { top: 12px; right: 12px; border-top: 1px solid rgba(255, 120, 212, 0.55); border-right: 1px solid rgba(255, 120, 212, 0.55); }
.auth-card::after { bottom: 12px; left: 12px; border-bottom: 1px solid rgba(198, 152, 255, 0.4); border-left: 1px solid rgba(198, 152, 255, 0.4); }
.auth-card-number { position: absolute; top: 26px; right: 30px; color: rgba(246, 222, 255, 0.16); font-family: var(--display); font-size: 2.5rem; font-weight: 800; }
.auth-card h2 { margin: 0; color: #fff7ff; font-family: var(--display); font-size: clamp(2.2rem, 5vw, 3.75rem); letter-spacing: -0.06em; line-height: 0.96; text-transform: uppercase; }
.auth-lead { margin: 14px 0 28px; color: rgba(246, 222, 255, 0.45); font-size: 0.88rem; line-height: 1.6; }

.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 28px; padding: 4px; border: 1px solid rgba(206, 119, 255, 0.15); border-radius: 6px; background: rgba(163, 79, 255, 0.055); }
.auth-tabs a { display: grid; min-height: 42px; place-items: center; border-radius: 4px; color: rgba(246, 222, 255, 0.42); font-size: 0.78rem; font-weight: 700; }
.auth-tabs a.is-active { color: #fff; background: linear-gradient(110deg, rgba(171, 79, 255, 0.24), rgba(255, 81, 179, 0.14)); box-shadow: inset 0 0 0 1px rgba(206, 119, 255, 0.18); }

.auth-form { display: grid; gap: 18px; }
.auth-field { display: grid; gap: 8px; }
.auth-field > span:first-child { color: rgba(246, 222, 255, 0.55); font-family: var(--mono); font-size: 0.63rem; letter-spacing: 0.09em; text-transform: uppercase; }
.auth-field input {
  width: 100%;
  min-height: 52px;
  padding: 0 15px;
  border: 1px solid rgba(206, 119, 255, 0.18);
  border-radius: 5px;
  outline: none;
  color: #fff7ff;
  background: rgba(7, 2, 12, 0.62);
  font: 500 0.9rem var(--font);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.auth-field input::placeholder { color: rgba(246, 222, 255, 0.23); }
.auth-field input:focus { border-color: rgba(255, 120, 212, 0.58); background: rgba(15, 5, 23, 0.78); box-shadow: 0 0 0 3px rgba(255, 79, 175, 0.08); }
.auth-password-wrap { position: relative; display: block; }
.auth-password-wrap input { padding-right: 52px; }
.auth-eye { position: absolute; top: 50%; right: 8px; display: grid; width: 38px; height: 38px; padding: 0; transform: translateY(-50%); place-items: center; border: 0; border-radius: 4px; color: rgba(246, 222, 255, 0.42); background: transparent; cursor: pointer; }
.auth-eye:hover { color: #fff; background: rgba(163, 79, 255, 0.1); }
.auth-eye svg { width: 20px; height: 20px; }

.auth-message { display: grid; grid-template-columns: 8px minmax(0, 1fr); align-items: start; gap: 10px; padding: 12px 13px; border: 1px solid rgba(255, 107, 169, 0.25); border-radius: 5px; background: rgba(255, 70, 135, 0.07); }
.auth-message > span { width: 7px; height: 7px; margin-top: 6px; border-radius: 50%; background: #ff6ba9; box-shadow: 0 0 12px rgba(255, 107, 169, 0.65); }
.auth-message p { margin: 0; color: rgba(255, 218, 235, 0.82); font-size: 0.78rem; line-height: 1.55; }

.auth-attempts { display: grid; grid-template-columns: auto minmax(60px, 1fr) auto; align-items: center; gap: 12px; color: rgba(246, 222, 255, 0.36); font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.07em; text-transform: uppercase; }
.auth-attempts > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.auth-attempts i { height: 2px; background: rgba(246, 222, 255, 0.12); }
.auth-attempts i.is-available { background: linear-gradient(90deg, #985cff, #ff78d4); box-shadow: 0 0 8px rgba(255, 120, 212, 0.32); }
.auth-attempts b { color: rgba(255, 247, 255, 0.65); font-weight: 500; }

.auth-submit { display: flex; align-items: center; justify-content: space-between; min-height: 56px; margin-top: 4px; padding: 0 18px 0 20px; border: 0; border-radius: 5px; color: #1b0718; background: linear-gradient(135deg, #b45bff, #ff63ba); box-shadow: 8px 8px 0 rgba(218, 78, 194, 0.1); font: 800 0.83rem var(--font); cursor: pointer; transition: transform 0.2s, box-shadow 0.2s, filter 0.2s; }
.auth-submit:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 10px 12px 0 rgba(218, 78, 194, 0.12); filter: brightness(1.08); }
.auth-submit:disabled { cursor: wait; filter: grayscale(0.35); opacity: 0.65; }
.auth-submit svg { width: 20px; height: 20px; }

.auth-card-foot { margin: 24px 0 0; text-align: center; color: rgba(246, 222, 255, 0.36); font-size: 0.75rem; }
.auth-card-foot a { color: #d5adff; font-weight: 700; }
.auth-card-foot a:hover { color: #ff8cd9; }
.auth-stage-foot { position: absolute; right: clamp(24px, 4vw, 52px); bottom: 24px; margin: 0; color: rgba(246, 222, 255, 0.2); font-family: var(--mono); font-size: 0.55rem; letter-spacing: 0.12em; text-transform: uppercase; }

@media (max-width: 980px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-intro { min-height: 310px; padding: 28px; border-right: 0; border-bottom: 1px solid rgba(206, 119, 255, 0.18); }
  .auth-intro-copy { margin: 50px 0 38px; padding: 0; }
  .auth-intro-copy h1 { font-size: clamp(3.7rem, 12vw, 6rem); }
  .auth-intro-copy > p:last-child { margin-top: 20px; }
  .auth-security-list { display: none; }
  .auth-stage { min-height: 720px; }
}

@media (max-width: 560px) {
  .auth-intro { min-height: 265px; padding: 20px; }
  .auth-intro-copy { margin: 42px 0 22px; }
  .auth-intro-copy h1 { font-size: clamp(3.05rem, 18vw, 4.5rem); }
  .auth-intro-copy > p:last-child { font-size: 0.88rem; }
  .auth-stage { min-height: 680px; padding: 92px 14px 54px; }
  .auth-stage-head { min-height: 64px; padding-inline: 18px; }
  .auth-card { padding: 30px 22px 34px; box-shadow: 8px 8px 0 rgba(179, 82, 255, 0.045); }
  .auth-card-number { top: 22px; right: 22px; font-size: 2rem; }
  .auth-card h2 { font-size: clamp(2.2rem, 12vw, 3.1rem); }
  .auth-card--register h2 { font-size: clamp(1.8rem, 9.5vw, 2.5rem); }
  .auth-attempts { grid-template-columns: auto minmax(48px, 1fr) auto; gap: 8px; }
  .auth-stage-foot { display: none; }
}

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