/* Estilos para alertas de autenticação aprimorados */
.auth-alert {
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 15px;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.auth-alert-header {
  display: flex;
  align-items: flex-start;
  margin-bottom: 8px;
}

.auth-alert-header svg {
  margin-right: 8px;
  flex-shrink: 0;
}

.auth-alert-error {
  background-color: #fff5f5;
  border-left: 4px solid #e53e3e;
  color: #c53030;
}

.auth-alert-success {
  background-color: #f0fff4;
  border-left: 4px solid #48bb78;
  color: #2f855a;
}

.auth-alert-warning {
  background-color: #fffaf0;
  border-left: 4px solid #ed8936;
  color: #c05621;
}

.auth-alert-info {
  background-color: #ebf8ff;
  border-left: 4px solid #4299e1;
  color: #2b6cb0;
}

/* Estilos para seção de soluções */
.auth-alert-solutions {
  background-color: rgba(255, 255, 255, 0.5);
  padding: 10px;
  border-radius: 4px;
  margin-top: 8px;
  font-size: 13px;
}

.auth-alert-solutions-title {
  font-weight: 600;
  margin-bottom: 5px;
  color: #2d3748;
}

.auth-alert-solutions ul {
  margin: 0;
  padding-left: 20px;
}

.auth-alert-solutions li {
  margin-bottom: 4px;
}

.auth-alert-solutions li:last-child {
  margin-bottom: 0;
}

/* Animação para os alertas */
@keyframes slideIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-alert {
  animation: slideIn 0.3s ease-out forwards;
}

/* Estilo para botão de "Entendi" ou "Fechar" nos alertas */
.auth-alert-action {
  display: block;
  text-align: right;
  margin-top: 8px;
}

.auth-alert-action button {
  background: none;
  border: none;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  font: inherit;
  opacity: 0.8;
}

.auth-alert-action button:hover {
  opacity: 1;
}

/* Estilos para diferentes tipos de erro */
.auth-alert[data-error-category="timeout"] {
  background-color: #fff8f1;
  border-left-color: #ed8936;
  color: #c05621;
}

.auth-alert[data-error-category="network"] {
  background-color: #ebf8ff;
  border-left-color: #4299e1;
  color: #2b6cb0;
}

.auth-alert[data-error-category="authentication"] {
  background-color: #faf5ff;
  border-left-color: #805ad5;
  color: #553c9a;
}

.auth-alert[data-error-category="authorization"] {
  background-color: #fff5f5;
  border-left-color: #f56565;
  color: #c53030;
}

.auth-alert[data-error-category="configuration"] {
  background-color: #e6fffa;
  border-left-color: #38b2ac;
  color: #234e52;
}