.card {
  border: none;
  border-radius: 12px;
}

.custom-input {
  border: 1px solid #dee2e6;
  padding: 0.6rem 1rem;
  transition: all 0.2s ease;
}

.custom-input:focus {
  border-color: #0d6efd;
  box-shadow: none;
}

.input-group .custom-input {
  border-right: 0;
}

.input-group-text {
  border: 1px solid #dee2e6;
  background-color: #fff;
  height: 42px;
}

.input-group:focus-within .input-group-text {
  border-color: #0d6efd;
}

.btn-link {
  text-decoration: none;
  background-color: white;
}

.btn-link:hover {
  background-color: #f8f9fa;
}

.btn-link:focus {
  box-shadow: none;
}

.form-label {
  font-weight: 500;
}

.shadow-sm {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.bi {
  transition: all 0.2s ease;
}

/* Sovrascrivi stile btn-primary per la pagina di login */
.btn-primary {
  background-color: #1a227f !important;
  border-color: #1a227f !important;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #151b66 !important;
  border-color: #151b66 !important;
}

/* Animazione di caricamento */
.btn-loading {
  pointer-events: none;
  position: relative;
}

.btn-loading::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 20px;
  margin-top: -10px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  animation: spin 1s infinite linear;
}

.btn-loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(26, 34, 127, 0.8);
  animation: pulse 1.5s infinite ease-in-out;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}
