/* ============================================================
   STACK Intelligence — Auth (accounts app)
   ============================================================
   Login / logout. Se carga junto a base.css (NO showcase.css).
   Reutiliza los design tokens de base.css (--navy, --orange,
   --radius…) para mantener consistencia con el resto de la app.

   La pantalla de auth usa superficie oscura (navy) porque es el
   puente hacia el Command Center, que también es oscuro.
   ============================================================ */

body.auth-page {
  background: var(--navy);
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Nav minimal (solo logo) ─────────────────────────────────── */
.auth-nav {
  height: 62px;
  display: flex;
  align-items: center;
  padding: 0 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.auth-nav__logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.auth-nav__logo img { height: 34px; width: auto; }
.auth-nav__divider { width: 1px; height: 22px; background: rgba(255, 255, 255, 0.18); }
.auth-nav__text { display: flex; flex-direction: column; line-height: 1; }
.auth-nav__text strong { font-size: 0.95rem; font-weight: 900; color: #fff; letter-spacing: -0.02em; }
.auth-nav__text span { font-size: 0.52rem; font-weight: 700; color: var(--orange); letter-spacing: 0.15em; text-transform: uppercase; margin-top: 3px; }

/* ── Main centrado + glow de fondo (mismo lenguaje que el hero) ── */
.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
  position: relative;
  overflow: hidden;
}
.auth-main::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 60% at 50% 0%, rgba(59, 130, 246, 0.10), transparent 60%),
    radial-gradient(ellipse 50% 50% at 50% 100%, rgba(249, 115, 22, 0.06), transparent 55%);
}

/* ── Card ────────────────────────────────────────────────────── */
.auth-card {
  position: relative; z-index: 1;
  width: 100%; max-width: 420px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.auth-card__header { text-align: center; margin-bottom: 28px; }
.auth-card__icon {
  width: 52px; height: 52px; margin: 0 auto 16px;
  background: var(--orange-dim);
  border: 1px solid rgba(249, 115, 22, 0.30);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
}
.auth-card__title { font-size: 1.4rem; font-weight: 900; color: #fff; letter-spacing: -0.02em; margin-bottom: 6px; }
.auth-card__subtitle { font-size: 0.875rem; color: rgba(255, 255, 255, 0.55); }

/* ── Form ────────────────────────────────────────────────────── */
.auth-field { margin-bottom: 18px; }
.auth-field label {
  display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.50); margin-bottom: 8px;
}
.auth-input {
  width: 100%; padding: 11px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  color: #fff; font-size: 0.9rem; font-family: inherit;
  outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.auth-input::placeholder { color: rgba(255, 255, 255, 0.30); }
.auth-input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-dim); }

.auth-submit {
  width: 100%; margin-top: 6px;
  padding: 12px; border: none; cursor: pointer;
  background: var(--orange); color: #fff;
  border-radius: var(--radius);
  font-size: 0.95rem; font-weight: 700; font-family: inherit;
  transition: background 0.15s, transform 0.15s;
}
.auth-submit:hover { background: var(--orange-2); transform: translateY(-1px); }

/* ── Errores de validación ───────────────────────────────────── */
.auth-errors {
  background: rgba(239, 68, 68, 0.10);
  border: 1px solid rgba(239, 68, 68, 0.30);
  color: #fca5a5;
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 0.82rem;
  line-height: 1.5;
  margin-bottom: 18px;
}
.auth-errors p { margin: 0; }

/* ── Nota al pie ─────────────────────────────────────────────── */
.auth-foot { text-align: center; font-size: 0.8rem; color: rgba(255, 255, 255, 0.45); margin-top: 22px; }
.auth-foot a { color: var(--orange); text-decoration: none; font-weight: 600; }
.auth-foot a:hover { text-decoration: underline; }
