/* ════════════════════════════════════════════════════════════════════
   ingreso-noche.css — "Ingresar" (login.php) en "Noche"
   (rediseño Apple, etapa 4, noviembre 2026).
   Render aprobado: docs/redisenio-apple/etapa4.html (pantalla 1).
   Todo bajo body.ingreso-noche: $INGRESO_NOCHE = false devuelve la
   pantalla de siempre. Solo la piel: el <form>, los ids, Google, el
   "Mantener sesión" y su JS no cambian.
   Se carga DESPUÉS del <style> inline de la página.
   Sin backdrop-filter ni animaciones.
   ════════════════════════════════════════════════════════════════════ */

body.ingreso-noche { background: var(--n-bg); color: var(--n-txt); -webkit-font-smoothing: antialiased; }
body.ingreso-noche * { font-family: var(--to-font); }
body.ingreso-noche .bi,
body.ingreso-noche [class^="bi-"],
body.ingreso-noche [class*=" bi-"] { font-family: bootstrap-icons !important; }

/* ── Arriba: logo + "Volver", sin migas ─────────────────────────────── */
body.ingreso-noche .navbar-custom { padding: 16px 0 0; }
body.ingreso-noche .navbar-custom .breadcrumbs { display: none; }
body.ingreso-noche .navbar-custom .back-link {
  color: var(--n-sec); font-weight: 500; font-size: 15px; min-height: 44px;
}
body.ingreso-noche .navbar-custom .back-link:hover { color: var(--n-txt); }

/* ── La tarjeta desaparece: todo va sobre el negro ──────────────────── */
body.ingreso-noche .main-content { align-items: flex-start; padding: 24px 20px 40px; }
body.ingreso-noche .login-card {
  background: transparent; box-shadow: none; border-radius: 0; padding: 8px 0 0; max-width: 420px;
}
body.ingreso-noche .login-card h1 {
  font-size: 40px; font-weight: 700; letter-spacing: -.04em; line-height: 1.05; color: var(--n-txt); margin-bottom: 10px;
}
body.ingreso-noche .login-card h1 .g {
  background: var(--to-amarillo-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
body.ingreso-noche .login-card .subtitle { color: var(--n-sec); font-size: 16px; margin-bottom: 28px; }

/* ── Google + separador ─────────────────────────────────────────────── */
body.ingreso-noche .google-divider::before,
body.ingreso-noche .google-divider::after,
body.ingreso-noche .divider::before,
body.ingreso-noche .divider::after { background: var(--n-borde); }
body.ingreso-noche .google-divider span,
body.ingreso-noche .divider span { color: var(--n-ter); }

/* ── Campos oscuros, foco amarillo ──────────────────────────────────── */
body.ingreso-noche .form-group { margin-bottom: 18px; }
body.ingreso-noche .form-group label { color: var(--n-sec); font-weight: 600; font-size: 13.5px; }
body.ingreso-noche .form-group input {
  background: var(--n-card); border: 1px solid var(--n-borde); color: var(--n-txt);
  border-radius: 14px; font-size: 16px; min-height: 54px;
}
body.ingreso-noche .form-group input::placeholder { color: var(--n-ter); }
body.ingreso-noche .form-group input:focus {
  background: var(--n-card-2); border-color: var(--to-amarillo); box-shadow: 0 0 0 3px rgba(255,209,26,.25);
}
/* El autocompletado de Chrome pinta el campo de celeste: lo devolvemos al oscuro. */
body.ingreso-noche .form-group input:-webkit-autofill {
  -webkit-text-fill-color: var(--n-txt); -webkit-box-shadow: 0 0 0 1000px var(--n-card) inset; caret-color: var(--n-txt);
}
body.ingreso-noche .form-group .input-wrapper > i:first-child,
body.ingreso-noche .password-toggle { color: var(--n-ter); }
body.ingreso-noche .password-toggle { min-width: 44px; min-height: 44px; right: 6px; }
body.ingreso-noche .password-toggle:hover { color: var(--n-txt); }
body.ingreso-noche .forgot-password a { color: var(--n-sec); display: inline-block; padding: 10px 0; }
body.ingreso-noche .forgot-password a:hover { color: var(--to-amarillo); }

/* ── "Mantener sesión" como fila oscura ─────────────────────────────── */
body.ingreso-noche .remember-row { margin: 4px 0 20px; }
body.ingreso-noche .remember-check {
  width: 100%; background: var(--n-card); border: 1px solid var(--n-borde); border-radius: 14px;
  padding: 10px 14px; color: var(--n-txt); font-size: 14px;
}
body.ingreso-noche .remember-check input { accent-color: var(--to-amarillo); }
body.ingreso-noche .remember-otro { color: var(--n-sec); }
body.ingreso-noche .remember-otro:hover { color: var(--n-txt); }

/* ── Botón: pill amarilla ───────────────────────────────────────────── */
body.ingreso-noche .btn-login {
  background: var(--to-amarillo); color: #000; border-radius: 999px; font-size: 17px; font-weight: 700;
  min-height: 54px; padding: 14px; box-shadow: none;
}
body.ingreso-noche .btn-login:hover { background: #ffe066; transform: none; box-shadow: none; }

/* ── Registro ───────────────────────────────────────────────────────── */
body.ingreso-noche .divider { margin: 28px 0 14px; }
body.ingreso-noche .register-link { color: var(--n-sec); }
body.ingreso-noche .register-link a {
  color: var(--to-amarillo); display: inline-block; padding: 10px 6px; min-height: 44px;
}
body.ingreso-noche .register-link a:hover { color: #ffe066; }

/* App instalada: la burbuja de registro sobre negro */
body.ingreso-noche .app-login-busco a { color: var(--n-txt); }

/* ── Pie ────────────────────────────────────────────────────────────── */
body.ingreso-noche .footer-mini { color: var(--n-ter); }
body.ingreso-noche .footer-mini a { color: var(--n-sec); }

@media (max-width: 480px) {
  body.ingreso-noche .login-card { padding: 4px 0 0; }
  body.ingreso-noche .login-card h1 { font-size: 36px; }
}

/* App instalada ("Soy nuevo, registrarme"): tarjeta oscura en vez de verde claro */
body.ingreso-noche .app-login-nuevo { background: var(--n-card); border-color: var(--n-borde); }
body.ingreso-noche .app-login-nuevo p { color: var(--n-txt); }
