/* Estilos específicos para la página de login */

/* Evitar scroll en la página de login */
body.login-page {
  overflow: hidden;
}

/* Configurar el main para ocupar toda la altura disponible */
main.login-main {
  padding: 0 !important;
  min-height: calc(
    100vh - 200px
  ); /* Restar altura aproximada del header y footer */
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

/* Contenedor del formulario de login */
.login-container {
  display: flex;
  justify-content: center;
  width: 100%;
}

@media (min-width: 640px) {
  .login-container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .login-container {
    padding: 0 2rem;
  }
}

/* ============================================= */
/* Estilos para el botón de certificado digital  */
/* ============================================= */

/* Separador "o" entre formulario y botón de certificado */
.cert-login-separator {
  display: flex;
  align-items: center;
  margin: 1rem 0;
  gap: 0.75rem;
}

.cert-login-separator::before,
.cert-login-separator::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #cbd5e0, transparent);
}

.cert-login-separator span {
  font-size: 0.8rem;
  font-weight: 500;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Botón principal de login con certificado */
.cert-login-button {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  width: 100%;
  padding: 0.875rem 1.25rem;
  background: linear-gradient(135deg, #223d71 0%, #2e5194 100%);
  border: 2px solid #223d71;
  border-radius: 8px;
  text-decoration: none;
  color: white;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(34, 61, 113, 0.25);
  position: relative;
  overflow: hidden;
}

.cert-login-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.08),
    transparent
  );
  transition: left 0.5s ease;
}

.cert-login-button:hover::before {
  left: 100%;
}

.cert-login-button:hover {
  background: linear-gradient(135deg, #2e5194 0%, #3b63b0 100%);
  border-color: #2e5194;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 61, 113, 0.35);
  text-decoration: none;
  color: white;
}

.cert-login-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(34, 61, 113, 0.25);
}

/* Icono del certificado */
.cert-login-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  flex-shrink: 0;
}

.cert-login-icon i {
  font-size: 1.25rem;
  color: white;
}

/* Texto del botón */
.cert-login-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.cert-login-title {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
}

.cert-login-subtitle {
  font-size: 0.7rem;
  font-weight: 400;
  opacity: 0.75;
  line-height: 1.3;
  margin-top: 2px;
}

/* Flecha animada */
.cert-login-arrow {
  font-size: 0.875rem;
  opacity: 0.7;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.cert-login-button:hover .cert-login-arrow {
  opacity: 1;
  transform: translateX(4px);
}
