html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  background: linear-gradient(to bottom, #060e1a 0%, #0f2847 100%);
}

/* Focus ring */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem rgba(255, 255, 255, 0.1), 0 0 0 0.25rem #42a5f5;
}

/* Placeholder floating labels */
.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* ══════════════════════════════════════════
   TEMA BLU CHIARO – Layout (navbar, footer)
   ══════════════════════════════════════════ */

.navbar-theme {
  background: linear-gradient(90deg, #0d2137 0%, #1976d2 100%);
}

.footer-theme {
  background: linear-gradient(90deg, #0d2137 0%, #0f2847 100%);
}

.footer-theme a {
  color: rgba(255, 255, 255, 0.6);
}

.footer-theme a:hover {
  color: #ffffff;
}

/* ══════════════════════════════════════════
   TEMA BLU CHIARO – Hero
   ══════════════════════════════════════════ */

.hero-gradient {
  background: linear-gradient(135deg, #1565c0 0%, #42a5f5 100%);
  border-radius: 30px;
  padding: 1rem;
  margin-bottom: 2rem;
}

.hero-gradient .hero-title {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-gradient .hero-desc {
  opacity: 0.9;
}

/* ══════════════════════════════════════════
   TEMA BLU CHIARO – App Card (selezione app)
   ══════════════════════════════════════════ */

.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3) !important;
}

.app-card {
  border-radius: 20px;
  overflow: hidden;
  min-height: 340px;
}

.app-card .card-desc {
  opacity: 0.8;
}

.app-card .btn-access {
  border: none;
  border-radius: 50px;
  padding: 0.75rem 2.5rem;
  font-weight: 600;
  font-size: 1.05rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.app-card .btn-access:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Varianti card applicazione */
.app-card-assist {
  background: linear-gradient(135deg, #0d2137 0%, #1565c0 100%);
}

.app-card-gestione {
  background: linear-gradient(135deg, #0f2847 0%, #1976d2 100%);
}

.btn-access-assist {
  background: linear-gradient(135deg, #42a5f5 0%, #4fc3f7 100%);
  color: white;
}

.btn-access-gestione {
  background: linear-gradient(135deg, #64b5f6 0%, #81d4fa 100%);
  color: white;
}

/* ══════════════════════════════════════════
   TEMA BLU CHIARO – Account Pages
   ══════════════════════════════════════════ */

.account-wrapper {
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.account-card {
    background: linear-gradient(135deg, #10396e 0%, #1976d2 100%);
    border: 1px solid rgba(66, 165, 254, 0.15);
    border-radius: 24px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    padding: 2.5rem;
    width: 100%;
    max-width: 460px;
}

.account-card-wide {
  max-width: 580px;
}

.account-card .account-logo {
  width: 80px;
  height: 80px;
}

.account-card .account-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
}

.account-card .account-subtitle {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.account-card .form-control {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(66, 165, 254, 0.25);
  color: #ffffff;
  border-radius: 12px;
}

.account-card .form-control:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: #42a5f5;
}

.account-card .form-floating > label {
  color: rgba(255, 255, 255, 0.5);
}

.account-card .form-check-label {
  color: rgba(255, 255, 255, 0.7);
}

.account-card .btn-account {
  background: linear-gradient(135deg, #1565c0 0%, #42a5f5 100%);
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.75rem;
  color: #ffffff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.account-card .btn-account:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(21, 101, 192, 0.4);
}

.account-card .account-link {
  color: #42a5f5;
  text-decoration: none;
  font-size: 0.9rem;
}

.account-card .account-link:hover {
  color: #90caf9;
  text-decoration: underline;
}

.account-card .text-danger {
  font-size: 0.85rem;
}

.account-card hr {
  border-color: rgba(66, 165, 254, 0.15);
}

.account-icon-header {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #1565c0 0%, #42a5f5 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.account-message-card {
  background: rgba(66, 165, 254, 0.08);
  border: 1px solid rgba(66, 165, 254, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
  color: rgba(255, 255, 255, 0.8);
}