/* =========================================================================
   DM FITNESS — base visual (loja e painel)
   Paleta: branco suave, bege claro, preto e dourado (combina com a logo)
   ========================================================================= */
@font-face {
  font-family: 'Inter'; src: url('../fonts/inter-var.woff') format('woff');
  font-weight: 300 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Cormorant'; src: url('../fonts/cormorant-var.woff') format('woff');
  font-weight: 400 700; font-style: normal; font-display: swap;
}

:root {
  --branco: #FAF8F5;
  --bege: #F3EDE3;
  --bege-medio: #E6DCCB;
  --preto: #111111;
  --preto-2: #1C1B19;
  --dourado: #C9A45C;
  --dourado-escuro: #A8823F;
  --dourado-claro: #E4CD98;
  --grafite: #2B2B2B;
  --cinza: #6E6A63;
  --linha: #E3DACB;
  --verde: #2E7D32;
  --vermelho: #C62828;
  --ambar: #B26A00;
  --raio: 10px;
  --sombra: 0 6px 24px rgba(17, 17, 17, .08);
  --fonte: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --fonte-titulo: 'Cormorant', Georgia, 'Times New Roman', serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--fonte); font-size: 16px; line-height: 1.55;
  color: var(--grafite); background: var(--branco);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
.titulo-serif { font-family: var(--fonte-titulo); font-weight: 600; letter-spacing: .01em; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.visually-hidden, .honeypot {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------------------------------------------------------------- botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.5em; border-radius: 999px; border: 1px solid transparent;
  font: 600 .95rem/1 var(--fonte); letter-spacing: .02em; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-dourado { background: var(--dourado); color: var(--preto); }
.btn-dourado:hover { background: var(--dourado-claro); }
.btn-escuro { background: var(--preto); color: var(--branco); }
.btn-escuro:hover { background: var(--preto-2); color: var(--dourado-claro); }
.btn-contorno { background: transparent; border-color: currentColor; }
.btn-contorno:hover { background: rgba(201, 164, 92, .12); }
.btn-perigo { background: var(--vermelho); color: #fff; }
.btn-pequeno { padding: .5em 1em; font-size: .85rem; }
.btn-bloco { width: 100%; }
.btn svg { width: 20px; height: 20px; }

/* ---------------------------------------------------------------- formulários */
.campo { margin-bottom: 1rem; }
.campo label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.campo input[type=text], .campo input[type=email], .campo input[type=password], .campo input[type=url],
.campo input[type=number], .campo input[type=date], .campo input[type=tel], .campo input[type=search],
.campo input[type=file], .campo select, .campo textarea {
  width: 100%; padding: .75em .9em; border: 1px solid var(--linha); border-radius: 8px;
  font: inherit; background: #fff; color: var(--grafite);
}
/* campo de senha com botão Mostrar/Ocultar (criado por js/mostrar-senha.js) */
.campo-senha { position: relative; display: block; }
.campo .campo-senha input { padding-right: 5.2rem; }
.alternar-senha { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); padding: 6px 10px; border: 0; border-radius: 6px;
  background: transparent; color: var(--dourado-escuro); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
.alternar-senha:hover { text-decoration: underline; }
.alternar-senha:focus-visible { outline: 2px solid var(--dourado-escuro); outline-offset: 1px; }
.campo input:focus, .campo select:focus, .campo textarea:focus {
  outline: 2px solid var(--dourado); outline-offset: 1px; border-color: var(--dourado);
}
.campo .ajuda { font-size: .82rem; color: var(--cinza); margin-top: .3rem; }
.campo .erro { font-size: .85rem; color: var(--vermelho); margin-top: .3rem; }
.campo-check { display: flex; align-items: center; gap: .5rem; }
.campo-check label { margin: 0; font-weight: 500; }
.lista-check { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.lista-check label { font-weight: 500; display: flex; gap: .5rem; align-items: center; }

/* ---------------------------------------------------------------- mensagens */
.mensagens { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .5rem; }
.mensagens li { padding: .8rem 1rem; border-radius: 8px; border-left: 4px solid var(--dourado); background: #fff; box-shadow: var(--sombra); }
.mensagens .success { border-color: var(--verde); }
.mensagens .error { border-color: var(--vermelho); }
.mensagens .warning { border-color: var(--ambar); }
