/* Gradiente en el body: si el contenido no llena la pantalla, no se ve fondo blanco */
body { background: linear-gradient(135deg, #6C3FC5 0%, #4B2A9C 100%) !important; }

.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 2rem 1rem;
}

.login-card {
  max-width: 480px;
  width: 100%;
  padding: 3rem 2.5rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #6C3FC5, #4B2A9C);
}

.login-logo {
  margin-bottom: 2rem;
}

.login-logo img {
  max-width: 200px;
  height: auto;
}

.login-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #6C3FC5, #4B2A9C);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  animation: pulse 2s infinite;
}

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

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.login-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 0.5rem;
}

.login-subtitle {
  color: #718096;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.form-control {
  border: 2px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #f7fafc;
}

.form-control:focus {
  border-color: #6C3FC5;
  box-shadow: 0 0 0 3px rgba(108, 63, 197, 0.1);
  background: white;
}

.form-label {
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 0.5rem;
}

.btn-login {
  background: #6D28D9;
  border: none;
  border-radius: 50rem;
  padding: 0.875rem 2rem;
  font-weight: 600;
  font-size: 1rem;
  color: white!important;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-login:hover {
  background: #5b21b6;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(109, 40, 217, 0.35);
}

.btn-login:active {
  transform: translateY(0);
}

.forgot-link {
  color: #6C3FC5;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  font-size: 0.875rem;
}

.forgot-link:hover {
  color: #4B2A9C;
  text-decoration: underline;
}

.register-link {
  color: #6C3FC5;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.register-link:hover {
  color: #4B2A9C;
  text-decoration: underline;
}

.form-check-input:checked {
  background-color: #6C3FC5;
  border-color: #6C3FC5;
}

.form-check-input:focus {
  border-color: #6C3FC5;
  box-shadow: 0 0 0 0.25rem rgba(108, 63, 197, 0.25);
}

.alert {
  border-radius: 0.5rem;
  border: none;
  font-weight: 500;
}

.alert-danger {
  background: #fed7d7;
  color: #c53030;
}

@media (max-width: 576px) {
  .login-card {
    padding: 2rem 1.5rem;
    margin: 1rem;
  }

  /* Título más compacto en móvil, con algo de aire respecto al subtítulo */
  .login-title {
    font-size: 1.25rem;
    line-height: 1.25;
    margin-bottom: 0.65rem;
  }

  .login-subtitle {
    font-size: 0.9rem;
    line-height: 1.35;
    margin-bottom: 1.25rem;
  }

  /* Ícono del candado oculto en móvil para ahorrar espacio vertical. */
  .login-icon {
    display: none;
  }
}
