/* 🎨 Paleta de colores global */
:root { 
  --color-1: #8E0214;   /* Rojo principal */
  --color-2: #1D1D1D;   /* Gris oscuro */
  --color-3: #040404;   /* Negro profundo */
  --color-4: #8E0214;   /* Rojo secundario */
}

/* 🧱 Estructura base */
html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: Arial, sans-serif;
  font-size: 14px;
}

body {
  display: flex;
  flex-direction: column;
}

/* 🌄 Fondo con imagen */
.full-screen-bg {
  background-image: url("../images/PinsaFondo.JPG");
  background-size: cover;
  background-position: center;
  position: relative;
  flex: 1;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 50px 20px;
  box-sizing: border-box;
}

/* 🔲 Capa oscura de fondo */
.dark-overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.65);
  z-index: 1;
}

/* 🧩 Caja principal (formulario + info) */
.login-box {
  z-index: 2;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  width: 55%;
  max-width: 1000px;
  overflow: hidden;
  height: 60vh;
}

/* 📝 Lado del formulario */
.login-form-side {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-form-side h2 {
  color: #000;
  margin-bottom: 20px;
}

.form-label {
  color: #000;
  font-weight: 500;
  font-size: 1rem;
}

/* 🔘 Botones personalizados */
.btn-custom {
  background-color: var(--color-1) !important;
  border-color: var(--color-1) !important;
  color: white !important;
  transition: all 0.3s ease;
}

.btn-custom:hover {
  background-color: #8E3502 !important; 
  border-color: #8E3502 !important;
  color: #FFF !important;
}

/* ℹ️ Lado informativo */
.info-side {
  flex: 1;
  padding: 40px;
  background-color: white;
  color: black;
  display: flex;
  flex-direction: column;
  justify-content: center;

  /* 🔸 Línea divisoria central */
  border-left: 5px solid var(--color-1);
}

.info-side h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-1);
  margin-bottom: 10px;
}

.info-side p {
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--color-2);
}

/* 🖼️ Logo */
.logo-avis {
  max-height: 500px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.logo-avis:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
}


footer.footer {
  background-color: #2E2E2E;
  color: white;
  padding: 15px 0;
  text-align: center;
}

footer.footer a {
  color: white;
  text-decoration: none;
}

/* 📱 Responsive */
@media (max-width: 768px) {
  .info-side {
    display: none;
  }

  .login-box {
    flex-direction: column;
    height: auto;
    margin: 40px 0;
  }

  .full-screen-bg {
    padding-top: 60px;
    padding-bottom: 60px;
    overflow-y: auto;
  }
}


/* 🟥 Botón outline institucional */
.btn-outline-institucional {
  color: var(--color-1) !important;
  border: 1px solid var(--color-1) !important;
  background-color: transparent !important;
  transition: all 0.3s ease;
}

.btn-outline-institucional:hover,
.btn-outline-institucional:focus {
  background-color: var(--color-1) !important;
  color: #fff !important;
  border-color: var(--color-1) !important;
}