/* --- Estilos para el Login Rediseñado con Animaciones --- */

:root {
  --tf-fuente-base: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --tf-fuente-titulo: "Oswald", sans-serif;
  --tf-rojo: #C11425;
}

* {
  box-sizing: border-box;
}

/* ===== INICIO DE CAMBIOS ===== */
#login-video-bg {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: -2; /* Detrás del overlay */
    background-size: cover;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.5));
    z-index: -1; 
}

body {
  margin: 0;
  font-family: var(--tf-fuente-base);
  color: #ffffff;
  background-color: #000;
  -webkit-font-smoothing: antialiased;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  padding: 24px 4%;
  overflow: hidden; 
}

body.logging-in .login-container {
  opacity: 0;
  pointer-events: none;
}


body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    opacity: 0;
    z-index: 10;
    pointer-events: none;
    transition: opacity 0.5s ease-in-out;
}

body.body-fade-out::after {
    opacity: 1;
}


.login-container {
  width: 100%;
  max-width: 1100px; 
  display: grid;
  grid-template-columns: 420px 1fr;
  align-items: center;
  gap: 64px;
  transition: opacity 4.5s ease-in-out;
}


body.logging-in .login-container {
  opacity: 0;
  pointer-events: none;
}


.login-card {
  width: 100%;
  background: rgba(15, 27, 36, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  
  /* --- LÍNEA MODIFICADA --- */
  /* Duración: 2.5s, Delay: 1.5s */
  animation: slideInLeft 2.5s ease-out 1.5s forwards;
  
  opacity: 0;
}

.login-header {
  text-align: center;
  margin-bottom: 30px;
}

.logo {
  max-width: 180px;
  height: auto;
  margin-bottom: 10px;
}

.login-header h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.campo label {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  display: block;
  margin-bottom: 8px;
}

.campo input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.campo input:focus {
  border-color: var(--tf-rojo);
  box-shadow: 0 0 0 3px rgba(193, 20, 37, 0.3);
}

.password-group {
  position: relative;
}

.ojo-btn {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  opacity: 0.7;
}

.btn {
  border: none;
  border-radius: 8px;
  padding: 14px;
  font-weight: 600;
  font-size: 1rem;
  width: 100%;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

.btn-primario {
  background-color: var(--tf-rojo);
  color: #fff;
  margin-top: 10px;
}

.btn-primario:hover {
  background-color: #a3111f;
}

.btn:active {
  transform: scale(0.98);
}

.msg {
  min-height: 20px;
  font-size: 0.875rem;
  color: #ffcdd2;
  text-align: center;
}

.forgot-password {
  display: block;
  text-align: center;
  margin-top: 20px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.forgot-password:hover {
  text-decoration: underline;
}

/* --- ANIMACIÓN DE ENTRADA PARA EL PANEL DERECHO --- */
.info-panel {
  padding: 14px;
  text-shadow: 0 4px 12px rgba(0,0,0,0.8);
  animation: fadeIn 1s ease-out 0.3s forwards;
  opacity: 0;
}

/* --- ESTILO MEJORADO PARA EL TÍTULO --- */
.info-panel h2 {
  font-family: var(--tf-fuente-titulo);
  font-size: 3rem; 
  font-weight: 700;
  letter-spacing: 1.5px;
  margin: 0 0 24px 0;
  line-height: 1.1;
  max-width: 480px;
  background: linear-gradient(180deg, #ffffff, #d1d5db);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.info-panel p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 24px 0;
  max-width: 500px;
}

.info-panel p.bold {
  font-weight: 600;
  color: #fff;
  max-width: 300px;
}

/* --- DEFINICIÓN DE LAS ANIMACIONES --- */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsividad */
@media (max-width: 992px) {
  body {
    justify-content: center;
    align-items: center;
  }
  .info-panel {
    display: none;
  }
  .login-container {
    grid-template-columns: 1fr;
    justify-content: center;
    padding: 24px;
    max-width: 420px;
  }
}