/* Brasilink 16 anos: identidade do sorteio.
   Campo roxo da marca, rosa como sinal/ação, bilhete de rifa como motivo, ondas do logo como ornamento. */
@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo.woff2') format('woff2-variations'), url('/fonts/archivo.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
:root {
  --roxo: #5c00af;        /* campo principal (cor da marca) */
  --roxo-fundo: #47008a;  /* áreas recuadas sobre o roxo */
  --ameixa: #1e0040;      /* tinta escura e fundo das telas de trabalho */
  --ameixa-2: #2b0a52;
  --rosa: #f4295e;        /* ação e destaque, sempre a mesma função */
  --rosa-escuro: #b3133f;
  --lilas: #d9c2ff;       /* texto secundário sobre roxo */
  --branco: #ffffff;
  --linha: rgba(255, 255, 255, .16);
  --texto: #ffffff;
  --texto-2: #d9c2ff;
  --texto-3: rgba(217, 194, 255, .7);
  --ok: #3fe0a0;
  --erro: #ffb3c4;
  --fonte: 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--fonte); color: var(--texto); background: var(--roxo); line-height: 1.45; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; font-weight: 800; font-stretch: 115%; line-height: 1; letter-spacing: -.01em; }
button, input, select { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
a { color: var(--branco); text-underline-offset: 3px; }
[hidden] { display: none !important; }

/* Botões: retangulares, tipo larga, um só rosa para ação */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.3em; border-radius: 10px; border: 0; cursor: pointer;
  font-weight: 750; font-stretch: 112%; font-size: 1rem; text-decoration: none;
  background: var(--rosa); color: var(--branco);
  box-shadow: 0 4px 0 var(--rosa-escuro);
  transition: transform .12s ease, box-shadow .12s ease, background-color .15s, opacity .2s;
}
.btn:hover { background: #ff3d6f; }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--rosa-escuro); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.sec { background: transparent; color: var(--branco); box-shadow: inset 0 0 0 1.5px var(--linha); }
.btn.sec:hover { background: rgba(255, 255, 255, .08); }
.btn.sec:active { transform: translateY(1px); }
.btn.claro { background: var(--branco); color: var(--roxo); box-shadow: 0 4px 0 #c9b3ee; }
.btn.claro:hover { background: #f3ecff; }
.btn.perigo { background: transparent; color: var(--erro); box-shadow: inset 0 0 0 1.5px rgba(255, 179, 196, .55); }
.btn.perigo:hover { background: rgba(255, 179, 196, .1); }
.btn.peq { min-height: 40px; padding: .45em 1em; font-size: .92rem; }
:focus-visible { outline: 3px solid var(--branco); outline-offset: 3px; }

/* Campos: brancos sobre o roxo, legíveis ao ar livre */
.campo { display: grid; gap: .45rem; }
.campo > label, .campo > .rotulo { font-weight: 650; font-size: 1rem; }
.input {
  width: 100%; min-height: 54px; padding: .75rem 1rem; border-radius: 10px;
  border: 2px solid transparent; background: var(--branco); color: var(--ameixa); font-size: 1.08rem;
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: #8d7aa8; }
.input:focus { outline: none; border-color: var(--rosa); box-shadow: 0 0 0 4px rgba(244, 41, 94, .25); }
.campo.invalido .input { border-color: var(--rosa); }
.msg-erro { color: var(--erro); font-size: .92rem; font-weight: 600; }
.msg-erro:empty { display: none; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.5rem; }

/* Bilhete de rifa: recortes redondos nas laterais e picote */
.bilhete {
  position: relative; background: var(--branco); color: var(--ameixa); border-radius: 8px;
  -webkit-mask: radial-gradient(circle at 0 50%, transparent var(--furo, 14px), #000 calc(var(--furo, 14px) + .5px)) left / 51% 100% no-repeat,
                radial-gradient(circle at 100% 50%, transparent var(--furo, 14px), #000 calc(var(--furo, 14px) + .5px)) right / 51% 100% no-repeat;
          mask: radial-gradient(circle at 0 50%, transparent var(--furo, 14px), #000 calc(var(--furo, 14px) + .5px)) left / 51% 100% no-repeat,
                radial-gradient(circle at 100% 50%, transparent var(--furo, 14px), #000 calc(var(--furo, 14px) + .5px)) right / 51% 100% no-repeat;
}

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0;
  background: var(--branco); color: var(--ameixa); padding: .85rem 1.2rem; border-radius: 10px; font-weight: 650;
  box-shadow: 0 16px 40px -12px rgba(30, 0, 64, .6); transition: all .25s ease; z-index: 100; max-width: calc(100% - 32px);
}
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.erro { background: var(--rosa); color: var(--branco); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Telas de trabalho (admin, login): fundo ameixa, blocos um tom acima */
body.trabalho { background: var(--ameixa); }
.cartao { background: var(--ameixa-2); border-radius: 12px; }
.btn.roxo { background: var(--roxo); box-shadow: 0 4px 0 #3a006e; }
.btn.roxo:hover { background: #6d0fc4; }
:root { --fundo: var(--ameixa); --fundo-2: var(--ameixa-2); --rosa-2: #ff5a85; --roxo-2: #7a1fd1; }
