/**
 * AGENCIA DE ADUANAS LACOSTE Y ASOCIADOS S.A. NIVEL 2 (CÓDIGO DIAN 0464)
 * MÓDULO VISUAL: ESTILOS DE LA TARJETA FIJA DE CREDENCIALES 3D Y FOOTER
 * ==============================================================================
 * Directriz Maestra: Sección 4.1 (Tope < 300 líneas), Sección 6 (Efectos 3D)
 * ==============================================================================
 */

/* CONTENEDOR Y LAYOUT CENTRAL */
.portal-login-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px 16px 32px;
  position: relative;
  z-index: 10;
  width: 100%;
}

/* TARJETA VOLUMÉTRICA 3D (EXACTA A LA APROBADA) */
.portal-login-tarjeta-3d {
  background: #ffffff;
  border-radius: 24px;
  max-width: 440px;
  width: 100%;
  padding: 38px 32px 34px;
  position: relative;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 
    0 35px 70px -15px rgba(88, 41, 49, 0.38),
    0 18px 30px -10px rgba(45, 19, 24, 0.22),
    0 0 0 1px rgba(88, 41, 49, 0.08);
  overflow: hidden;
  margin-bottom: 28px;
}

/* BARRA SUPERIOR DE GRADIENTE CORPORATIVO */
.portal-login-tarjeta-3d::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--color-vino-primario) 0%, var(--color-coral-acento) 100%);
}

/* CABECERA CON LOGO LACOSTE Y DIAN */
.modal-cabecera-3d {
  text-align: center;
  margin-bottom: 24px;
}

.modal-logo-contenedor {
  margin-bottom: 12px;
}

.modal-logo-img {
  max-width: 190px;
  height: auto;
  display: inline-block;
}

.modal-badge-dian-3d {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-vino-pastel);
  color: var(--color-vino-primario);
  font-weight: 700;
  font-size: 0.76rem;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
  border: 1px solid rgba(88, 41, 49, 0.12);
}

.dian-dot-pulse {
  width: 7px;
  height: 7px;
  background-color: var(--color-coral-acento);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(235, 87, 52, 0.7);
}

.modal-titulo-3d {
  font-family: var(--fuente-titulos);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-vino-primario);
  margin-bottom: 4px;
  line-height: 1.25;
}

.modal-subtitulo-3d {
  font-size: 0.84rem;
  color: var(--color-texto-mutado);
}

/* FORMULARIO E INPUTS 3D */
.form-grupo-3d {
  margin-bottom: 18px;
}

.form-label-3d {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-texto-carbon);
  margin-bottom: 6px;
}

.form-control-envolvente {
  position: relative;
  display: flex;
  align-items: center;
  background: #faf7f5;
  border: 1.5px solid #ded5d0;
  border-radius: 12px;
  transition: all 0.25s ease;
  width: 100%;
}

.form-control-envolvente:focus-within {
  border-color: var(--color-vino-primario);
  background: #ffffff;
  box-shadow: 
    0 0 0 4px var(--color-vino-pastel),
    0 8px 18px -4px rgba(88, 41, 49, 0.14);
}

.input-icono-prefijo {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #8c8284;
  display: flex;
  align-items: center;
  pointer-events: none;
  transition: color 0.2s ease;
}

.form-control-envolvente:focus-within .input-icono-prefijo {
  color: var(--color-vino-primario);
}

.form-input-3d {
  width: 100%;
  height: 48px;
  border: none;
  background: transparent;
  padding: 0 16px 0 44px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--color-texto-carbon);
  outline: none;
}

.form-input-3d.input-con-ojo-3d {
  padding-right: 46px;
}

/* BOTÓN DEL OJO DENTRO DEL CAJÓN A LA DERECHA */
.btn-toggle-ojo-3d {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #8c8284;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 5;
}

.btn-toggle-ojo-3d:hover {
  background: rgba(88, 41, 49, 0.08);
  color: var(--color-vino-primario);
}

.btn-toggle-ojo-3d:active {
  transform: translateY(-50%) scale(0.92);
}

/* BOTÓN CORAL 3D */
.btn-submit-3d {
  width: 100%;
  height: 52px;
  background: linear-gradient(135deg, var(--color-coral-acento) 0%, #d8421f 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  font-family: var(--fuente-titulos);
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
  box-shadow: 0 12px 24px -6px rgba(235, 87, 52, 0.45), 0 4px 8px -2px rgba(180, 50, 20, 0.25);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-submit-3d:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -6px rgba(235, 87, 52, 0.55), 0 6px 12px -2px rgba(180, 50, 20, 0.3);
  background: linear-gradient(135deg, #f26643 0%, var(--color-coral-acento) 100%);
}

.btn-submit-3d:active {
  transform: translateY(1px);
  box-shadow: 0 6px 12px -2px rgba(180, 50, 20, 0.35);
}

.portal-retorno-wrapper { text-align: center; margin-top: 18px; }
.portal-link-retorno {
  font-size: 0.82rem;
  color: var(--color-texto-mutado);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}
.portal-link-retorno:hover { color: var(--color-vino-primario); text-decoration: underline; }

/* ALERTA DE ERROR */
.alerta-error-login {
  background: #fde8e8;
  border: 1px solid #f8b4b4;
  color: #9b1c1c;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.84rem;
  margin-bottom: 18px;
  display: none;
  line-height: 1.4;
}
.alerta-error-login.visible { display: block; }

/* PIE DE PÁGINA LEGAL CORPORATIVO */
.portal-login-footer {
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-texto-mutado);
  line-height: 1.6;
  max-width: 600px;
  width: 100%;
}

.portal-footer-linea1 {
  font-size: 0.85rem;
  color: var(--color-texto-carbon);
  margin-bottom: 4px;
}

.portal-footer-linea2 {
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.portal-footer-linea2 .dot-sep {
  color: var(--color-coral-acento);
  font-weight: bold;
}

.portal-footer-linea3 {
  font-size: 0.74rem;
  color: #8c8284;
}
