body.auth-body {
  background: linear-gradient(to right, #f8f9fa, #eef2f7);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Inter", sans-serif;
}

body.index-body {
  background: linear-gradient(to right, #f8f9fa, #eef2f7);
  min-height: 100vh;
}

/* Card / Box principale */
.auth-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
  padding: 3rem 3rem 2.5rem;
  max-width: 580px;
  width: 100%;
  text-align: center;
  transition: all 0.3s ease;
}

/* Logo */
.auth-logo img {
  max-width: 160px;
  margin-bottom: 1.5rem;
}

/* Titoli */
.auth-title {
  color: #0d6efd;
  font-weight: 700;
}

.auth-subtitle {
  color: #6c757d;
  margin-bottom: 1.5rem;
}

/* Input Group */
.auth-input-group {
  background: #f1f3f6;
  border: 2px solid #e0e3e7;
  border-radius: 14px;
  transition: all 0.25s ease;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.auth-input-group:focus-within {
  border-color: #0d6efd;
  box-shadow: 0 0 8px rgba(13, 110, 253, 0.35);
  background: #fff;
}

.auth-input-group .input-icon {
  background: transparent;
  border: none;
  color: #0d6efd;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.5rem;
}

.auth-input-group input.form-control {
  border: none;
  background-color: transparent;
  box-shadow: none;
  flex: 1;
}

/* Password rules */
.password-rules {
  font-size: 0.9rem;
  color: #dc3545;
  border-left: 3px solid #dc3545;
  padding-left: 0.6rem;
  margin: 1rem 0 1.5rem;
  text-align: left;
}

/* Pulsanti animati */
.btn-auth {
  background: linear-gradient(135deg, #0d6efd, #3b82f6);
  border: none;
  color: #fff;
  border-radius: 50px;
  padding: 0.8rem 1rem;
  font-size: 1.1rem;
  font-weight: 500;
  width: 100%;
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.25);
  transition: all 0.3s ease;
}

.btn-auth:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(13, 110, 253, 0.35);
  background: linear-gradient(135deg, #2563eb, #1e40af);
}

/* Helper text / messaggi */
.auth-message {
  font-size: 0.9rem;
  margin-top: 1rem;
}

.auth-message.error {
  color: #dc3545;
}

.auth-message.success {
  color: #198754;
}

/* Responsive tweak */
@media (max-width: 576px) {
  .auth-card {
    padding: 2rem;
  }
}

/* Effetto comparsa con zoom + glow */
@keyframes popGlow {
  0% {
    opacity: 0;
    transform: scale(0.8);
    box-shadow: none;
  }

  60% {
    opacity: 1;
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(13, 110, 253, 0.4);
  }

  100% {
    opacity: 1;
    transform: scale(1);
    /* fine animazione */
    box-shadow: none;
  }
}

.button-animate {
  opacity: 0;
  animation: popGlow 0.6s ease forwards;
  will-change: transform, opacity;
}

.btn,
.dashboard-button,
.tool-button {
  transition: transform 0.18s ease, opacity 0.18s ease, box-shadow 0.18s ease;
  backface-visibility: hidden;
  transform-origin: center;
}

.btn:hover,
.dashboard-button:hover,
.tool-button:hover {
  transform: scale(1.03);
  opacity: 0.9;
}