/* ============================================================================
   VANTAGE · Auth pages v6 — particle constellation
   Split-screen: animated canvas network + pristine form panel
   ========================================================================== */

/* ── Layout ──────────────────────────────────────────────────── */
.auth-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 100vh;
}

/* ── Brand Panel (left) ──────────────────────────────────────── */
.auth-brand {
  position: relative;
  background: #060912;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(32px, 4vw, 56px);
}

/* canvas fills entire panel */
.auth-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* center logo floating above canvas */
.auth-brand__mark {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  pointer-events: none;
}

.auth-brand__mark svg {
  width: 72px; height: 72px;
  filter: drop-shadow(0 0 30px rgba(36,82,255,.35));
}

.auth-brand__mark-label {
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: -.03em;
  color: #fff;
  margin-top: 16px;
}

/* (er) — quiet mono code-style suffix, subordinate to Refetch (visual hierarchy) */
.auth-brand__mark-label .fn,
.auth-logo .fn {
  font-family: "JetBrains Mono", monospace;
  font-weight: 500;
  font-size: .72em;
  letter-spacing: -.02em;
  margin-left: 2px;
  vertical-align: baseline;
}
.auth-brand__mark-label .fn { color: #9fb0d8; }  /* muted steel on dark (variant D) */
.auth-logo .fn { color: #8a93a8; }               /* muted steel on light */

/* copy below */
.auth-brand__copy {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-top: 56px;
  pointer-events: none;
}

.auth-brand__headline {
  font-family: "Outfit", system-ui, sans-serif;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.1;
  color: #fff;
}

.auth-brand__headline .muted {
  color: rgba(255,255,255,.25);
}

/* ── Form Panel (right) ──────────────────────────────────────── */
.auth-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(32px, 5vw, 60px);
  background: #fff;
}

.auth-form__inner {
  width: 100%;
  max-width: 400px;
  opacity: 0;
  transform: translateY(16px);
  animation: authReveal .7s cubic-bezier(.16,1,.3,1) .15s forwards;
}

/* logo */
.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -.03em;
  color: #0B1020;
  text-decoration: none;
  margin-bottom: 44px;
}

.auth-logo svg {
  width: 28px; height: 28px;
  flex-shrink: 0;
}

/* heading */
.auth-heading {
  font-family: "Outfit", system-ui, sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -.03em;
  color: #0B1020;
  line-height: 1.05;
}

.auth-subtitle {
  margin-top: 10px;
  font-size: .95rem;
  color: #59647A;
  line-height: 1.5;
}

.auth-subtitle strong {
  color: #0B1020;
  font-weight: 600;
}

/* google button */
.auth-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 20px;
  margin-top: 32px;
  border-radius: 12px;
  border: 1px solid rgba(11,16,32,.12);
  background: #fff;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: .92rem;
  font-weight: 600;
  color: #0B1020;
  cursor: pointer;
  transition: all .25s cubic-bezier(.16,1,.3,1);
}

.auth-google:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -8px rgba(11,16,32,.1);
  border-color: rgba(11,16,32,.2);
}

.auth-google:active { transform: translateY(0); }
.auth-google svg { width: 18px; height: 18px; flex-shrink: 0; }

/* divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 28px 0;
  font-family: "JetBrains Mono", monospace;
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #97A0B2;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(11,16,32,.08);
}

/* form fields */
.auth-field { margin-bottom: 20px; }

.auth-label {
  display: block;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: .8rem;
  font-weight: 600;
  color: #0B1020;
  margin-bottom: 7px;
}

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

.auth-input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid rgba(11,16,32,.1);
  border-radius: 12px;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: .9rem;
  color: #0B1020;
  background: #F7F9FC;
  outline: none;
  transition: all .2s cubic-bezier(.16,1,.3,1);
}

.auth-input:focus {
  border-color: #2452FF;
  box-shadow: 0 0 0 4px rgba(36,82,255,.08);
  background: #fff;
}

.auth-input::placeholder { color: #B0B8C9; }
.auth-input--password { padding-right: 48px; }

.auth-toggle-pw {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #97A0B2;
  padding: 4px;
  display: flex;
  transition: color .15s;
}

.auth-toggle-pw:hover { color: #0B1020; }
.auth-toggle-pw svg { width: 18px; height: 18px; }

/* forgot */
.auth-forgot {
  display: block;
  text-align: right;
  margin-top: -12px;
  margin-bottom: 24px;
  font-size: .82rem;
  color: #2452FF;
  font-weight: 500;
  text-decoration: none;
}

.auth-forgot:hover { color: #1736D6; }

/* submit */
.auth-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 24px;
  border-radius: 12px;
  border: none;
  background: #0B1020;
  color: #fff;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all .3s cubic-bezier(.16,1,.3,1);
}

.auth-submit::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(108deg, #2452FF 0%, #168AE8 100%);
  opacity: 0;
  transition: opacity .3s;
}

.auth-submit:hover::before { opacity: 1; }

.auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -20px rgba(36,82,255,.35);
}

.auth-submit:active { transform: translateY(0); }

.auth-submit span {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-submit .arrow {
  transition: transform .35s cubic-bezier(.16,1,.3,1);
}

.auth-submit:hover .arrow { transform: translateX(4px); }

/* footer */
.auth-footer {
  margin-top: 32px;
  text-align: center;
  font-size: .88rem;
  color: #59647A;
}

.auth-footer a {
  color: #2452FF;
  font-weight: 600;
  text-decoration: none;
}

.auth-footer a:hover { color: #1736D6; }

/* terms */
.auth-terms {
  margin-top: 20px;
  text-align: center;
  font-size: .75rem;
  color: #97A0B2;
  line-height: 1.5;
}

.auth-terms a {
  color: #59647A;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-terms a:hover { color: #2452FF; }

/* ── Keyframes ───────────────────────────────────────────────── */
@keyframes authReveal {
  to { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .auth-layout {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .auth-brand {
    display: none;
  }

  .auth-form {
    min-height: 100vh;
    background: linear-gradient(180deg, #F7F9FC 0%, #fff 30%);
  }
}

@media (max-width: 480px) {
  .auth-form {
    padding: 32px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .auth-form__inner {
    opacity: 1 !important;
    transform: none !important;
  }
  .auth-canvas { display: none; }
}
