/* Importando las variables de tu sitio principal */
:root {
  --primary: #0597F2;
  --primary-dark: #023373;
  --dark: #212121;
  --light: #f5f5f5;
  --gray: #757575;
  --white: #ffffff;
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  overflow: hidden; /* Evita barras de scroll innecesarias */
}

/* --- ESTILOS PARA EL VIDEO DE FONDO --- */
.video-background {
    position: fixed; /* Ocupa toda la pantalla, fijo */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2; /* Se posiciona detrás de todo */
    overflow: hidden;
}

.video-background video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
/* Overlay oscuro para mejorar la legibilidad del formulario */
.video-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparente */
    z-index: -1;
}

.auth-container {
  background-color: var(--white);
  padding: 40px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 400px;
  text-align: center;
  z-index: 1; /* Asegura que el formulario esté sobre el video */
}

.logo-link {
    display: inline-block;
    margin-bottom: 20px;
}

.logo-img {
    height: 40px;
}

.auth-container h2 {
  margin-bottom: 25px;
  color: var(--dark);
  font-size: 1.8rem;
}

.input-group {
  position: relative;
  margin-bottom: 20px;
}

.input-group i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray);
}

.input-group input {
  width: 100%;
  padding: 12px 15px 12px 45px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.input-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(5, 151, 242, 0.2);
}

.forgot-password {
    display: block;
    text-align: right;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--primary);
    text-decoration: none;
}

.btn {
  display: inline-block;
  width: 100%;
  background-color: var(--primary);
  color: var(--white);
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

.toggle-link {
    margin-top: 25px;
    font-size: 0.95rem;
    color: var(--gray);
}

.toggle-link a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.reset-info {
    font-size: 0.95rem;
    color: var(--gray);
    margin-bottom: 25px;
    line-height: 1.6;
}