.background-login {
  background:
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXm4gv4dXWp581zwk2iGF8fybtwTgRlm9bqFxM0VQpQY_JcGBt7XRuaitjAdIxG7egW5HNbGKRSgJibzRjcmTnXZfzKG07vgdRyag_q_R6UV_Iq9F_6-Zyx9joCLqorF8pWIhz-g6nDR66/s1600/C%C3%B3mo+seleccionar+un+caballo+de+carreras.bmp) no-repeat center top;
  background-size: cover;
  background-attachment: fixed;
  font-family: 'Barlow Condensed', sans-serif;
  height: 100vh;
  overflow: hidden;
}

.app-wrapper {
  font-family: 'Barlow Condensed', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.slider {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}


.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.logo-top {
  position: absolute;
  top: 20px;
  right: 70px;
  z-index: 3;
}

.overlay-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 150%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 2;
}

.reunion {
  font-size: 2rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-style: italic;
  font-weight: 600;
}

.fecha {
  font-size: 3rem;
  font-weight: bold;
  font-family: 'Barlow Condensed', sans-serif;
  font-style: italic;
}

/* Formulario */
.btn-group {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  width: 100%;
}

input.login-input,
.btn.solid {
  height: 70px;
  font-size: 25px;
  font-family: 'Barlow Condensed', sans-serif;
  border-radius: 35px;
  font-weight: 700;
  width: 280px;
  max-width: 90vw;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Inputs */
input.login-input {
  background-color: white;
  color: #112551;
  border: 2px solid #B4F22E;
  text-align: center;
}

input.login-input::placeholder {
  color: #999;
  opacity: 1;
}

/* Botón Ingresar */
.btn.solid {
  background-color: #B4F22E;
  color: #1A2B4C;
  border: none;
  cursor: pointer;
  transition: 0.3s ease;
}

/* Botón Olvidar clave */
.olvido_clave {
  display: block;
  margin-top: 15px;
  font-family: 'Barlow Condensed', sans-serif;
  font-style: italic;
  font-weight: 600;
  font-size: 18px;
  color: #ffffff;
  text-align: center;
  text-decoration: none;
  transition: color 0.3s ease;
}

.olvido_clave:hover {
  color: #B4F22E; /* verde neón del botón ingresar */
}

.btn.solid:hover {
  opacity: 0.9;
}

/* Recuperar clave */
#contenedor_recuperar_clave {
  background-color: white;
  max-width: 400px;
  margin: 40px auto;
  padding: 25px 30px;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

#titulo_recuperar_clave {
  font-size: 1.5rem;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  margin-bottom: 15px;
  color: #112551;
  border-bottom: 3px solid #112551;
  padding-bottom: 5px;
}

.texto_recuperar_clave {
  font-size: 18px;
  line-height: 1.6;
  color: #444;
  font-style: italic;
  margin-bottom: 30px;
}

#form_clave {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

#form_clave input[type="text"],
#form_clave input[name="dato_ingresado"] {
  padding: 14px;
  font-size: 18px;
  font-family: 'Barlow Condensed', sans-serif;
  font-style: italic;
  border: 2px solid #B4F22E;
  border-radius: 35px;
  text-align: center;
  color: #112551;
  background-color: white;
}

#form_clave input::placeholder {
  color: #aaa;
  font-style: italic;
}

#form_clave input[type="submit"] {
  padding: 14px;
  background-color: #B4F22E;
  color: #112551;
  font-size: 1.2rem;
  font-weight: 700;
  border: none;
  border-radius: 35px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#form_clave input[type="submit"]:hover {
  background-color: #a2d91d;
}

.btn-volver {
  display: inline-block;
  margin-top: 15px;
  padding: 12px 30px;
  background-color: #B4F22E;
  color: #112551;
  border-radius: 30px;
  text-transform: uppercase;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
}

.btn-volver:hover {
  background-color: #a1da2b;
  color: #0c1b38;
}


/* Mensajes */
.acceso_denegado {
  display: block;
  margin-top: 15px;
  font-family: 'Barlow Condensed', sans-serif;
  font-style: italic;
  font-weight: 600;
  font-size: 16px;
  color: #ff5a5f; /* rojo coral */
  background-color: rgba(255, 90, 95, 0.1);
  border: 1px solid #ff5a5f;
  padding: 10px 16px;
  border-radius: 30px;
  text-align: center;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

#mensaje_recuperar_clave {
  max-width: 400px;
  margin: 20px auto;
  padding: 16px 24px;
  border-radius: 10px;
  font-size: 1rem;
  font-style: italic;
  text-align: center;
}

#mensaje_recuperar_clave.error {
  background-color: rgba(240, 61, 61, 0.15);
  border: 1px solid #F03D3D;
  color: #fff;
  padding: 10px 20px;
  border-radius: 10px;
  font-family: 'Barlow Condensed', sans-serif;
  font-style: italic;
  font-weight: 600;
  text-align: center;
  margin: 30px auto;
  max-width: 600px;
}

#mensaje_recuperar_clave.success {
  background-color: rgba(180, 242, 46, 0.1);
  border: 1px solid #B4F22E;
  color: #ffffff;
}

/* Estilos para mensajes de error diferenciados - Sistema de Seguridad */

/* Mensaje de error crítico (IP/Usuario bloqueado) - MEJORADO */
.acceso_bloqueado_critico {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    padding: 20px 25px;
    border-radius: 12px;
    margin: 20px 0;
    text-align: center;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.4),
        0 4px 12px rgba(220, 53, 69, 0.6);
    border: 3px solid #fff;
    animation: pulseError 2s infinite;
    backdrop-filter: blur(5px);
    position: relative;
    z-index: 10;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

/* Añadir overlay semi-transparente detrás del mensaje */
.acceso_bloqueado_critico::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 16px;
    z-index: -1;
}

.acceso_bloqueado_critico i {
    font-size: 24px;
    margin-right: 10px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.acceso_bloqueado_critico span {
    display: block;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.4;
}

.acceso_bloqueado_critico small {
    display: block;
    font-size: 14px;
    opacity: 0.95;
    font-style: italic;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    margin-top: 5px;
}

/* Mensaje de bloqueo en formulario - MEJORADO */
.mensaje_bloqueo {
    color: #fff;
    font-weight: 700;
    text-align: center;
    padding: 25px;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.9), rgba(200, 35, 51, 0.9));
    border-radius: 10px;
    border: 2px solid #fff;
    margin: 15px 0;
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.4),
        0 2px 8px rgba(220, 53, 69, 0.5);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
    font-size: 15px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Animación mejorada para errores críticos */
@keyframes pulseError {
    0% { 
        box-shadow: 
            0 8px 25px rgba(0, 0, 0, 0.4),
            0 4px 12px rgba(220, 53, 69, 0.6);
        transform: scale(1);
    }
    50% { 
        box-shadow: 
            0 12px 35px rgba(0, 0, 0, 0.5),
            0 6px 20px rgba(220, 53, 69, 0.8);
        transform: scale(1.02);
    }
    100% { 
        box-shadow: 
            0 8px 25px rgba(0, 0, 0, 0.4),
            0 4px 12px rgba(220, 53, 69, 0.6);
        transform: scale(1);
    }
}

/* Mejora del mensaje de acceso denegado existente */
.acceso_denegado {
    background: linear-gradient(135deg, #fd7e14, #e8590c);
    color: white;
    padding: 12px 18px;
    border-radius: 6px;
    margin: 12px 0;
    text-align: center;
    box-shadow: 0 3px 10px rgba(253, 126, 20, 0.3);
    border: 1px solid #d63384;
    font-weight: 500;
    display: block;
}

/* Responsive para mensajes */
@media (max-width: 768px) {
    .acceso_bloqueado_critico,
    .acceso_mantenimiento {
        padding: 12px 15px;
        margin: 10px 0;
    }
    
    .acceso_bloqueado_critico span,
    .acceso_mantenimiento span {
        font-size: 13px;
    }
    
    .mensaje_bloqueo {
        padding: 15px;
        font-size: 14px;
    }
}

/* Responsive */
@media (max-width: 500px) {
  body {
    padding: 10px;
  }

  #contenedor_recuperar_clave {
    padding: 20px;
  }

  #form_clave input[type="text"],
  #form_clave input[type="submit"] {
    font-size: 1rem;
  }
}