/* =====================================================================
   Banco de Questões 8.0 — tela de entrada (login, cadastro, teste grátis)
   Mesmo sistema visual da 7.1: cinzas do sistema, uma cor de ação (azul).
   ===================================================================== */
.bqg-root {
  --g-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "BQ Inter", "Segoe UI", system-ui, sans-serif;
  --g-font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "BQ Inter Display", "BQ Inter", "Segoe UI", system-ui, sans-serif;
  --g-bg: #F2F2F7; --g-surface: #FFFFFF; --g-label: #1D1D1F; --g-label-2: #6E6E73; --g-label-3: #8E8E93;
  --g-sep: rgba(60, 60, 67, .14); --g-fill: rgba(118, 118, 128, .12); --g-fill-2: rgba(118, 118, 128, .08);
  --g-accent: #0071E3; --g-accent-hover: #0077ED; --g-accent-press: #0062C4; --g-accent-text: #0066CC; --g-accent-tint: rgba(0, 113, 227, .10);
  --g-red-text: #D70015; --g-red-tint: rgba(255, 59, 48, .10); --g-green-text: #248A3D; --g-green-tint: rgba(52, 199, 89, .13);
  --g-orange-text: #C93400; --g-orange-tint: rgba(255, 149, 0, .13);
  --g-ease: cubic-bezier(.32, .72, 0, 1);
}
#bq-gate {
  position: fixed; inset: 0; z-index: 2147483000; overflow-y: auto;
  background: var(--g-bg); color: var(--g-label); font-family: var(--g-font);
  -webkit-font-smoothing: antialiased; display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  padding: 32px 16px calc(32px + env(safe-area-inset-bottom)); box-sizing: border-box; transition: opacity .35s var(--g-ease);
  -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
}
/* 8.2: o cartão não pode encolher para caber na tela (no celular cortava o formulário e a tela não rolava) */
#bq-gate > * { flex-shrink: 0; }
#bq-gate > :first-child { margin-top: auto; }
#bq-gate > :last-child { margin-bottom: auto; }
#bq-gate.is-leaving { opacity: 0; pointer-events: none; }
#bq-gate *, #bq-gate *::before, #bq-gate *::after { box-sizing: border-box; }
.bqg-card {
  width: 100%; max-width: 920px; display: grid; grid-template-columns: 1.05fr 1fr;
  background: var(--g-surface); border-radius: 22px; overflow: hidden;
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .06), 0 24px 60px rgba(0, 0, 0, .10);
}
.bqg-card.is-narrow { max-width: 460px; grid-template-columns: 1fr; }
.bqg-card.is-narrow .bqg-hero { display: none; }
.bqg-hero { padding: 44px 40px; background: linear-gradient(160deg, #F7F9FC 0%, #EEF3FA 100%); border-right: 1px solid var(--g-sep); display: flex; flex-direction: column; }
.bqg-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 30px; }
.bqg-mark { width: 48px; height: 48px; display: grid; place-items: center; flex: none; }
.bqg-mark .metri-ico { width: 100%; height: 100%; display: block; filter: drop-shadow(0 5px 12px rgba(0,60,160,.24)); -webkit-user-drag: none; user-select: none; }
.bqg-mark svg { width: 25px; height: 25px; }
.bqg-brand-name { font-family: var(--g-font-display); font-size: 19px; font-weight: 700; letter-spacing: -.015em; }
.bqg-brand-sub { font-size: 13px; color: var(--g-label-2); }
.bqg-hero h1 { font-family: var(--g-font-display); font-size: 31px; line-height: 1.12; letter-spacing: -.025em; font-weight: 700; margin: 0 0 22px; }
.bqg-features { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 14px; }
.bqg-features li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; font-size: 15px; line-height: 1.45; color: #3A3A3C; }
.bqg-features li svg { width: 20px; height: 20px; color: var(--g-accent); margin-top: 1px; }
.bqg-trial { margin-top: auto; font-size: 14px; color: var(--g-label-2); padding-top: 16px; border-top: 1px solid var(--g-sep); }
.bqg-trial b { color: var(--g-label); font-weight: 600; }

.bqg-panel { padding: 40px 38px 34px; display: flex; flex-direction: column; min-height: 520px; }
.bqg-card.is-narrow .bqg-panel { min-height: 0; }
.bqg-title { font-family: var(--g-font-display); font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 6px; }
.bqg-sub { font-size: 15px; color: var(--g-label-2); margin: 0 0 22px; line-height: 1.45; }
.bqg-seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--g-fill); border-radius: 9px; padding: 2px; margin: 0 0 22px; }
.bqg-seg button { border: 0; background: transparent; font: inherit; font-size: 14px; font-weight: 500; color: var(--g-label); height: 32px; border-radius: 7px; cursor: pointer; }
.bqg-seg button.is-on { background: var(--g-surface); box-shadow: 0 3px 8px rgba(0, 0, 0, .12), 0 3px 1px rgba(0, 0, 0, .04); font-weight: 600; }
.bqg-form { display: grid; gap: 12px; }
.bqg-field { display: grid; gap: 5px; }
.bqg-field span { font-size: 13px; color: var(--g-label-2); }
.bqg-field span i { font-style: normal; color: var(--g-label-3); }
.bqg-input {
  width: 100%; height: 44px; border-radius: 10px; border: 1px solid var(--g-sep); background: var(--g-surface);
  padding: 0 13px; font: inherit; font-size: 16px; color: var(--g-label); outline: none; transition: box-shadow .15s, border-color .15s;
}
.bqg-input:focus { border-color: var(--g-accent); box-shadow: 0 0 0 3px rgba(0, 113, 227, .25); }
.bqg-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bqg-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--g-label-2); line-height: 1.45; cursor: pointer; }
.bqg-check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--g-accent); flex: none; }
.bqg-check a, .bqg-link { color: var(--g-accent-text); text-decoration: none; }
.bqg-check a:hover, .bqg-link:hover { text-decoration: underline; }
.bqg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 44px; border-radius: 10px; border: 0;
  padding: 0 18px; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; background: var(--g-fill); color: var(--g-label);
  transition: background .15s, transform .1s; text-decoration: none; width: 100%;
}
.bqg-btn:active { transform: scale(.985); }
.bqg-btn:hover { background: rgba(118, 118, 128, .18); }
.bqg-btn.is-filled { background: var(--g-accent); color: #fff; }
.bqg-btn.is-filled:hover { background: var(--g-accent-hover); }
.bqg-btn.is-filled:active { background: var(--g-accent-press); }
.bqg-btn.is-plain { background: transparent; color: var(--g-accent-text); height: 36px; font-weight: 500; font-size: 15px; }
.bqg-btn.is-plain:hover { background: var(--g-accent-tint); }
.bqg-btn[disabled] { opacity: .5; pointer-events: none; }
.bqg-btn svg { width: 18px; height: 18px; flex: none; }
.bqg-or { display: flex; align-items: center; gap: 12px; color: var(--g-label-3); font-size: 13px; margin: 4px 0; }
.bqg-or::before, .bqg-or::after { content: ""; height: 1px; flex: 1; background: var(--g-sep); }
.bqg-msg { font-size: 14px; line-height: 1.45; border-radius: 10px; padding: 10px 12px; }
.bqg-msg.is-error { background: var(--g-red-tint); color: var(--g-red-text); }
.bqg-msg.is-ok { background: var(--g-green-tint); color: var(--g-green-text); }
.bqg-msg.is-warn { background: var(--g-orange-tint); color: var(--g-orange-text); }
.bqg-msg:empty { display: none; }
.bqg-actions { display: grid; gap: 10px; margin-top: 4px; }
.bqg-spacer { flex: 1; min-height: 12px; }
.bqg-small { font-size: 13px; color: var(--g-label-3); line-height: 1.5; }
.bqg-center { text-align: center; }
.bqg-icon-big { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; margin: 0 0 18px; background: var(--g-accent-tint); color: var(--g-accent); }
.bqg-icon-big.is-orange { background: var(--g-orange-tint); color: var(--g-orange-text); }
.bqg-icon-big svg { width: 30px; height: 30px; }
.bqg-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; min-height: 240px; color: var(--g-label-2); font-size: 15px; text-align: center; }
.bqg-spin { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--g-fill); border-top-color: var(--g-accent); animation: bqg-spin .8s linear infinite; }
@keyframes bqg-spin { to { transform: rotate(360deg); } }
.bqg-bar { width: 220px; height: 5px; border-radius: 3px; background: var(--g-fill); overflow: hidden; }
.bqg-bar > i { display: block; height: 100%; width: 30%; background: var(--g-accent); border-radius: 3px; animation: bqg-bar 1.2s var(--g-ease) infinite; }
@keyframes bqg-bar { 0% { transform: translateX(-100%); } 100% { transform: translateX(340%); } }
.bqg-foot { margin-top: 18px; font-size: 12.5px; color: var(--g-label-3); text-align: center; }
.bqg-foot a { color: var(--g-label-2); text-decoration: none; }
.bqg-foot a:hover { text-decoration: underline; }
.bqg-who { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--g-fill-2); margin: 0 0 18px; font-size: 14px; }
.bqg-who b { font-weight: 600; display: block; }
.bqg-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--g-accent); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 14px; flex: none; }
.bqg-google svg { width: 18px; height: 18px; }

@media (max-width: 820px) {
  .bqg-card { grid-template-columns: 1fr; max-width: 480px; }
  .bqg-hero { border-right: 0; border-bottom: 1px solid var(--g-sep); padding: 28px 26px; }
  .bqg-hero h1 { font-size: 25px; margin-bottom: 16px; }
  .bqg-features { margin-bottom: 14px; }
  .bqg-features li { font-size: 14px; }
  .bqg-panel { padding: 28px 24px; min-height: 0; }
  .bqg-row2 { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  #bq-gate { padding: 14px 10px calc(24px + env(safe-area-inset-bottom)); }
  .bqg-card { border-radius: 18px; }
  .bqg-panel { padding: 22px 18px; }
  .bqg-input { font-size: 16px; }   /* evita o zoom automático do iPhone ao tocar no campo */
}
@media (prefers-reduced-motion: reduce) { #bq-gate, .bqg-spin, .bqg-bar > i { animation: none !important; transition: none !important; } }
