/* =====================================================================
   Sentinel Systems — auth refinement layer (v41)
   Loaded last on the sign-in / create-account page. Tightens the layout,
   makes the form the clear focus, and removes the continuously animated
   sweep that repainted the whole shell.
   Scoped to .auth-pro.
   ===================================================================== */

.auth-pro {
  --ar-edge: rgba(148, 178, 226, 0.14);
  --ar-edge-hot: rgba(129, 178, 255, 0.55);
  --ar-field: rgba(9, 15, 28, 0.62);
  --ar-radius: 14px;
}

/* ---------------------------------------------------------- performance */

.auth-pro .auth-shell::after { animation: none !important; opacity: .5; }
.auth-pro .auth-aurora span { animation-duration: 26s; opacity: .34; filter: blur(70px); }

@media (prefers-reduced-motion: reduce) {
  .auth-pro *,
  .auth-pro *::before,
  .auth-pro *::after { animation: none !important; transition: none !important; }
}

/* --------------------------------------------------------------- shell */

.auth-pro .auth-section-pro { padding-block: clamp(1.5rem, 5vw, 3.5rem); }

.auth-pro .auth-shell {
  grid-template-columns: 1fr minmax(0, 480px);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  max-width: 1140px;
}

@media (max-width: 980px) {
  .auth-pro .auth-shell { grid-template-columns: minmax(0, 1fr); }
  .auth-pro .auth-pitch { display: none; }
  .auth-pro .auth-panel { max-width: 480px; margin-inline: auto; }
}

/* ----------------------------------------------------------- left pitch */

.auth-pro .auth-pitch h1 {
  font-size: clamp(2rem, 3.9vw, 2.95rem);
  line-height: 1.06;
  letter-spacing: -.038em;
}
.auth-pro .auth-pitch > p {
  color: #9db0cf;
  line-height: 1.65;
  margin-top: .85rem;
}
.auth-pro .auth-points { margin-top: 1.75rem; gap: .35rem; }
.auth-pro .auth-points li {
  padding: .7rem .85rem;
  border-radius: 12px;
  font-size: .9rem;
  line-height: 1.55;
}
.auth-pro .auth-points li:hover { transform: none; }
.auth-pro .auth-stats { margin-top: 1.5rem; padding-top: 1.2rem; }

/* ---------------------------------------------------------------- card */

.auth-pro .auth-card-pro {
  border-radius: 20px;
  border: 1px solid var(--ar-edge);
  padding: clamp(1.4rem, 2.8vw, 2rem);
  box-shadow: 0 34px 74px -46px rgba(0, 0, 0, .95);
  backdrop-filter: blur(18px);
}
.auth-pro .auth-card-pro::before { opacity: .7; }

.auth-pro .auth-brandline {
  display: flex; align-items: center; gap: .7rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--ar-edge);
}
.auth-pro .auth-brandline img { width: 32px; height: 32px; border-radius: 9px; }
.auth-pro .auth-brandline b { display: block; font-size: .95rem; letter-spacing: -.015em; }
.auth-pro .auth-brandline small {
  display: block; color: var(--text-dim);
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
}

/* mode switch */
.auth-pro .auth-switch {
  border-radius: 12px;
  border: 1px solid var(--ar-edge);
  background: rgba(9, 15, 28, .55);
  padding: .25rem;
  margin-bottom: 1.25rem;
}
.auth-pro .auth-switch a {
  font-size: .85rem;
  font-weight: 600;
  padding-block: .5rem;
  border-radius: 9px;
  color: var(--text-muted);
}
.auth-pro .auth-switch a[aria-selected="true"] { color: #fff; }
.auth-pro .auth-switch-pill { border-radius: 9px; }

.auth-pro .auth-title { margin-bottom: 1.15rem; }
.auth-pro .auth-title h2 {
  font-size: 1.3rem;
  letter-spacing: -.026em;
  line-height: 1.2;
}
.auth-pro .auth-title p {
  color: var(--text-muted);
  font-size: .88rem;
  margin-top: .3rem;
  line-height: 1.55;
}

/* --------------------------------------------------------------- form */

.auth-pro .auth-form-pro { display: grid; gap: .95rem; }

.auth-pro .auth-field { display: grid; gap: .4rem; }
.auth-pro .auth-field label {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: #c6d4ea;
}

.auth-pro .auth-input-wrap {
  display: flex; align-items: center; gap: .55rem;
  border: 1px solid var(--ar-edge);
  border-radius: var(--ar-radius);
  background: var(--ar-field);
  padding: 0 .75rem;
  min-height: 46px;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.auth-pro .auth-input-wrap:focus-within {
  border-color: var(--ar-edge-hot);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, .15);
  background: rgba(11, 19, 34, .8);
}
.auth-pro .auth-input-wrap > svg { width: 17px; height: 17px; flex: none; color: #7f93b4; }
.auth-pro .auth-input-wrap input {
  flex: 1; min-width: 0;
  border: 0; background: none; outline: none;
  color: var(--text);
  font-size: .93rem;
  padding: .6rem 0;
}
.auth-pro .auth-input-wrap input::placeholder { color: #64748b; }

.auth-pro .password-toggle {
  border: 0; background: none; cursor: pointer;
  color: #9cc4ff;
  font-size: .74rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  padding: .25rem .1rem;
}
.auth-pro .password-toggle:hover { color: #cfe0ff; }

.auth-pro .auth-hint,
.auth-pro .auth-caps,
.auth-pro .auth-match { font-size: .76rem; color: var(--text-dim); margin: 0; }

.auth-pro .auth-strength { margin-top: .1rem; }
.auth-pro .auth-strength-bar { display: flex; gap: .3rem; }
.auth-pro .auth-strength-bar i {
  flex: 1; height: 4px; border-radius: 999px;
  background: rgba(148, 178, 226, .16);
}
.auth-pro .auth-strength-text { font-size: .74rem; margin-top: .35rem; color: var(--text-dim); }

.auth-pro .auth-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: .75rem; font-size: .82rem;
}
.auth-pro .auth-terms {
  display: flex; align-items: flex-start; gap: .55rem;
  font-size: .82rem; line-height: 1.5; color: var(--text-muted);
}
.auth-pro .auth-terms input { margin-top: .18rem; accent-color: #3b82f6; }

.auth-pro .auth-submit {
  margin-top: .3rem;
  min-height: 46px;
  border-radius: var(--ar-radius);
  font-size: .93rem;
  font-weight: 650;
  letter-spacing: -.005em;
  transition: transform .16s ease, filter .16s ease, box-shadow .16s ease;
}
.auth-pro .auth-submit:hover { transform: translateY(-1px); filter: brightness(1.05); }
.auth-pro .auth-submit:active { transform: translateY(0); }

.auth-pro .auth-alert {
  display: grid; gap: .3rem;
  border-radius: 12px;
  border: 1px solid rgba(248, 113, 113, .38);
  background: rgba(248, 113, 113, .1);
  color: #fecaca;
  padding: .75rem .9rem;
  font-size: .84rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

/* --------------------------------------------------------- alternatives */

.auth-pro .auth-or {
  display: flex; align-items: center; gap: .8rem;
  margin: 1.15rem 0;
  color: var(--text-dim);
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
}
.auth-pro .auth-or::before,
.auth-pro .auth-or::after {
  content: ""; flex: 1; height: 1px; background: var(--ar-edge);
}

.auth-pro .auth-discord {
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 46px;
  border-radius: var(--ar-radius);
  border: 1px solid rgba(88, 101, 242, .42);
  background: rgba(88, 101, 242, .14);
  color: #dfe3ff;
  font-size: .9rem; font-weight: 600;
  transition: background-color .18s ease, border-color .18s ease, transform .16s ease;
}
.auth-pro .auth-discord:hover {
  background: rgba(88, 101, 242, .24);
  border-color: rgba(88, 101, 242, .65);
  transform: translateY(-1px);
}
.auth-pro .auth-discord svg { width: 19px; height: 19px; }

.auth-pro .auth-foot-note {
  margin-top: 1.1rem;
  text-align: center;
  font-size: .85rem;
  color: var(--text-muted);
}
.auth-pro .auth-secure {
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  margin-top: .6rem;
  font-size: .74rem;
  color: var(--text-dim);
}
.auth-pro .auth-secure svg { width: 14px; height: 14px; }

.auth-pro .auth-assurance {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem;
  margin-top: 1.1rem;
  font-size: .78rem;
  color: var(--text-dim);
}
.auth-pro .auth-assurance span { display: inline-flex; align-items: center; gap: .35rem; }
.auth-pro .auth-assurance svg { width: 13px; height: 13px; color: #5eead4; }

/* ------------------------------------------------------------- a11y/UX */

.auth-pro a:focus-visible,
.auth-pro button:focus-visible,
.auth-pro input:focus-visible {
  outline: 2px solid #7fb0ff;
  outline-offset: 2px;
  border-radius: 8px;
}
