.mncg-login-wrapper {
  max-width: 420px;
  margin: 2rem auto;
  padding: 1.25rem;
  border: 1px solid #e1e1e1;
  border-radius: 8px;
}

.mncg-otp-form { display: none; }


.mncg-login-title {
  text-align: center;
  font-family: sans-serif;
  color: #3c84b8;
}

.mncg-login-logo {
  text-align: center !important; /* !important deve seguire il valore (center) */
  border-radius: 1rem !important;
  max-height: 20rem !important;
}

/* Inline logout link */
.mncg-logout-btn {
  background: none;
  border: none;
  color: #0073aa;
  cursor: pointer;
  padding: 0;
  margin-left: 8px;
  font-family: inherit;
  font-size: inherit;
}

.mncg-logout-btn:hover {
  text-decoration: underline;
  color: #005177;
}


.mncg-loader-login {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.mncg-loader-login .spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #ccc;
  border-top-color: #0b1f3a;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 10px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}


.mncg-feedback {
  margin-bottom: 12px;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: opacity 0.5s ease;
}
.mncg-feedback.fade-out {
  opacity: 0;
}
.mncg-alert-error {
  background: #fce4e4;
  color: #a94442;
}
.mncg-alert-success {
  background: #e4f9e4;
  color: #3c763d;
}
.mncg-alert-info {
  background: #e4f1fc;
  color: #31708f;
}


.mncg-otp-choice {
  display: flex;
  justify-content: center;
  gap: 16px; /* Spazio tra i bottoni */
  flex-wrap: wrap; /* Permette di andare a capo se non c'è spazio */
}

.mncg-otp-choice button {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  background-color: #3c84b8;
  color: white;
  font-size: 1rem;
}

.mncg-otp-choice button:hover {
  background-color: #0056b3;
}

.mncg-chosen-otp {
 font-size: 0.8rem;
 margin-bottom: 1rem;
 text-align: center;
}


.mncg-confirm-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10010;
}

.mncg-modal-box {
  background: white;
  padding: 2rem;
  max-width: 400px;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,0,0,0.25);
  text-align: center;
}

.mncg-modal-actions button {
  margin: 0 10px;
  padding: 8px 16px;
  font-weight: bold;
  cursor: pointer;
}


#mncg-reset-password-form {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: all 0.3s ease;
  max-height: 90vh;
  overflow: visible !important;
  position: relative !important;
  z-index: 1;
  margin: 0 auto; /* <-- centra orizzontalmente */
}

#mncg-reset-password-form input[type="text"],
#mncg-reset-password-form button {
  font-size: 1rem;
  padding: 0.6rem 1rem;
  border-radius: 5px;
  border: 1px solid #ccc;
}

#mncg-reset-password-form button {
  background-color: #3c84b8;
  color: white;
  border: none;
  cursor: pointer;
}

#mncg-reset-password-form button:hover {
  background-color: #0056b3;
}