/* 
 * Estilos unificados para sistema de login de intranet 
 * Cliente: SOLUCIONES EN COBRANZA LEGAL
 * Versión: 1.2
 * Fecha: 02/05/2025
 */

/* ===  ESTILOS BASE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  /* Fondo con imagen y gradiente para asegurar que se vea */
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("https://images.unsplash.com/photo-1589829545856-d10d557cf95f?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  height: 100vh;
  color: #333;
  line-height: 1.6;
}

/* === CONTENEDOR PRINCIPAL === */
.contenedor-principal {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 20px;
}

/* === PANEL DE ACCESO === */
.panel-acceso {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 410px;
  overflow: hidden;
  /* Borde dorado sutil para reforzar la identidad visual */
  border: 1px solid rgba(212, 175, 55, 0.3);
}

/* === ENCABEZADO === */
.encabezado {
  background-color: #000000;
  color: #fff;
  text-align: center;
  padding: 12px;
}

.icono-principal {
  font-size: 2.2rem;
  color: #d4af37;
  margin-bottom: 4px;
  display: inline-block;
}

.titulo-empresa {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* === FORMULARIO === */
.formulario-acceso {
  padding: 12px 18px;
}

.titulo-formulario {
  font-size: 1rem;
  color: #000000;
  margin-bottom: 5px;
  text-align: center;
}

.indicador-seguridad {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #28a745;
  font-size: 0.85rem;
  margin-bottom: 20px;
  padding: 5px;
  background-color: rgba(40, 167, 69, 0.1);
  border-radius: 4px;
}

.indicador-seguridad i {
  margin-right: 5px;
}

/* === CAMPOS DE ENTRADA === */
.grupo-campo {
  margin-bottom: 12px; /* Reducido aún más */
}

.grupo-campo label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  font-size: 0.9rem;
}

.campo-con-icono {
  position: relative;
}

.campo-con-icono i {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
}

.campo-con-icono input {
  width: 100%;
  padding: 7px 10px 6px 28px; /* Reducido aún más el padding */
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.85rem;
  transition: border-color 0.3s;
}

.campo-con-icono input:focus {
  outline: none;
  border-color: #d4af37;
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

/* === CAPTCHA STYLES === */
.grupo-captcha {
  margin-bottom: 8px; /* Reducido aún más */
}

.grupo-captcha label {
  display: block;
  margin-bottom: 2px;
  font-weight: 500;
  font-size: 0.8rem;
}

.contenedor-captcha {
  display: flex;
  margin-bottom: 8px; /* Reducido aún más */
  align-items: center;
}

#captcha-canvas {
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #f9f9f9;
  height: 58px; 
  width: 310px; 
}

.boton-refrescar {
  margin-left: 8px;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 4px;
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s;
}

.boton-refrescar:hover {
  background-color: #e9e9e9;
  border-color: #d4af37;
}

.boton-refrescar i {
  color: #666;
}

.boton-refrescar:hover i {
  color: #000;
}

.captcha-input-container {
  margin-bottom: 3px; /* Reducido de 5px a 3px */
}

.mensaje-error {
  color: #dc3545;
  font-size: 0.8rem; /* Reducido de 0.85rem a 0.8rem */
  min-height: 16px; /* Reducido de 20px a 16px */
  padding: 1px 0; /* Reducido de 2px a 1px */
}

/* === BOTÓN DE ACCESO === */
.boton-acceder {
  width: 100%;
  padding: 6px; /* Reducido aún más */
  background-color: #000000;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin-top: 5px; /* Reducido el espacio superior */
}

.boton-acceder i {
  margin-right: 8px;
}

.boton-acceder:hover {
  background-color: #111;
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.5);
}

.boton-acceder:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.5);
}

/* === ESTILOS RESPONSIVE === */

/* Móvil pequeño */
@media (max-width: 320px) {
  .panel-acceso {
    box-shadow: none;
  }

  .encabezado {
    padding: 15px;
  }

  .titulo-empresa {
    font-size: 1.2rem;
  }

  .icono-principal {
    font-size: 2rem;
  }
}

/* Tablet */
@media (min-width: 768px) {
  .panel-acceso {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  }

  .formulario-acceso {
    padding: 30px;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .panel-acceso {
    max-width: 400px;
  }

  .encabezado {
    padding: 18px;
  }

  .icono-principal {
    font-size: 2.4rem;
  }
}
