body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-box {
  background: rgba(255, 255, 255, 0.95);
  padding: 40px;
  border-radius: 12px;
  width: 340px;
  text-align: center;
  box-shadow: 0px 6px 25px rgba(0,0,0,0.3);
}

.login-box h2 {
  margin-bottom: 25px;
  font-size: 20px;
  font-weight: bold;
  color: #333;
}

.login-box input {
  width: 90%;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: 0.3s;
}

.login-box input:focus {
  border-color: #007BFF;
  box-shadow: 0px 0px 5px rgba(0,123,255,0.5);
}

.login-box button {
  width: 100%;
  padding: 12px;
  margin-top: 15px;
  background: #4267B2;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  font-weight: bold;
  transition: background 0.3s;
}

.login-box button:hover {
  background: #2e4f8f;
}

.login-box a {
  display: block;
  margin-top: 15px;
  font-size: 14px;
  color: #333;
  text-decoration: none;
}

.login-box a:hover {
  text-decoration: underline;
}


h1{ margin:0; font-weight:800; letter-spacing:.2px; font-size:clamp(28px, 5vw, 46px); }

.card{
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.04));
  border:1px solid var(--card-border);
  border-radius:18px;
  padding:24px;
  box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,.02) inset;
  backdrop-filter: blur(2px);
}
.card + .card{ margin-top:28px; }

h2{ margin:0 0 12px; font-size:1.4rem; }
p{ color:var(--muted); margin:0 0 10px; }
ul{ margin:0; padding-left:20px; color:var(--text); }

/* Responsive */
@media (max-width:720px){
  .form-card .form-grid{
    grid-template-columns: 1fr;
  }
  .form-card label{ margin-top:6px; }
}
/* Fondo global de toda la página */
html, body { height: 100%; }

/* Fondo global de toda la página */
html, body { height: 100%; }

body{
  margin:0;
  color:#0e1420;
  font:16px/1.55 system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  background:#0b0f16;           /* fallback si no carga la imagen */
  position:relative;
}

body::before{
  content:"";
  position:fixed;               /* cubre toda la ventana incluso con scroll */
  inset:0;
  z-index:-1;                   /* queda detrás de todo */
  background:
    linear-gradient(180deg, rgba(162, 168, 179, 0.3), rgba(11,15,22,.30)),
    url("img/mina.jpg") center / cover no-repeat;
}

/* Si en móvil notas tirones, cambia a scroll */
@media (max-width: 768px){
  body::before{ position:absolute; }
}
/* ===== Capas para slideshow con crossfade ===== */
.bg,
.bg.next {
  position: fixed;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: -2;                 /* por delante del fallback body::before */
  transition: opacity 1s ease-in-out;
}
.bg { opacity: 1; }
.bg.next { opacity: 0; z-index: -1; }

/* Oscurecer un poco el fondo (opcional) */
.bg::after,
.bg.next::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(162,168,179,0.30), rgba(11,15,22,0.30));
}

/* === AJUSTE EN TU CSS EXISTENTE ===
   Cambia z-index de body::before a -3 (estaba en -1) para que sea un fallback */
body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-3; /* <-- antes -1 */
  background:
    linear-gradient(180deg, rgba(162, 168, 179, 0.3), rgba(11,15,22,.30)),
    url("img/mina.jpg") center / cover no-repeat;
}

/* En móvil, si quieres, puedes mantener tu ajuste: */
@media (max-width: 768px){
  body::before{ position:absolute; }
}

