/* Fondo y tipografía */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(to right, #6dd5ed, #2193b0); /* Degradado azul */
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Contenedor centrado y responsivo */
.container {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  max-width: 380px;
  width: 90%;
  box-sizing: border-box;
  animation: fadeIn 0.8s ease;
}

/* Animación suave al cargar */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

h2 {
  text-align: center;
  color: #2c3e50;
  margin-bottom: 1.5rem;
  font-size: 1.6rem;
}

label {
  display: block;
  margin-top: 1rem;
  font-weight: 600;
  color: #34495e;
}

/* Campos de texto */
input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 0.7rem;
  margin-top: 0.4rem;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

input:focus {
  border-color: #38f9d7;
  outline: none;
}

/* Botón estilizado */
button {
  width: 100%;
  padding: 0.75rem;
  margin-top: 1.8rem;
  background: linear-gradient(to right, #43e97b, #38f9d7);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Enlace */
.login-link {
  display: block;
  margin-top: 1.2rem;
  text-align: center;
  color: #2c3e50;
  text-decoration: none;
  font-size: 0.95rem;
}

.login-link:hover {
  color: #1abc9c;
  text-decoration: underline;
}

/* Caja de información */
.info {
  background-color: #f1f1f1;
  color: #333;
  font-size: 0.85rem;
  padding: 10px;
  margin-top: 0.5rem;
  border-left: 4px solid #43e97b;
  border-radius: 8px;
}

/* Mensaje de error */
.error {
  color: #e74c3c;
  background-color: #ffe6e6;
  border: 1px solid #e0b4b4;
  padding: 10px;
  margin-top: 1rem;
  font-size: 0.9rem;
  border-radius: 8px;
  text-align: center;
}

/* Mostrar/ocultar contraseña */
.password-container {
  position: relative;
  display: flex;
  align-items: center;
}

.password-container input {
  padding-right: 40px;
}

.toggle-password {
  position: absolute;
  right: 12px;
  cursor: pointer;
  font-size: 1.2rem;
  color: #888;
  user-select: none;
}

/* Fondo con imagen borrosa */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('imagenes/escuela.jpg'); /* Reemplaza con tu imagen */
  background-size: cover;
  background-position: center;
  filter: blur(6px) brightness(0.8);
  z-index: -1;
}



