/* 🌆 Fondo general */
.login-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  font-family: "Poppins", sans-serif; /* Fuente moderna */
  background: linear-gradient(135deg, #ece9e6, #ffffff); /* degradado sutil */
}

/* === ESTRUCTURA PRINCIPAL DE LA PÁGINA === */
.menu-body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #ece9e6, #ffffff);
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* === MENÚ SUPERIOR === */
.login-superior {
  position: relative; /* permite centrar el título sin que el logo lo empuje */
  background: linear-gradient(135deg, #041049, #0c469e, #1874b1);/*Efecto degradado menú*/
  color: white;
  width: 100%;
  min-height: 10vh;

  display: flex;
  align-items: center;
  justify-content: center; /* centra el título */
  
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  padding: 0 40px;
  box-sizing: border-box;
}

/* === LOGO (IZQUIERDA) === */
.login-logo {
  position: absolute;
  left: 20px; /* margen izquierdo dentro del header */
  margin-left: 30px;/*Distncia del borde página y logo*/
}

.login-logo img {
  height: 50px;
  width: auto;
  border-radius: 6px;
}

/* === TÍTULO CENTRADO === */
.login-titulo {
  text-align: center;
}

.login-titulo h1 {
  margin: 0;
  font-size: 1.8rem;
  letter-spacing: 1px;
  font-weight: 800;
}

/* 🧊 Caja de login */
.login-container, .menu-container {
  background: white;
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  text-align: center;
  color: #333;
  width: 320px;
  margin-top: auto;
  margin-bottom: auto;
  transition: transform 0.4s ease, box-shadow 0.3s ease;
}

/* 🪶 Efecto hover sutil en la caja */
.login-container:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

/* ✏️ Inputs */
input {
  margin: 10px;
  padding: 12px;
  width: 220px;
  border: none;
  outline: none;
  background-color: #f9f9f9;
  border-radius: 25px;
  box-shadow: inset 0 0 5px rgba(0,0,0,0.1);
  text-align: center;
  font-size: 14px;
  color: #333;
  transition: all 0.2s ease-in-out;
}

/* Efecto al hacer clic o escribir */
input:focus {
  background-color: #fff;
  box-shadow: 0 0 8px rgba(142, 0, 0, 0.5);
  transform: scale(1.02);
}

/* El botón para que combine */
button {
  margin: 10px;
  padding: 12px;
  width: 220px;
  background: linear-gradient(135deg, #0c469e, #041049);
  color: white;
  cursor: pointer;
  border: none;
  border-radius: 25px;
  font-weight: bold;
  transition: all 0.2s ease-in-out;
}

button:hover {
  background-color: white;
  color: rgb(255, 255, 255);
  box-shadow: 0 0 8px rgba(142, 0, 0, 0.4);
  transform: scale(1.05);
}

/* ✨ Texto de error o mensajes */
.error {
  color: #b30000;
  font-size: 0.9rem;
  margin-top: 10px;
  font-weight: 500;
}

