body {
  margin: 0;
  height: 100vh;

  display: flex;
  justify-content: center;
  align-items: center;

  background-image: url("../Imagenes/publiscreen.png"); /* Cambia por tu imagen */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
   background-attachment: fixed;

   font-family: Arial, Helvetica, sans-serif;
}

/* Capa oscura sobre la imagen */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  

  background: linear-gradient(
        rgba(8, 18, 60, 0.45),
        rgba(18, 25, 80, 0.35)
    );

    z-index: 0;
}

/* Contenedor general */
.contenedor {
  position: relative;
  z-index: 1;

  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Logo */
.logo {
  width: 170px;
  margin-bottom: 25px;

   filter: drop-shadow(0 0 10px rgba(255,255,255,.35));
}

/* Tarjeta login */
.conter {
  width: 380px;
  padding: 35px;

  display: flex;
  flex-direction: column;
  gap: 15px;

  background: rgba(15,20,45,.45);
    backdrop-filter: blur(16px);

    border: 1px solid rgba(255,255,255,.20);

    border-radius: 18px;

    box-shadow:
        0 20px 50px rgba(0,0,0,.45),
        0 0 40px rgba(45,120,255,.25);
}

/* Título */
.conter h1 {
  margin: 0;
  text-align: center;
  color: white;
}

/* Descripción */
.conter p {
  margin: 0 0 10px 0;
  text-align: center;
  color: white;
  font-size: 14px;
  line-height: 1.4;
}

/* Inputs */
input {
  padding: 12px;
  border: none;
  border-radius: 8px;
  outline: none;
  font-size: 14px;
}

/* Botón */
.bnt-iniciar {
  padding: 12px;
  border: none;
  border-radius: 8px;

  background-color: #187aeb;
  color: white;

  font-weight: bold;
  font-size: 14px;
  cursor: pointer;

  transition: 0.3s;
}

.bnt-iniciar:hover {
  background-color: #0f5fc0;
}

.conter{

    background: rgba(255,255,255,.12);

    backdrop-filter: blur(15px);

    border:1px solid rgba(255,255,255,.25);

    box-shadow:
        0 15px 40px rgba(0,0,0,.35),
        0 0 35px rgba(24,122,235,.25);

}

.conter form{display:flex;flex-direction:column;gap:9px}
.conter label{color:#fff;font-size:14px;font-weight:600}
.conter input{width:100%;box-sizing:border-box}
.campo-password{display:flex;align-items:center;gap:8px}
.campo-password input{min-width:0;flex:1}
.alternar-password,.boton-secundario{width:auto;padding:8px 11px;border:1px solid rgba(255,255,255,.4);border-radius:7px;background:rgba(15,25,50,.45);color:#fff;cursor:pointer}
.conter .bnt-iniciar{width:100%;margin-top:8px}
.estado-formulario{padding:11px 12px;border-radius:8px;background:rgba(20,30,50,.65);color:#fff!important;text-align:left!important;line-height:1.5}
.estado-formulario[data-tipo="error"]{background:rgba(130,30,35,.72)}
.estado-formulario[data-tipo="exito"]{background:rgba(20,95,60,.72)}
.registro,.recuperar{margin:4px 0!important}
.conter a{color:#b8d9ff}
button:disabled{opacity:.65;cursor:wait}
.dialogo-segundo-factor{width:min(420px,calc(100% - 40px));padding:24px;border:1px solid rgba(255,255,255,.28);border-radius:14px;background:#17233b;color:#fff;box-shadow:0 20px 60px rgba(0,0,0,.5)}
.dialogo-segundo-factor::backdrop{background:rgba(0,0,0,.68);backdrop-filter:blur(3px)}
.dialogo-segundo-factor form{display:flex;flex-direction:column;gap:12px}
.dialogo-segundo-factor h2{margin:0;color:#fff;font-size:21px}
.dialogo-segundo-factor p{margin:0;text-align:left;line-height:1.5}
.dialogo-segundo-factor input{width:100%;box-sizing:border-box}
.acciones-dialogo-segundo-factor{display:flex;justify-content:flex-end;gap:10px;margin-top:6px}
.acciones-dialogo-segundo-factor .bnt-iniciar{width:auto;margin:0}
@media(max-width:520px){.contenedor{width:100%;padding:16px;box-sizing:border-box}.conter{width:100%;max-width:420px;padding:24px}.logo{width:140px}}
