* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

.tela-central {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cartao-login {
  border: 1px solid #1a1a1a;
  border-radius: 12px;
  padding: 24px;
  width: 320px;
}

.cartao-login h1 {
  font-size: 18px;
  margin: 0 0 16px;
  text-align: center;
}

.cartao-login label {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}

.cartao-login input {
  width: 100%;
  height: 40px;
  margin-bottom: 12px;
  padding: 0 10px;
  border: 1px solid #1a1a1a;
  border-radius: 6px;
  font-size: 14px;
}

.cartao-login button {
  width: 100%;
  height: 40px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.erro {
  color: #b33a3a;
  font-size: 13px;
  margin-bottom: 12px;
}

.main-nav details.dropdown {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0;
  height: 100%;
}

.main-header,
.main-nav {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 1000;
  background-color: var(--pico-primary-background);
}

/* Alinha os itens da lista perfeitamente na horizontal */
.button-menu ul {
  display: flex !important;
  align-items: center !important;
}

/*Equaliza o comportamento interno do Link e do Botão */
.button-menu ul li button,
.button-menu ul li a[role="button"] {
  margin: 0 !important;
  /* Remove qualquer margem residual do Pico */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;

  /* Mantém as alturas e caixas idênticas */
  height: 2.5rem;
  line-height: 1;
  padding: 0 1rem;
  box-sizing: border-box;
}

.msg-erro {
  border-left: 4px solid #b33a3a;
  padding: .75rem 1rem;
  margin-bottom: 1rem;
}

.msg-erro ul {
  margin: .5rem 0 0;
}

@media (min-width: 992px) {
  :root {
    --pico-font-size: 100%;
    --pico-spacing: 1rem;
  }
}