/* ==================== login.css ==================== */
body {
  font-family: Arial, sans-serif;
  background: linear-gradient(45deg, #e2008c, #4b0082);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

.login-container,
.reset-container {
  background: #fff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.login-container h2,
.reset-container h2 {
  color: #333;
  margin-bottom: 20px;
  font-size: 24px;
}

.login-container input,
.reset-container input {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  box-sizing: border-box;
}

.login-container button,
.reset-container button {
  width: auto;
  padding: 10px 20px;
  background-color: #4b0082;
  border: none;
  color: white;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color .3s;
  display: block;
  margin: 0 auto 10px auto;
}

.login-container button:hover,
.reset-container button:hover {
  background-color: #37006b;
}

button.inativo {
  background-color: #ccc !important;
  color: #777 !important;
  pointer-events: none !important;
  cursor: default !important;
  opacity: .7 !important;
}

.footer {
  margin-top: 20px;
  font-size: 12px;
  color: #777;
}

.spacer {
  margin-bottom: 15px;
}

.forgot-password {
  margin-top: 10px;
  font-size: 14px;
  color: #242fcf;
  cursor: pointer;
}

.resend-code {
  margin-top: 15px;
}

#resendButton {
  background-color: #6c757d;
  border: none;
  padding: 10px 20px;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
  color: white;
  display: block;
  margin: 10px auto 0 auto;
  transition: background-color .3s;
}

#resendButton:hover {
  background-color: #5a6268;
}

#resendButton:disabled {
  background-color: #adb5bd;
  cursor: not-allowed;
}

.status-message {
  transition: opacity .5s ease;
  opacity: 1;
  margin-top: 15px;
  font-size: 14px;
}

.status-message.success {
  color: green;
}

.status-message.error {
  color: red;
}

.status-message.fade-out {
  opacity: 0;
}

.hidden {
  display: none;
}

@media (max-width:480px) {
  .login-container,
  .reset-container {
    padding: 20px;
    max-width: 90%;
  }
  .logo-login {
    width: 120px;
  }
}

.login-logo-container {
  text-align: center;
  margin-bottom: 20px;
}

.login-logo-container img {
  width: 380px;
  max-width: 100%;
  height: auto;
}
/* =========== estilos de redefinir senha =========== */

.senha-requisitos {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  font-size: .9rem;
  text-align: justify;
  line-height: 1.4;
}

.senha-requisitos li {
  display: flex;
  align-items: center;
}

.senha-requisitos li::before {
  content: '✔';
  width: 1.2em;
  font-weight: bold;
  color: #2ecc71;
  display: inline-block;
}

.senha-requisitos li.invalid::before {
  content: '✘';
  color: #e74c3c;
}

#btnSalvarSenha:disabled,
#btnSalvarSenha.inativo {
  background-color: #ccc !important;
  color: #777 !important;
  pointer-events: none !important;
  cursor: default !important;
  opacity: .7 !important;
}

.sidebar a[data-permissao] {
  display: none !important;
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.4);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loading-overlay .spinner {
  border: 6px solid #ccc;
  border-top: 6px solid #7c3aed;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.inativo {
  opacity: 0.6;
  cursor: not-allowed;
}
.codigo-verificacao {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
}

.codigo-verificacao input.codigo {
  width: 45px;
  height: 50px;
  text-align: center;
  font-size: 24px;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
  transition: border-color 0.3s;
}

.codigo-verificacao input.codigo:focus {
  border-color: #6a1b9a;
  outline: none;
  background-color: #f3eaff;
  font-weight: bold;
}
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  display: inline-block;
  animation: spin 0.6s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

.hidden {
  display: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.status-message {
  margin-top: 20px;
  font-weight: bold;
  transition: opacity 0.5s ease;
}

.status-message.success {
  color: #27a117;
}

.status-message.error {
  color: red;
}

.status-message.fade-out {
  opacity: 0;
}