/* Página de ativação de conta. Marca Inteli, segmento Institucional, densidade
   clean (inteli-brand-kit: cores.md, tipografia.md, forma.md e
   aplicacao-html-react.md). Fontes servidas pela própria página: a CSP não
   deixa buscar nada fora dela. */

@font-face {
  font-family: 'Manrope';
  src: url('fonts/manrope-latin.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: 'Platypi';
  src: url('fonts/platypi-700-latin.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  --roxo: #2e2640;
  --coral: #ff4545;
  --coral-hover: #e83e3e;
  --cinza-escuro: #b2b6bf;
  --cinza-medio: #caced6;
  --cinza-claro: #e6eaeb;
  --branco: #ffffff;

  /* Cores funcionais: só estado (aplicacao-html-react.md, INT-01 a INT-04). */
  --cor-erro: #a4231c;
  --cor-erro-fundo: #fbeae8;
  --cor-sucesso: #0f7334;
  --cor-sucesso-fundo: #e7f4ec;
  --cor-info: #4459a8;
  --cor-info-fundo: #eaeef8;

  --font-titulo: 'Platypi', Georgia, serif;
  --font-texto: 'Manrope', Arial, sans-serif;
}

/* GRA-01: cantos retos em tudo. */
*, *::before, *::after { border-radius: 0; box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  font-family: var(--font-texto);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  color: var(--roxo);
  background: var(--branco);
}

.sprite { display: none; }

.topo {
  padding: 24px 16px 8px;
  display: flex;
  justify-content: center;
}

.inteli-logo { height: 40px; width: auto; }

.conteudo {
  flex: 1;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 16px;
}

.cartao {
  background: var(--branco);
  border: 1px solid var(--cinza-medio);
  padding: 32px 24px;
}

h1 {
  margin: 0 0 12px;
  font-family: var(--font-titulo);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.2;
}

h1:focus { outline: none; }

p { margin: 0 0 16px; }

form { margin-top: 24px; }

label {
  display: block;
  margin: 16px 0 6px;
  font-weight: 600;
  font-size: 14px;
}

input[type='password'],
input[type='text'],
input[type='email'] {
  width: 100%;
  padding: 12px;
  font: inherit;
  font-weight: 300;
  color: var(--roxo);
  background: var(--branco);
  border: 1px solid var(--roxo);
}

input[aria-invalid='true'] { border: 2px solid var(--cor-erro); }

.opcao {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-weight: 300;
  cursor: pointer;
}

.opcao input { width: 18px; height: 18px; margin: 0; accent-color: var(--coral); }

.regras {
  list-style: none;
  margin: 20px 0 24px;
  padding: 16px;
  background: var(--cinza-claro);
  font-size: 14px;
}

.regras li { display: flex; align-items: center; gap: 8px; }
.regras li + li { margin-top: 6px; }
.regras li[data-ok='true'] .icone { color: var(--cor-sucesso); }

.icone {
  flex: none;
  width: 20px;
  height: 20px;
  fill: currentColor;
  color: var(--roxo);
}

/* COR-04: o que é ação é Coral, com texto Branco. */
.btn {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 14px 20px;
  border: 0;
  background: var(--coral);
  color: var(--branco);
  font-family: var(--font-texto);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
}

.btn:hover { background: var(--coral-hover); }

.btn:disabled {
  background: var(--cinza-claro);
  color: var(--cinza-escuro);
  cursor: not-allowed;
}

:focus-visible { outline: 2px solid var(--roxo); outline-offset: 2px; }

/* Estado: ícone com silhueta própria mais texto, cor só de reforço (INT-01). */
.alerta {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
  padding: 12px 16px;
  border-left: 3px solid;
}

.alerta p { margin: 0; }
.alerta-erro { background: var(--cor-erro-fundo); border-color: var(--cor-erro); }
.alerta-erro .icone { color: var(--cor-erro); }

.selo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 4px 10px;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.selo-sucesso { background: var(--cor-sucesso-fundo); }
.selo-sucesso .icone { color: var(--cor-sucesso); }
.selo-info { background: var(--cor-info-fundo); }
.selo-info .icone { color: var(--cor-info); }

.rodape {
  padding: 24px 16px;
  text-align: center;
  font-size: 12px;
}

.rodape p { margin: 0; }

[hidden] { display: none !important; }
