/* Tarjeta de Login Moderna */
.login-card {
  background: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 2.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.login-subtitle {
  font-size: 0.9rem;
  color: #7f8c8d;
  margin: 0;
}

/* Contenedor del indicador de carga */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: #ffffff;
  border-radius: 6px;
  margin-bottom: 1.5rem;
}

/* Contenedor simple del indicador de carga (solo puntos) */
.loading-container-simple {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0;
  margin-bottom: 1rem;
  min-height: 30px;
  width: 100%;
}

.loading-container-simple .dots {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.loading-text {
  margin-top: 0.5rem;
  color: #7f8c8d;
  font-size: 0.9rem;
}

/* Contenedor para los puntos */
.dots {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

/* Estilos para cada punto */
.dot {
  width: 10px;
  height: 10px;
  background-color: #3498db;
  border-radius: 50%;
  margin: 0 4px;
  opacity: 0.2;
  animation: bounce 1.2s infinite ease-in-out;
}

/* Animación con desfase para cada punto */
.dot:nth-child(1) {
  animation-delay: 0s;
}
.dot:nth-child(2) {
  animation-delay: 0.2s;
}
.dot:nth-child(3) {
  animation-delay: 0.4s;
}

/* Definición de la animación */
@keyframes bounce {
  0%, 80%, 100% {
    opacity: 0.2;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-10px);
  }
}

/* Campos de formulario modernos */
.form-group-modern {
  margin-bottom: 1.5rem;
}

.input-label {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: #34495e;
  margin-bottom: 0.5rem;
}

.input-label i {
  margin-right: 0.5rem;
  color: #3498db;
  font-size: 1rem;
}

.form-control-modern {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  color: #2c3e50;
  background-color: #ffffff;
  border: 2px solid #e9ecef;
  border-radius: 6px;
  transition: all 0.3s ease;
  outline: none;
}

.form-control-modern:focus {
  background-color: #ffffff;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-control-modern::placeholder {
  color: #adb5bd;
}

/* Contenedor de enlace de contraseña olvidada */
.forgot-password-container {
  text-align: left;
  margin-bottom: 1.5rem;
}

.forgot-password-link {
  display: inline-flex;
  align-items: flex-start;
  font-size: 0.875rem;
  color: #3498db;
  text-decoration: none;
  transition: all 0.3s ease;
  line-height: 1.5;
  word-wrap: break-word;
}

.forgot-password-link i {
  margin-right: 0.5rem;
  font-size: 0.875rem;
  margin-top: 0.125rem;
  flex-shrink: 0;
}

.forgot-password-link:hover {
  color: #2980b9;
  text-decoration: underline;
}

/* Contenedor de Turnstile */
.turnstile-container {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
}

/* Botón de login moderno */
.btn-login {
  width: 100%;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
  outline: none;
}

.btn-login:hover:not(:disabled) {
  background: linear-gradient(135deg, #2980b9 0%, #21618c 100%);
  box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
  transform: translateY(-2px);
}

.btn-login:active:not(:disabled) {
  transform: translateY(0);
}

.btn-login:disabled {
  background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
  cursor: not-allowed;
  box-shadow: 0 2px 8px rgba(127, 140, 141, 0.2);
  opacity: 0.8;
  position: relative;
}

.btn-login:disabled::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(149, 165, 166, 0.3) 0%, rgba(127, 140, 141, 0.3) 100%);
  border-radius: 6px;
}

.btn-text {
  margin-right: 0.5rem;
}

.btn-icon {
  transition: transform 0.3s ease;
}

.btn-login:hover:not(:disabled) .btn-icon {
  transform: translateX(4px);
}

/* Responsive */
@media (max-width: 768px) {
  .login-card {
    padding: 1.5rem;
  }

  .login-title {
    font-size: 1.5rem;
  }
}

