/* ===========================================================
   EAGLE - Estilos de Login Final
   Paleta: Blanco (#FFFFFF) + Granate (#800000)
   Diseño: Horizontal Compacto + Visor de Contraseña (Móvil OK)
   =========================================================== */

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background-color: #f4f4f4;
  margin: 0;
  display: flex;
  height: 100vh;
  justify-content: center;
  align-items: center;
}

.login-box {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  padding: 25px 30px;
  width: 380px;
  max-width: 92%;
  text-align: center;
  box-sizing: border-box;
}

/* --- SECCIÓN DE LOGOS EN PARALELO --- */

.brand-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
}

.brand-left img {
  width: 110px;
  height: auto;
  display: block;
}

.brand-divider {
  width: 1px;
  height: 35px;
  background-color: #ddd;
}

.brand-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.brand-right span {
  font-size: 8px;
  color: #999;
  text-transform: uppercase;
  font-weight: bold;
  margin-bottom: -2px;
}

.brand-right img {
  width: 95px;
  height: auto;
  display: block;
}

/* --- FORMULARIO Y CAMPOS --- */

label {
  display: block;
  text-align: left;
  margin-bottom: 6px;
  color: #800000;
  font-weight: 600;
  font-size: 14px;
}

input[type="text"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 15px;
  font-size: 16px;
  /* Evita zoom en iPhone */
  box-sizing: border-box;
  transition: 0.2s;
}

/* --- VISOR DE PASSWORD (EL OJO) --- */

.password-wrapper {
  position: relative;
  /* Base para el ojo */
  width: 100%;
  margin-bottom: 15px;
  display: flex;
}

.password-wrapper input {
  width: 100%;
  padding: 12px;
  padding-right: 45px !important;
  /* Espacio reservado para el ojo */
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  box-sizing: border-box;
  margin-bottom: 0 !important;
}

input:focus {
  border-color: #800000;
  outline: none;
  box-shadow: 0 0 5px rgba(128, 0, 0, 0.2);
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  /* Centrado vertical exacto */
  transform: translateY(-50%);
  cursor: pointer;
  user-select: none;
  z-index: 10;
  line-height: 1;
  display: flex;
  align-items: center;
}

/* --- BOTÓN Y ERRORES --- */

button {
  background-color: #800000;
  color: #ffffff;
  border: none;
  padding: 14px;
  width: 100%;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
  margin-top: 5px;
}

button:hover {
  background-color: #a52a2a;
}

.error {
  color: #b00000;
  background: #ffe6e6;
  border: 1px solid #b00000;
  padding: 10px;
  border-radius: 4px;
  font-size: 13px;
  margin-bottom: 15px;
}
