/* ==========================================================================
   Custom CSS para o listmonk — visual inspirado na tela de login do
   WordPress.org (wp-login.php)  —  v2, refinada
   Cole este código em: Settings > Appearance > Custom CSS (listmonk admin)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Google+Sans:ital,opsz,wght@0,17..18,400..700;1,17..18,400..700&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
body {
  background: #f0f0f1;
  font-family: "Google Sans", Roboto, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #3c434a;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #2271b1;
  text-decoration: none;
}
a:hover {
  color: #135e96;
  text-decoration: underline;
}

/* Labels — peso normal, como no WordPress (não em negrito) */
label {
  color: #3c434a;
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 4px;
}
label[for="email"],
label[for="name"],
.login label {
  display: block;
}
/* labels de checkbox/radio ficam sempre em linha com o campo */
input[type="checkbox"] + label,
input[type="radio"] + label {
  display: inline;
  font-weight: 400;
  vertical-align: middle;
}

h1, h2, h3, h4 {
  font-weight: 400;
  color: #3c434a;
}
h2 {
  text-align: center;
  font-size: 20px;
  margin: 0 0 28px 0;
}

/* Container central, como o #login do WordPress */
.container {
  margin: 60px auto 15px auto;
  max-width: 320px;
}

/* Cartão branco — o logo fica FORA dele, acima, como no wp-login.php */
.wrap {
  position: relative;
  background: #fff;
  margin-top: 136px;
  padding: 30px 26px 36px 26px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
  border: 1px solid #c3c4c7;
  border-radius: 4px;
}

/* Cabeçalho / logo — círculo azul posicionado acima do cartão */
.header {
  position: absolute;
  top: -106px;
  left: 0;
  right: 0;
  border-bottom: 0;
  padding: 0;
  margin: 0;
  text-align: center;
}
.header .logo {
  display: block;
  height: 80px;
}
.header .logo img {
  display: block;
  width: 80px;
  height: 80px;
  margin: 0 auto;
  max-width: none; /* sobrepõe a regra antiga que limitava a 150px de largura */
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
}

/* Campos de formulário — proporção e espaçamento do wp-login.php */
input[type="text"],
input[type="email"],
input[type="password"],
select {
  font-family: "Google Sans", Roboto, Arial, sans-serif;
  padding: 3px 10px;
  border: 1px solid #8c8f94;
  border-radius: 3px;
  width: 100%;
  font-size: 18px;
  line-height: 1.3;
  box-shadow: none;
  margin: 4px 0 16px 0;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus {
  border-color: #2271b1;
  box-shadow: 0 0 0 1px #2271b1;
  outline: 2px solid transparent;
}
input:focus::placeholder {
  color: transparent;
}
input[disabled] {
  opacity: .5;
}

.section,
.form p {
  margin-bottom: 4px;
}

.center { text-align: center; }
.right { text-align: right; }
.small { font-size: .875em; color: #646970; }
.error { color: #d63638; }

/* Botão — cor e leve relevo do botão primário do WordPress */
.button {
  background: #2271b1;
  border: 1px solid #2271b1;
  border-bottom-color: #135e96;
  box-shadow: 0 1px 0 #135e96;
  border-radius: 3px;
  padding: 0 16px;
  height: 32px;
  line-height: 30px;
  min-width: auto;
  font-size: 13px;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  transition: background-color .15s ease;
}
.button:hover {
  background: #135e96;
  border-color: #135e96;
  color: #fff;
}
.button.button-outline {
  background: #fff;
  border: 1px solid #2271b1;
  box-shadow: none;
  color: #2271b1;
}
.button.button-outline:hover {
  background: #f6f7f7;
  border-color: #135e96;
  color: #135e96;
}

/* Link "Arquivo da lista de emails" — centralizado abaixo do botão */
.form .right {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
}

/* Lista de listas de e-mail (checkboxes) */
.lists {
  list-style-type: none;
  padding: 20px 0 0 0;
  margin: 24px 0 22px 0;
  border-top: 1px solid #dcdcde;
}
.lists h2 {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #646970;
  margin: 0 0 12px 0;
}
.lists li {
  display: flex;
  align-items: flex-start;
  margin: 0 0 4px 0;
}
.lists input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 3px 8px 0 0;
  flex-shrink: 0;
  accent-color: #2271b1;
}
.lists label {
  font-size: 14px;
  color: #1d2327;
}
.lists .description {
  margin: 2px 0 14px 24px;
  font-size: .875em;
  line-height: 1.3rem;
  color: #646970;
}

.unsub-all {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #dcdcde;
}

.form .nonce { display: none; }
.form .captcha { margin-top: 20px; }

/* Arquivo de edições */
.archive {
  list-style-type: none;
  margin: 25px 0 0 0;
  padding: 0;
}
.archive .date {
  display: block;
  color: #646970;
  font-size: .875em;
}
.archive li { margin-bottom: 15px; }
.feed { margin-right: 15px; }

.home-options { margin-top: 24px; text-align: center; }
.home-options a { margin: 0 7px; font-size: 13px; }

.pagination { margin-top: 24px; text-align: center; }
.pg-page {
  display: inline-block;
  padding: 0 10px;
  text-decoration: none;
}
.pg-page.pg-selected {
  text-decoration: underline;
  font-weight: bold;
}

/* Tela de login (admin) */
.login .submit {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.login button {
  width: auto;
  min-width: 90px;
  height: 32px;
  padding: 0 16px;
  background: #2271b1;
  border: 1px solid #2271b1;
  border-bottom-color: #135e96;
  box-shadow: 0 1px 0 #135e96;
  border-radius: 3px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login button:hover {
  background: #135e96;
  border-color: #135e96;
}
.login button img { max-width: 20px; margin-right: 8px; }
.login input[name="totp_code"] {
  font-size: 24px;
  letter-spacing: 5px;
  text-align: center;
}

/* Rodapé discreto, fora do cartão — como no wp-login.php */
footer.container {
  margin-top: 24px;
  margin-bottom: 30px;
  text-align: center;
  color: transparent;
  font-size: 13px;
}
footer a {
  color: transparent;
  text-decoration: none;
}
footer a:hover {
  color: transparent;
  text-decoration: underline;
}

@media screen and (max-width: 650px) {
  .container {
    margin: 166px auto 15px auto;
    max-width: 90%;
  }
  .wrap {
    padding: 26px 20px 32px 20px;
  }
}