/* ========== Base ========= */
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  height: 100%;
  box-sizing: border-box;
}

/* FONDO GENERAL */
body.acceso-administracion {
  background: linear-gradient(135deg, #003366, #005a99);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* ========== NUEVO DISEÑO DIVIDIDO ========== */
/* La tarjeta principal que envuelve todo */
.contenedor-login {
  display: flex;
  flex-direction: row;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  overflow: hidden;
  max-width: 850px; /* Ampliado para que quepan ambas mitades */
  width: 100%;
  animation: fadeIn 0.8s ease-in-out;
  background-color: rgba(31, 35, 54, 0.85); /* Fondo oscuro translúcido */
}

/* Lado Izquierdo: Animación Lottie */
.area-animacion {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: transparent; 
  padding: 20px;
}

/* Lado Derecho: Formulario */
.formulario {
  flex: 1;
  padding: 40px 30px;
  color: #003366;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Modo teléfono: Columna única */
@media (max-width: 768px) {
  .contenedor-login {
    flex-direction: column;
  }
  .area-animacion {
    padding: 30px 20px 0;
  }
  .formulario {
    padding: 20px 30px 40px;
  }
}
/* =========================================== */

/* ANIMACIÓN */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* IMAGEN SUPERIOR */
.imagen-administracion {
  width: 140px;
  height: auto;
  margin-bottom: 8px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* SUBTÍTULO */
.subtitulo {
  font-size: 0.95em;
  color: #004080;
  margin-bottom: 20px;
}

/* CAMPOS CON ICONO */
.campo-icono {
  display: flex;
  align-items: center;
  background-color: #f0f4f8;
  border: 1px solid #bbb;
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 10px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.icono-input {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  object-fit: scale-down;
  vertical-align: middle;
  display: inline-block;
}

.campo-icono input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 16px;
  background-color: transparent;
  color: #333;
}

/* ÍCONO DE VISIBILIDAD DE CLAVE */
.toggle-visibility {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #004080;
  cursor: pointer;
  visibility: visible;
  transition: opacity 0.3s ease;
}

/* CONTENEDOR RELATIVO PARA CLAVE */
.input-contenedor {
  position: relative;
}

/* DIVISOR */
.divisor {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 10px 0;
}

/* GRUPO DE BOTONES */
.grupo-botones {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.boton-icono {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: bold;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.boton-icono:hover {
  transform: scale(1.02);
}

/* ESTILOS BOTÓN INDIVIDUAL */
.boton-icono.ingresar {
  background-color: #004080;
}

.boton-icono.ingresar:hover {
  background-color: #0072c6;
}

.boton-icono.salir {
  background-color: #555;
}

.boton-icono.salir:hover {
  background-color: #888;
}

/* LOGO INSTITUCIONAL azul */
.logo-iutam {
  width: 100px;
  height: auto;
  margin-bottom: 16px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  filter: brightness(0) saturate(100%) invert(17%) sepia(100%) saturate(600%) hue-rotate(180deg);
  transition: filter 0.3s ease;
}

@media (max-height: 600px) {
  .logo-iutam {
    width: 80px;
    margin-bottom: 8px;
  }

  input, button {
    font-size: 14px;
  }

  body {
    overflow: hidden;
  }
}

/* Bloque de título institucional */
.bloque-titulo {
  text-align: center;
  margin-bottom: 12px;
}

.titulo-principal {
  font-size: 1.6em;
  font-weight: 700;
  color: #fafafa;
  margin-top: -6px;
  margin-bottom: 2px;
  line-height: 1.2;
}

.subtitulo-iutam {
  font-size: 1em;
  color: #eef1f3;
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-top: -4px;
  margin-bottom: 8px;
  line-height: 1.2;
}