:root {
  --auth-cyan: #25d6f5;
  --auth-blue: #4388ff;
  --auth-violet: #8b5cf6;
  --auth-bg: #030713;
  --auth-panel: #0a1224;
  --auth-border: rgba(124, 151, 198, .18);
  --auth-muted: #8a96af;
}

body.auth-page {
  min-height: 100vh;
  overflow: hidden;
  background: var(--auth-bg);
  color: #f7f9ff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.auth-page .auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(520px, .92fr);
  background:
    radial-gradient(circle at 18% 22%, rgba(37, 214, 245, .12), transparent 30%),
    radial-gradient(circle at 86% 82%, rgba(139, 92, 246, .08), transparent 32%),
    #030713;
}

.auth-page .auth-visual {
  position: relative;
  min-height: 100vh;
  padding: 54px clamp(48px, 6vw, 112px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  border-right: 1px solid rgba(124, 151, 198, .14);
  background-color: #071021;
  background-image:
    linear-gradient(rgba(255,255,255,.019) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.019) 1px, transparent 1px);
  background-size: 28px 28px;
}

.auth-page .auth-visual::before,
.auth-page .auth-visual::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 44%;
  width: min(45vw, 560px);
  aspect-ratio: 1;
  border: 1px solid rgba(37, 214, 245, .18);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 0 70px rgba(37, 214, 245, .025),
    0 0 0 140px rgba(67, 136, 255, .018),
    inset 0 0 90px rgba(37, 214, 245, .035);
}

.auth-page .auth-visual::after {
  width: min(25vw, 320px);
  border-style: dashed;
  border-color: rgba(139, 92, 246, .36);
  box-shadow: none;
  animation: authOrbit 22s linear infinite;
}

@keyframes authOrbit {
  from { transform: translate(-50%, -50%) rotate(0); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.auth-page .auth-brand {
  position: absolute;
  z-index: 5;
  top: 42px;
  left: clamp(48px, 6vw, 112px);
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #f7f9ff;
  font-size: 26px;
  font-weight: 850;
  letter-spacing: -.035em;
  text-decoration: none;
}

.auth-page .auth-brand img {
  width: 48px;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 22px rgba(67, 136, 255, .22));
}

.auth-page .auth-visual-copy {
  position: relative;
  z-index: 4;
  max-width: 610px;
  margin-top: 240px;
}

.auth-page .auth-eyebrow {
  color: var(--auth-cyan);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.auth-page .auth-visual-copy h1 {
  max-width: 620px;
  margin: 14px 0 16px;
  color: #f7f9ff;
  font-size: clamp(36px, 4.2vw, 66px);
  line-height: 1.02;
  letter-spacing: -.055em;
}

.auth-page .auth-visual-copy h1 span {
  color: transparent;
  background: linear-gradient(90deg, var(--auth-cyan), var(--auth-blue) 55%, #b56cff);
  -webkit-background-clip: text;
  background-clip: text;
}

.auth-page .auth-visual-copy p {
  max-width: 560px;
  color: #92a0b9;
  font-size: 16px;
  line-height: 1.75;
}

.auth-page .auth-network {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 44%;
  width: min(47vw, 600px);
  transform: translate(-50%, -50%);
  opacity: .72;
}

.auth-page .auth-network svg { width: 100%; height: auto; filter: hue-rotate(145deg) saturate(1.35) drop-shadow(0 0 12px rgba(37,214,245,.35)); }

.auth-page .auth-visual-foot {
  position: relative;
  z-index: 4;
  margin-top: 40px;
  padding-top: 25px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  border-top: 1px solid rgba(124, 151, 198, .15);
}

.auth-page .auth-proof { display: flex; flex-direction: column; gap: 6px; }
.auth-page .auth-proof strong { color: #f4f8ff; font-size: 19px; }
.auth-page .auth-proof span { color: #6f7c95; font-size: 10px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }

.auth-page .auth-panel {
  position: relative;
  min-height: 100vh;
  padding: 90px 34px 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  background: rgba(3, 7, 19, .84);
}

.auth-page .auth-panel-top {
  position: absolute;
  top: 34px;
  right: 38px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: #7e8aa3;
  font-size: 12px;
}
.auth-page .auth-panel-top a { color: var(--auth-cyan); font-weight: 750; text-decoration: none; }

.auth-page .auth-form-wrap {
  width: min(100%, 480px);
  padding: 36px;
  border: 1px solid var(--auth-border);
  border-radius: 28px;
  background:
    radial-gradient(circle at 100% 0, rgba(139,92,246,.09), transparent 32%),
    rgba(10, 18, 36, .9);
  box-shadow: 0 35px 90px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.025);
  backdrop-filter: blur(22px);
}

.auth-signup-page .auth-form-wrap { width: min(100%, 620px); }

.auth-page .auth-form-wrap > h2 {
  margin: 9px 0 8px;
  color: #fff;
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: -.04em;
}

.auth-page .auth-form-wrap > p { color: var(--auth-muted); font-size: 13px; line-height: 1.65; }

.auth-page .auth-sso {
  width: 100%;
  min-height: 51px;
  margin-top: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid rgba(124, 151, 198, .22);
  border-radius: 13px;
  background: rgba(255,255,255,.025);
  color: #e9effa;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.auth-page .auth-sso:hover { border-color: rgba(37,214,245,.46); background: rgba(37,214,245,.055); transform: translateY(-1px); }
.auth-page .auth-google-mark { width: 20px; height: 20px; }

.auth-page .auth-divider { display: flex; align-items: center; gap: 13px; margin: 22px 0; color: #68758e; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.auth-page .auth-divider::before,
.auth-page .auth-divider::after { content: ""; height: 1px; flex: 1; background: rgba(124,151,198,.15); }

.auth-page .auth-form {
  display: grid;
  gap: 11px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.auth-page .auth-label { margin-top: 4px; display: flex; justify-content: space-between; color: #b6c2d7; font-size: 11px; font-weight: 750; }
.auth-page .auth-label small { color: #68758e; font-size: 9px; text-transform: uppercase; }
.auth-page .auth-field { position: relative; }
.auth-page .auth-field input,
.auth-page .auth-field select {
  width: 100%;
  min-height: 49px;
  padding: 0 14px;
  border: 1px solid rgba(124,151,198,.2);
  border-radius: 12px;
  outline: 0;
  background: rgba(3,8,20,.58);
  color: #f0f5ff;
  font: inherit;
  font-size: 13px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.auth-page .auth-field input:focus,
.auth-page .auth-field select:focus { border-color: var(--auth-cyan); box-shadow: 0 0 0 3px rgba(37,214,245,.09); }
.auth-page .auth-field input::placeholder { color: #58657d; }
.auth-page .auth-field button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); padding: 7px 9px; border: 0; background: transparent; color: #7f8ca4; font-size: 10px; cursor: pointer; }

.auth-page .auth-form-row,
.auth-page .auth-terms { color: #7f8ca4; font-size: 11px; }
.auth-page .auth-form-row { margin: 4px 0 7px; display: flex; justify-content: space-between; gap: 18px; }
.auth-page .auth-form-row a,
.auth-page .auth-terms a,
.auth-page .auth-social-terms a { color: var(--auth-cyan); text-decoration: none; }

.auth-page .auth-submit,
.auth-page .recovery-continue {
  min-height: 51px;
  margin-top: 5px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(100deg, var(--auth-cyan), var(--auth-blue) 58%, var(--auth-violet));
  color: #020713;
  font-size: 13px;
  font-weight: 850;
  box-shadow: 0 15px 34px rgba(37,214,245,.17);
}

.auth-page .auth-note { margin: 18px 0 0 !important; padding-top: 17px; border-top: 1px solid rgba(124,151,198,.12); color: #64718a !important; font-size: 10px !important; text-align: center; }
.auth-page .auth-status { min-height: 18px; color: #67e8f9; font-size: 11px; }
.auth-page .auth-signup-grid { gap: 13px; }
.auth-page .auth-security-title { margin-top: 10px; color: #dce6f7; }
.auth-page .auth-generate-password { color: var(--auth-cyan); border-color: rgba(37,214,245,.2); background: rgba(37,214,245,.04); }
.auth-page .auth-password-strength i { background: #1e2a42; }
.auth-page .auth-password-strength span { color: #68758e; }

.auth-page .recovery-dialog {
  border-color: rgba(37,214,245,.25);
  background: #091225;
  color: #f4f8ff;
  box-shadow: 0 35px 100px rgba(0,0,0,.65);
}

@media (max-width: 1050px) {
  body.auth-page { overflow-y: auto; }
  .auth-page .auth-shell { grid-template-columns: 1fr; }
  .auth-page .auth-visual { min-height: 520px; padding: 120px 42px 45px; }
  .auth-page .auth-brand { left: 42px; }
  .auth-page .auth-visual-copy { margin-top: 180px; }
  .auth-page .auth-network { width: min(78vw, 580px); }
  .auth-page .auth-panel { min-height: auto; padding: 95px 24px 55px; }
}

@media (max-width: 620px) {
  .auth-page .auth-visual { min-height: 430px; padding: 105px 24px 30px; }
  .auth-page .auth-brand { top: 28px; left: 24px; }
  .auth-page .auth-brand img { width: 42px; }
  .auth-page .auth-brand { font-size: 23px; }
  .auth-page .auth-visual-copy { margin-top: 130px; }
  .auth-page .auth-visual-copy h1 { font-size: 38px; }
  .auth-page .auth-visual-copy p { font-size: 13px; }
  .auth-page .auth-visual-foot { gap: 10px; }
  .auth-page .auth-proof strong { font-size: 16px; }
  .auth-page .auth-panel { padding: 90px 14px 38px; }
  .auth-page .auth-panel-top { top: 30px; right: 18px; }
  .auth-page .auth-form-wrap { padding: 25px 19px; border-radius: 22px; }
  .auth-page .auth-signup-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-page .auth-visual::after { animation: none; }
}
