/* Personalizzazione login Authelia – cambia solo qui il colore */
:root {
  --authelia-primary: #87cd27;
  --authelia-primary-hover: #6fa81f;
  --authelia-primary-rgb: 135, 205, 39;
}

/* Logo più grande */
img[src*="logo"],
[class*="logo"] img,
.logo img {
  max-width: 280px !important;
  width: auto !important;
  height: auto !important;
}

/* Campi username e password bianchi */
input,
textarea,
[class*="MuiInputBase-input"],
[class*="MuiOutlinedInput-input"] {
  background-color: #fff !important;
  color: #333 !important;
}

/* Pulsante ACCEDI */
button[type="submit"],
form button,
input[type="submit"],
[class*="MuiButton-contained"] {
  background-color: var(--authelia-primary) !important;
  background: var(--authelia-primary) !important;
  border-color: var(--authelia-primary) !important;
  color: #fff !important;
}

button[type="submit"]:hover,
form button:hover,
[class*="MuiButton-contained"]:hover {
  background-color: var(--authelia-primary-hover) !important;
  background: var(--authelia-primary-hover) !important;
  border-color: var(--authelia-primary-hover) !important;
  color: #fff !important;
}

/* Bordo focus: solo linea sottile, niente anello/glow */
input:focus,
input:focus-visible,
textarea:focus,
textarea:focus-visible {
  border-color: var(--authelia-primary) !important;
  box-shadow: none !important;
  outline: none !important;
}

.Mui-focused .MuiOutlinedInput-notchedOutline,
[class*="Mui-focused"] .MuiOutlinedInput-notchedOutline,
.authelia-nw1rry.Mui-focused .MuiOutlinedInput-notchedOutline,
fieldset.MuiOutlinedInput-notchedOutline {
  border-color: var(--authelia-primary) !important;
  border-width: 1px !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Colore label quando il campo è focused (sovrascrive il blu MUI) */
.authelia-nw1rry.Mui-focused,
[class*="Mui-focused"] .MuiInputLabel-root,
.Mui-focused .MuiInputLabel-root,
.MuiInputLabel-root.Mui-focused {
  color: var(--authelia-primary) !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Link "Reimposta la password?" nascosto */
a[href*="reset-password"],
a[href*="reset_password"],
a[href*="forgot"],
a[href*="Reset"],
a[href*="recovery"] {
  display: none !important;
}

/* Sfondo: immagine personalizzata (background.jpg in assets) */
body {
  background-image: url('/background.jpg') !important;
  background-size: cover !important;
  background-position: center !important;
  background-attachment: fixed !important;
}
