/* Portal Wi-Fi Caseratto — estilo baseado no design aprovado */
@font-face { font-family: "Work Sans"; font-weight: 400; font-display: swap; src: url(/static/fonts/work-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Work Sans"; font-weight: 500; font-display: swap; src: url(/static/fonts/work-sans-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Work Sans"; font-weight: 600; font-display: swap; src: url(/static/fonts/work-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Work Sans"; font-weight: 700; font-display: swap; src: url(/static/fonts/work-sans-latin-700-normal.woff2) format("woff2"); }

:root {
  --accent: #983828;
  --accent-escuro: #6E2619;
  --fundo: #F6F1E8;
  --texto: #2B1712;
  --texto2: #6B5048;
  --texto3: #7A625A;
  --borda: #D9CDBE;
  --borda-cartao: #E6DCCF;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font-family: "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--accent); }
a:hover { color: var(--accent-escuro); }

.tela {
  max-width: 440px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 20px 24px calc(22px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Telas grandes (notebook, tablet): formulário em cartão centralizado */
@media (min-width: 600px) {
  body { background: #EDE5D8; padding: 40px 16px; }
  .tela {
    min-height: auto;
    background: var(--fundo);
    border: 1px solid var(--borda-cartao);
    border-radius: 20px;
    box-shadow: 0 12px 32px rgba(43, 23, 18, 0.08);
    padding: 28px 32px 24px;
  }
}

.topo { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.topo .centro { display: flex; justify-content: center; }
.topo .direita { display: flex; justify-content: flex-end; }
.logo { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; }
.logo.menor { width: 64px; height: 64px; }
.logo.maior { width: 112px; height: 112px; }

.idioma {
  height: 44px; padding: 0 10px; border: 1px solid var(--borda); border-radius: 22px; background: #fff;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--texto);
}

.cabecalho { display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; }
h1 { margin: 0; font-weight: 600; font-size: 30px; line-height: 1.1; color: var(--accent); }
.subtitulo { margin: 0; font-size: 15px; line-height: 1.5; color: var(--texto2); }
.subtitulo strong { color: var(--texto); }

form { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.campo { display: flex; flex-direction: column; gap: 5px; }
.campo label, .rotulo { font-size: 13px; font-weight: 600; }
.campo input, .campo select {
  height: 46px; padding: 0 14px; border: 1px solid var(--borda); border-radius: 10px; background: #fff;
  font: inherit; font-size: 16px; color: var(--texto); width: 100%;
}
.campo input:focus, .campo select:focus, .digitos input:focus, .idioma:focus {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent);
}
.linha-celular { display: flex; gap: 8px; }
.linha-celular select { width: 108px; flex-shrink: 0; padding: 0 8px; font-size: 15px; }
.linha-celular input { flex-grow: 1; min-width: 0; }

.opcoes { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--accent); }
.check .opcional { color: var(--texto3); }

.botao {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 52px; border: none;
  border-radius: 26px; background: var(--accent); color: #fff; font: inherit; font-size: 14px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; cursor: pointer; margin-top: 4px;
}
.botao:hover { background: var(--accent-escuro); color: #fff; }
.botao-contorno {
  display: flex; align-items: center; justify-content: center; height: 48px; border-radius: 24px;
  border: 1.5px solid var(--accent); color: var(--accent); font-size: 14px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
}

.nota { margin: 0; font-size: 12px; line-height: 1.5; color: var(--texto3); text-align: center; }
.erro {
  margin: 0; padding: 10px 12px; border-radius: 10px; background: #FBEAE7; border: 1px solid #E8B4AA;
  color: #8A1F11; font-size: 14px; line-height: 1.4;
}
.aviso-ok {
  margin: 0; padding: 10px 12px; border-radius: 10px; background: #FFF; border: 1px solid var(--borda-cartao);
  color: var(--texto2); font-size: 13px; line-height: 1.4; text-align: center;
}

.voltar {
  display: flex; align-items: center; gap: 6px; min-height: 44px; font-size: 14px; font-weight: 500;
  color: var(--accent); text-decoration: none; align-self: flex-start;
}

.digitos { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.digitos input {
  height: 56px; width: 100%; text-align: center; border: 1px solid var(--borda); border-radius: 10px;
  background: #fff; font: inherit; font-size: 22px; font-weight: 600; color: var(--texto); padding: 0;
}
.reenvio { display: flex; flex-direction: column; gap: 4px; align-items: center; }
.reenvio p { margin: 0; font-size: 14px; color: var(--texto2); }
.link-botao {
  min-height: 44px; padding: 0 12px; border: none; background: transparent; font: inherit; font-size: 14px;
  font-weight: 600; color: var(--accent); cursor: pointer;
}
.link-botao:disabled { color: var(--texto3); cursor: default; }

.cartao {
  display: flex; flex-direction: column; gap: 12px; padding: 20px; background: #fff;
  border: 1px solid var(--borda-cartao); border-radius: 16px;
}
.cartao p { margin: 0 0 4px; font-size: 19px; font-weight: 600; line-height: 1.3; text-align: center; }

.rodape {
  display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: auto; padding-top: 8px;
  font-size: 11px; color: var(--texto3);
}
.rodape img { height: 18px; width: auto; }
