/* ==========================================================================
   ScoutEdge auth (login + signup) — premium "flagship" redesign.
   Scoped to body.auth-pro so it only restyles; all JS hooks/IDs unchanged.
   Brand: dark green / black / white / neon green. GPU transforms only.
   ========================================================================== */

.auth-pro {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  background:
    radial-gradient(900px 600px at 100% 0%, rgba(31,224,122,0.05), transparent 60%),
    var(--bg);
  min-height: 100vh;
}

/* ==========================================================================
   LEFT — cinematic dark-green brand panel
   ========================================================================== */
.auth-pro .auth-aside {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 56px 56px 44px;
  color: #eafff2;
  background:
    radial-gradient(700px 420px at 80% -5%, rgba(31,224,122,0.26), transparent 68%),
    radial-gradient(560px 360px at -5% 108%, rgba(212,255,58,0.12), transparent 66%),
    linear-gradient(158deg, #0c4529 0%, #0a3620 52%, #052a18 100%);
}
.auth-pro .auth-aside::before {
  /* fine engineered grid, fades toward the form */
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(105deg, #000 35%, transparent 92%);
  -webkit-mask-image: linear-gradient(105deg, #000 35%, transparent 92%);
  pointer-events: none;
}
.auth-pro .auth-aside::after { display: none; }

/* floating glow orbs */
.auth-pro .auth-aside .orb {
  position: absolute; border-radius: 50%; filter: blur(2px); pointer-events: none; z-index: 0;
}

.auth-pro .auth-aside-top { position: relative; z-index: 2; }
.auth-pro .auth-aside .logo-light { color: #fff; }
.auth-pro .auth-aside .logo-mark { filter: drop-shadow(0 0 10px rgba(31,224,122,0.45)); }

.auth-pro .auth-aside-body { position: relative; z-index: 2; max-width: 32em; margin-top: auto; }

/* eyebrow pill */
.auth-pro .auth-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 13px; margin: 0 0 20px;
  border: 1px solid rgba(31,224,122,0.4); border-radius: 999px;
  background: rgba(31,224,122,0.1);
  font: 700 0.72rem/1 var(--font); text-transform: uppercase; letter-spacing: 0.14em; color: #8fffc0;
}
.auth-pro .auth-eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--volt);
  box-shadow: 0 0 10px var(--volt); animation: auth-blink 2.4s ease-in-out infinite;
}
@keyframes auth-blink { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.auth-pro .auth-aside h2 {
  font-family: var(--display); text-transform: uppercase; font-weight: 800;
  font-size: clamp(2.1rem, 3.6vw, 3.3rem); line-height: 0.96; letter-spacing: 0.005em;
  color: #fff; margin: 0 0 18px;
}
.auth-pro .auth-aside h2 br { display: block; }
.auth-pro .auth-aside h2 .hl { color: var(--volt); }
.auth-pro .auth-aside > .auth-aside-body > p {
  color: #bdeace; font-size: 1.08rem; line-height: 1.55; margin: 0 0 30px;
}

/* trust strip */
.auth-pro .auth-trust {
  position: relative; z-index: 2; display: flex; gap: 30px; margin-top: 34px;
  padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.1);
}
.auth-pro .auth-trust div { display: flex; flex-direction: column; gap: 2px; }
.auth-pro .auth-trust b {
  font: 800 1.5rem/1 var(--display); color: #fff; letter-spacing: 0.01em;
}
.auth-pro .auth-trust span { font-size: 0.76rem; color: #8fc3a5; text-transform: uppercase; letter-spacing: 0.08em; }

.auth-pro .aside-foot { position: relative; z-index: 2; color: #7fb295; font-size: 0.82rem; margin-top: 24px; }

/* entrance */
.auth-pro .auth-eyebrow, .auth-pro .auth-aside h2,
.auth-pro .auth-aside-body > p, .auth-pro .auth-flow, .auth-pro .auth-trust {
  opacity: 0; transform: translateY(16px); animation: auth-rise 0.75s cubic-bezier(0.22,1,0.36,1) forwards;
}
.auth-pro .auth-aside h2 { animation-delay: 0.06s; }
.auth-pro .auth-aside-body > p { animation-delay: 0.14s; }
.auth-pro .auth-flow { animation-delay: 0.22s; }
.auth-pro .auth-trust { animation-delay: 0.5s; }
@keyframes auth-rise { to { opacity: 1; transform: none; } }

/* ---------- Product-flow visual (Profile -> Trial -> Scout -> Eval -> History) ---------- */
.auth-flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.auth-flow-step {
  display: flex; align-items: center; gap: 14px; padding: 12px 15px; position: relative;
  border: 1px solid rgba(255,255,255,0.12); border-radius: 13px;
  background: linear-gradient(100deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
  backdrop-filter: blur(3px); margin-bottom: 20px; max-width: 320px;
  opacity: 0; transform: translateX(-12px); animation: flow-in 0.5s cubic-bezier(0.22,1,0.36,1) forwards;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.auth-flow-step:hover { border-color: rgba(31,224,122,0.5); transform: translateX(4px); box-shadow: 0 14px 34px -22px rgba(0,0,0,0.7); }
.auth-flow-step:last-child { margin-bottom: 0; }
.auth-flow-step:nth-child(1) { animation-delay: 0.30s; }
.auth-flow-step:nth-child(2) { animation-delay: 0.42s; }
.auth-flow-step:nth-child(3) { animation-delay: 0.54s; }
.auth-flow-step:nth-child(4) { animation-delay: 0.66s; }
.auth-flow-step:nth-child(5) { animation-delay: 0.78s; }
@keyframes flow-in { to { opacity: 1; transform: none; } }
.auth-flow-step:not(:last-child)::after {
  content: ""; position: absolute; left: 26px; top: 100%; height: 20px; width: 2px;
  background: linear-gradient(rgba(31,224,122,0.8), rgba(31,224,122,0.12));
}
.auth-flow-ic {
  flex: none; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-text); font-size: 0.6rem; transform: rotate(45deg);
  box-shadow: 0 0 0 4px rgba(31,224,122,0.12);
}
.auth-flow-step b { display: block; font: 800 0.96rem/1 var(--display); text-transform: uppercase; letter-spacing: 0.04em; color: #fff; }
.auth-flow-step span { font-size: 0.78rem; color: #9fd3b4; }
.auth-flow::before {
  content: ""; position: absolute; left: 26px; top: 0; width: 2px; height: 24px; border-radius: 2px;
  background: linear-gradient(var(--volt), transparent); opacity: 0.9;
  animation: flow-pulse 3.2s ease-in-out 1.4s infinite;
}
@keyframes flow-pulse { 0% { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: calc(100% - 24px); opacity: 0; } }

/* ==========================================================================
   RIGHT — form column
   ========================================================================== */
.auth-pro .auth-main { padding: 48px 32px; position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.auth-pro .auth-card {
  width: 100%; max-width: 452px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 20px; padding: 42px 40px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 40px 90px -50px rgba(16,25,20,0.4);
  opacity: 0; transform: translateY(20px); animation: auth-rise 0.6s cubic-bezier(0.22,1,0.36,1) 0.1s forwards;
}
.auth-pro .auth-card h1 { font-family: var(--display); text-transform: uppercase; font-size: 2.15rem; line-height: 1.02; letter-spacing: 0.01em; margin: 0; }
.auth-pro .auth-sub { color: var(--muted); margin: 10px 0 24px; font-size: 0.98rem; }
.auth-pro .auth-sub a { color: var(--accent-strong); font-weight: 600; }

/* inputs */
.auth-pro .field { position: relative; }
.auth-pro .field > span, .auth-pro .field > .label-row { font-weight: 700; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text); }
.auth-pro input {
  min-height: 50px; border-radius: 12px; background: var(--surface-2, var(--surface));
  border: 1.5px solid var(--border-strong);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.auth-pro input:hover { border-color: var(--muted); }
.auth-pro input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(31,224,122,0.18); background: var(--surface); outline: none; }
.auth-pro .label-row { display: flex; justify-content: space-between; align-items: baseline; }
.auth-pro .label-row a { font-weight: 600; text-transform: none; letter-spacing: 0; font-size: 0.82rem; color: var(--accent-strong); }

/* buttons */
.auth-pro .btn-block { min-height: 52px; border-radius: 12px; font-size: 1rem; letter-spacing: 0.02em; }
.auth-pro .btn-primary { position: relative; overflow: hidden; transition: transform 0.18s cubic-bezier(0.22,1,0.36,1), box-shadow 0.18s ease, background 0.15s; }
.auth-pro .btn-primary:hover { transform: translateY(-2px); box-shadow: var(--glow); }
.auth-pro .btn-primary:active { transform: translateY(0); }
.auth-pro .btn-primary::after { content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,0.5), transparent); transform: skewX(-18deg); }
.auth-pro .btn-primary:hover::after { animation: auth-sheen 0.8s ease; }
@keyframes auth-sheen { to { left: 160%; } }
.auth-pro .btn-outline { min-height: 52px; border-width: 1.5px; border-radius: 12px; transition: border-color 0.18s, background 0.18s, transform 0.18s; }
.auth-pro .btn-outline:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-1px); }

/* google button with inline mark */
.auth-pro #google { gap: 10px; font-weight: 600; }

.auth-pro .divider { color: var(--muted); margin: 20px 0; }
.auth-pro .auth-foot { margin: 22px 0 0; text-align: center; font-size: 0.94rem; color: var(--muted); }
.auth-pro .auth-foot a { color: var(--accent-strong); font-weight: 600; }
.auth-pro .fine { color: var(--muted); font-size: 0.82rem; }

/* ---------- Signup: steps + role cards ---------- */
.auth-pro .steps-indicator { gap: 10px; }
.auth-pro .steps-indicator li { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; }
.auth-pro .steps-indicator li[aria-current] { color: var(--accent-strong); border-top-color: var(--accent); }
.auth-pro .role-cards { display: grid; gap: 12px; margin: 22px 0; }
.auth-pro .role-card {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px; border: 1.5px solid var(--border);
  border-radius: 15px; cursor: pointer; position: relative; overflow: hidden;
  transition: border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.auth-pro .role-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(var(--accent), var(--volt)); transform: scaleY(0); transform-origin: top; transition: transform 0.3s cubic-bezier(0.22,1,0.36,1); }
.auth-pro .role-card:hover { border-color: var(--border-strong); background: var(--surface-2); transform: translateY(-2px); box-shadow: 0 16px 36px -26px rgba(16,25,20,0.3); }
.auth-pro .role-card:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: var(--glow); }
.auth-pro .role-card:has(input:checked)::before { transform: scaleY(1); }
.auth-pro .role-body strong { font: 800 1.05rem/1 var(--display); text-transform: uppercase; letter-spacing: 0.02em; }
.auth-pro .role-body span { color: var(--muted); font-size: 0.9rem; }

.auth-pro #alerts:not(:empty), .auth-pro #verify-alerts:not(:empty) { margin-bottom: 14px; }
.auth-pro .auth-legal { max-width: 452px; text-align: center; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 980px) {
  .auth-pro { grid-template-columns: 1fr; }
  .auth-pro .auth-aside {
    flex-direction: column; align-items: flex-start; gap: 14px; padding: 24px 22px 26px;
  }
  .auth-pro .auth-aside::before { mask-image: none; -webkit-mask-image: none; opacity: 0.5; }
  .auth-pro .auth-aside-body { margin-top: 6px; max-width: none; }
  .auth-pro .auth-aside h2 { font-size: 1.7rem; margin-bottom: 10px; }
  /* keep line breaks on mobile so sentences don't glue together;
     the headline simply wraps onto more lines, which is fine. */
  .auth-pro .auth-aside h2 br { display: block; }
  .auth-pro .auth-aside h2 { font-size: 1.55rem; }
  .auth-pro .auth-aside-body > p { margin-bottom: 0; font-size: 0.98rem; }
  .auth-pro .auth-flow { display: none; }
  .auth-pro .auth-trust { gap: 22px; margin-top: 20px; padding-top: 18px; }
  .auth-pro .auth-trust b { font-size: 1.25rem; }
  .auth-pro .aside-foot { display: none; }
  .auth-pro .auth-mobile-logo { display: none; }
  .auth-pro .auth-main { padding: 30px 18px 48px; justify-content: flex-start; }
  .auth-pro .auth-card { padding: 30px 24px; }
}
@media (max-width: 560px) {
  .auth-pro .auth-trust { display: none; }
  .auth-pro .auth-aside { padding: 20px 18px; }
  .auth-pro .auth-card h1 { font-size: 1.85rem; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-pro .auth-eyebrow, .auth-pro .auth-aside h2, .auth-pro .auth-aside-body > p,
  .auth-pro .auth-flow, .auth-pro .auth-flow-step, .auth-pro .auth-trust, .auth-pro .auth-card {
    opacity: 1 !important; transform: none !important; animation: none !important;
  }
  .auth-pro .auth-flow::before, .auth-pro .auth-eyebrow::before { animation: none !important; }
}
