/*
 * Portal captivo — Plataforma de WiFi Marketing da Ligeiro.
 *
 * CSS autossuficiente, sem nenhum recurso externo (CDN, Google Fonts):
 * antes de autenticar, o aparelho só enxerga o próprio portal por causa
 * do walled garden. Tudo precisa ser servido pela própria aplicação.
 *
 * Cores e fonte: identidade visual da Ligeiro (azul #0B3D91, Poppins).
 */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --azul: #0B3D91;
  --azul-escuro: #082C6B;
  --azul-claro: #EEF2FB;
  --cinza: #595959;
  --fundo: #F4F6FA;
}

body {
  /* Poppins é a fonte da marca; se o aparelho não a tiver, cai no stack do sistema. */
  font-family: 'Poppins', 'Segoe UI', Roboto, system-ui, -apple-system, sans-serif;
  background: var(--fundo);
  color: #1a1a1a;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.cartao {
  background: #fff;
  width: 100%;
  max-width: 420px;
  border-radius: 16px;
  box-shadow: 0 6px 28px rgba(11, 61, 145, 0.12);
  padding: 32px 24px;
  text-align: center;
}

/* --- Marca --- */
.marca { margin-bottom: 24px; text-align: center; }

.marca-logo {
  display: block;
  width: 200px;
  max-width: 70%;
  height: auto;
  margin: 0 auto;
}

/* --- Textos --- */
.titulo {
  font-size: 22px;
  font-weight: 600;
  color: var(--azul);
  margin-bottom: 8px;
}

.slogan {
  font-size: 14px;
  color: var(--cinza);
  margin-bottom: 24px;
}

.texto {
  font-size: 16px;
  margin-bottom: 20px;
}

.ajuda {
  font-size: 13px;
  color: var(--cinza);
  margin-top: 20px;
}

/* --- Botões (grandes e simples, pensados para uso no celular) --- */
.opcoes {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.botao {
  display: block;
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.05s ease;
}

.botao:active { transform: scale(0.99); }

.botao-primario {
  background: var(--azul);
  color: #fff;
}
.botao-primario:hover { background: var(--azul-escuro); }

.botao-secundario {
  background: #fff;
  color: var(--azul);
  border: 2px solid var(--azul);
  margin-top: 4px;
}
.botao-secundario:hover { background: var(--azul-claro); }

/* --- Formulário (login do cliente) --- */
.formulario {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.campo {
  width: 100%;
  padding: 14px;
  border: 1px solid #CDD5E0;
  border-radius: 10px;
  font-size: 16px; /* 16px evita o zoom automático no iOS ao focar o campo */
  font-family: inherit;
}

.campo:focus {
  outline: 2px solid var(--azul);
  border-color: var(--azul);
}

/* --- Planos (radio) e consentimento --- */
.planos {
  border: 1px solid #CDD5E0;
  border-radius: 10px;
  padding: 12px;
  margin: 4px 0;
}

.planos legend {
  font-size: 13px;
  font-weight: 600;
  color: var(--cinza);
  padding: 0 6px;
}

.opcao-radio,
.consentimento {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
  font-size: 14px;
  padding: 6px 0;
}

.opcao-radio input,
.consentimento input {
  margin-top: 3px;
  flex-shrink: 0;
}

/* --- Documento (Termo de Uso / Política de Privacidade) --- */
.documento {
  text-align: left;
  font-size: 14px;
  line-height: 1.5;
  color: #333333;
  max-height: 60vh;
  overflow-y: auto;
  border: 1px solid #CDD5E0;
  border-radius: 10px;
  padding: 14px;
  margin: 12px 0;
}

/* --- QR Code do PIX --- */
.qrcode {
  display: block;
  width: 220px;
  max-width: 100%;
  height: auto;
  margin: 16px auto;
  border: 1px solid #CDD5E0;
  border-radius: 10px;
}

/* --- Sucesso (tela pós-pagamento ou pós-login) --- */
.sucesso-box {
  background: #ECFDF5;
  border: 1px solid #6EE7B7;
  border-radius: 12px;
  padding: 20px 16px;
  margin-bottom: 16px;
  text-align: center;
}

.sucesso-icone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #10B981;
  color: #fff;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1;
}

.sucesso-titulo {
  font-size: 22px;
  font-weight: 600;
  color: #065F46;
  margin-bottom: 8px;
}

.sucesso-tempo {
  font-size: 15px;
  color: #047857;
  margin: 0;
}

/* --- Avisos --- */
.nota-dev {
  font-size: 13px;
  color: var(--cinza);
  background: #FFF8E1;
  border: 1px solid #FFE082;
  border-radius: 10px;
  padding: 12px;
  margin: 16px 0;
}

.aviso-erro {
  font-size: 14px;
  color: #B00020;
  background: #FDECEC;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 16px;
}

/* --- Rodapé --- */
.rodape {
  margin-top: 20px;
  font-size: 12px;
  color: var(--cinza);
  text-align: center;
}
