* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  width: 100%;
  height: 100%;
  font-family: sans-serif;
}

.fondo {
  position: relative;
  width: 100%;
  height: 100vh;
  background-image: url('assets/images/fondoazul.png');
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible; 
}

.centro {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  padding-top: 40px;
}
.fondo-botones-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 45vw;
  height: 100vh;
  max-width: none; 
  max-height: none;
  z-index: 0;
  overflow: hidden;
}
.fondo-botones {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.centro,
.formulario-container {
  position: relative;
  z-index: 1;
}
.boton {
  position: relative;
  z-index: 1;
  max-width: 350px;
  width: 90%;           
  height: auto;         
  cursor: pointer;
  transition: transform 0.2s ease;
  top: 30px;
}
.boton img {
  display: block;
  width: auto;  
  height: auto; /* mantiene proporción */
  max-width: 100%;
}
.boton:hover {
  transform: scale(1.05);
}
.formulario-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 85px;
}

.formulario-container form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 300px;
}

.formulario-container input, .formulario-container button {
  padding: 10px;
  font-size: 1rem;
  border: none;
  border-radius: 5px;
}

.oculto {
  display: none;
} 
/* Color y subrayado para el texto de los inputs */
.formulario-container input {
  color: #0ebcc8;
  border-bottom: 2px solid #0ebcc8; /* subrayado visible */
  background: transparent;
  outline: none;
}

/* Color y subrayado para el placeholder (texto gris dentro del input) */
.formulario-container input::placeholder {
  color: #0ebcc8;
  opacity: 1; /* para que el color del placeholder se vea igual en todos los navegadores */
}
.btn-registrarse {
  display: block;
  position: relative;
  left: -8px;  /* mueve el botón 100px hacia la izquierda */
  background-color: transparent;
  border: none;
  width: 320px;
  height: 60px;
  background-image: url('assets/images/registrarse.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;
  color: transparent;
  text-indent: -9999px;
  overflow: hidden;
  white-space: nowrap;
  padding: 0;
  transition: transform 0.2s ease;
}
.btn-registrarse:hover {
  transform: scale(1.05);
}
.btn-iniciar {
  display: block;
  position: relative;
  left: -8px;  /* mueve el botón 100px hacia la izquierda */
  background-color: transparent;
  border: none;
  width: 320px;
  height: 60px;
  background-image: url('assets/images/iniciarsesion.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;
  color: transparent;
  text-indent: -9999px;
  overflow: hidden;
  white-space: nowrap;
  padding: 0;
  transition: transform 0.2s ease;
}
.btn-iniciar:hover {
  transform: scale(1.05);
}
#rememberMe {
  width: 12px;
  height: 12px;
  border-radius: 2px; /* hace el checkbox más redondeado */
  cursor: pointer;
}
#loginForm a {
  text-decoration: none;
  color: black;
}
#loginForm a:hover {
  color: #0ebcc8; /* o cualquier color que prefieras */
  text-decoration: underline; /* opcional */
}
/* Responsividad */
@media (max-width: 768px) {
  .centro {
    max-width: 400px;
  }
  .boton {
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .centro {
    max-width: 90%;
    padding: 0 10px;
  }
  .boton {
    max-width: 100%;
  }
}
.formulario-container button.atras-btn {
  background-color: transparent;
  color: #0ebcc8;
  border: none;
  font-size: 1rem;
  text-align: left;
  padding: 5px 0;
  cursor: pointer;
  transition: color 0.3s ease;
  margin-bottom: 10px;
}

.formulario-container button.atras-btn:hover {
  color: #028d97;
} 
.mensaje-error {
  color: red;
  font-size: 14px;
  margin-top: 5px;
  margin-bottom: 5px;
  text-align: left;
  width: 100%;
}
/* Estilos base - Desktop (ya los tienes bien definidos) */

/* Tablets (pantallas medianas) */
@media (max-width: 1024px) {
  .ocultar-fondo {
    display: none !important;
  }
  .fondo-botones-container {
    width: 80vw;
    height: auto;
  }
  .formulario-container {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    width: 100%;
    max-width: 500px;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
  }
  .formulario-container form {
    width: 80%;
  }
  .fondo-botones {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.formulario-container form {
  display: flex;
  flex-direction: column;
  align-items: center; /* <- Esto centra horizontalmente el botón */
  gap: 15px;
  width: 100%;
}

.formulario-container button {
  width: 70%; /* Puedes ajustar este valor al tamaño que quieras */
  max-width: 250px;
  align-self: center; /* Esto fuerza al botón a centrarse si fuera necesario */
}
}

@media (max-width: 600px) {
  .fondo-botones-container {
    width: 80vw;
    height: auto;
  }
  .ocultar-fondo {
    display: none !important;
  }
  .formulario-container {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    width: 90%;
    max-width: 350px;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
  }
  .btn-iniciar {
    width: 100%;
    height: 50px;
    left: 0;
    background-size: contain;
  }
  .btn-registrarse {
    width: 100%;
    height: 50px;
    left: 0;
    background-size: contain;
  }
  .boton {
    width: 85%;      /* Reducimos ancho al 70% */
    max-width: 250px; /* Limitar tamaño máximo */
    top: 20px;       /* Ajustamos separación vertical */
  }
}
.logo-fijo {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 9999;
  width: 100px;
  height: auto;

  background-color: white;   
  padding: 8px;              
  border-radius: 6px;       
  box-shadow: 0 2px 6px rgba(0,0,0,0.2); 
  cursor: pointer;
}

.logo-fijo img {
  width: 100%;         /* Que la imagen ocupe todo el ancho del contenedor */
  height: auto;
  display: block;
}
