/* ==================== ESTILOS GENERALES Y FONDO ==================== */
body {
  font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background-color:  #c7a86d;
  display: flex; 
  justify-content: center; 
  align-items: center; 
  position: relative;
  overflow-y: auto;
  min-height: 100vh;
}

/* 💥 CONTENEDOR FLEXBOX para Imagen y Formulario (Ancho total aumentado) */
.login-flex-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 90%;
  max-width: 750px; /* 💥 AJUSTE CLAVE: Ancho total aumentado (antes 650px) */
  gap: 20px;
  margin: 20px auto;
}

/* 💥 ESTILOS PARA LA COLUMNA DE IMAGEN LATERAL (Se mantiene en 150px) */
.login-image-column {
    flex-basis: 150px;
    padding: 15px;
    background-color: #cda2a2;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
    
    /* 1. BORDE MÁS GRUESO Y VISIBLE */
    border: 4px solid #ffffff; /* Aumentamos el grosor del borde de 2px a 4px */
    
    /* 2. SOMBRA MÁS PRONUNCIADA Y GRANDE */
    box-shadow: 0 15px 40px rgba(147, 75, 8, 0.7); /* Aumentamos la dispersión (40px) y la opacidad (0.7) */
}

.login-image-column img {

/* Propiedades base (mantener) */
    width: 100%;    
    height: auto;
    object-fit: contain; 
    display: block; 
    
    /* MEJORAS DE ESTILO */
    border-radius: 12px; /* Esquinas suaves */
    box-shadow: 0 8px 20px rgba(252, 252, 252, 0.956); /* Sombra oscura y notable para darle profundidad */
    border: 3px solid #eee; /* Borde fino para enmarcarla (opcional) */
    
    /* Efecto sutil de animación */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Opcional: Efecto al pasar el ratón (para un toque interactivo) */
.login-image-column img:hover {
    transform: scale(2.01); /* Se agranda un 1% muy levemente */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4); /* Sombra más intensa al interactuar */

}

/* Formulario: Ahora usa el espacio restante y su propio max-width */
form {
  position: relative; 
  top: auto; 
  left: auto;
  transform: none; 
  margin: 0; 

  z-index: 10; 
  background: rgb(204, 156, 73); 
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); 
  display: flex;
  flex-direction: column;
  
  flex-basis: 100%;
  max-width: 550px; /* 💥 AJUSTE CLAVE: Ancho del formulario aumentado (antes 450px) */
  width: 100%; 
  color: #0e1a40; 
  transition: transform 0.3s ease;
    
    /* <<-- BORDE NEGRO AÑADIDO -->> */
    border: 1px solid #000000; 
}

/* ==================== ESTILOS DEL BANNER SUPERIOR (GRUPO) ==================== */
.top-banner {
  position: fixed; 
  top: 30px; 
  left: 30px; 
  z-index: 20; 
  
  background: transparent; 
  border-radius: 12px;
  padding: 10px; 
  text-align: left; 
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); 
  max-width: 200px; 
  width: auto; 
}

.top-banner img {
  width: 180px; 
  height: 45px; 
  margin-bottom: 0; 
  border-radius: 8px; 
  box-shadow: none; 
  display: block; 
  object-fit: contain; 
  background-color: #f8f7f7; /* Ejemplo: un color rojo vibrante */
    padding: 10px; /* Añade un poco de espacio alrededor del logo */
}

.group-title {
  font-family: 'Roboto', sans-serif;
  font-size: 1.2em; 
  color: #0e1a40; 
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.5px; 
  text-transform: uppercase;
  text-align: left; 
}

/* ==================== ESTILOS DEL ENCABEZADO SSMAC (CENTRAL) ==================== */
.login-header {
  text-align: center;
  margin-bottom: 25px;
}

.login-header img {
  width: 150px; 
  height: auto;
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15); 
  border-radius: 8px;
}

.login-header h1 {
  font-family: 'Roboto', sans-serif;
  font-size: 1.6em;
  color: #0e1a40; 
  margin: 0;
  font-weight: 700; 
  letter-spacing: 0.5px;
}

/* ==================== ESTILOS DE INPUTS / BOTÓN / MENSAJE (Se mantienen) ==================== */
input {
  margin-bottom: 20px;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px; 
  background: #ffffff; 
  font-size: 16px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.08); 
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  width: 100%; 
  box-sizing: border-box; 
}

input:focus {
  border-color: #007bff; 
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25); 
}

button {
  padding: 12px;
  border: none;
  border-radius: 6px;
  background-color: #8a530b; 
  color: #f6f7f8; 
  font-weight: bold;
  font-size: 20px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin-top: 10px;
  width: 100%; 
}

button:hover {
  background-color: #8a530b;  
  transform: translateY(-1px);
}

p {
  color: #0056b3; 
  font-size: 14px;
  margin-top: 10px;
  text-align: center;
  font-weight: 500;
}

/* ==================== MEDIA QUERIES (RESPONSIVIDAD) ==================== */

/* Dispositivos Medianos (Tabletas y Notebooks, hasta 1024px) */
@media screen and (max-width: 1024px) {
  .login-image-column {
  display: none; /* Oculta la imagen lateral en tabletas */
  }
  
  .login-flex-container {
  max-width: 500px; /* Se reduce el contenedor principal */
  }
  
  form {
  max-width: 400px; 
  margin: 20px auto; 
  }

  .top-banner {
  top: 20px;
  left: 20px;
  max-width: 250px; 
  }

  .top-banner img {
  width: 180px; 
  height: 45px;
  }
  
  .group-title {
  font-size: 1.2em;
  }
}


/* Dispositivos Pequeños (Móviles, hasta 640px) */
@media screen and (max-width: 640px) {
  .login-flex-container {
  max-width: 95%; 
  }
  
  form {
  max-width: 95%; 
  margin: 40px 10px; 
  padding: 25px 20px; 
  }

  .top-banner {
  top: 10px;
  left: 10px;
  padding: 5px;
  box-shadow: none; 
  width: calc(100% - 20px); 
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 100%; 
  }

  .top-banner img {
  width: 150px; 
  height: 35px; 
  }
  
  .group-title {
  font-size: 1em; 
  margin-top: 5px;
  }

  .login-header img {
  width: 350px; 
  height: auto;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15); 
  border-radius: 8px;
  }

  .login-header h1 {
  font-size: 2em; 
  }
}