/* Entrar com Google: botão no padrão do Google (tema escuro), cadastro da primeira vez e Configurações → Conta. */

/* ---------------------------------------------------------------- botão (diretrizes de marca do Google, tema escuro) */
.auth-google { display: flex; flex-direction: column; gap: 12px; }
.auth-or { display: flex; align-items: center; gap: 12px; color: var(--text-3); font: 600 11px/1 var(--font-display); letter-spacing: 0.18em; text-transform: uppercase; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2)); }
.auth-or::after { background: linear-gradient(90deg, var(--line-2), transparent); }

.gsi-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 22px;
  background: #131314;
  border: 1px solid #8e918f;
  color: #e3e3e3;
  font: 500 14px/20px Roboto, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0.25px;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.gsi-btn:hover { background: #1c1c1e; border-color: #a5a8a6; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 1px 3px 1px rgba(0, 0, 0, 0.15); }
.gsi-btn:active { background: #232325; }
.gsi-btn:focus-visible { outline: 2px solid #a8c7fa; outline-offset: 2px; }
.gsi-btn:disabled { opacity: 0.45; cursor: default; box-shadow: none; }
.gsi-logo { display: inline-grid; place-items: center; width: 20px; height: 20px; flex-shrink: 0; }
.gsi-logo svg { width: 20px; height: 20px; display: block; }
.conta-google .gsi-btn { width: auto; padding: 0 16px; }

/* ---------------------------------------------------------------- esperando o navegador do PC (app) */
.google-wait { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(41, 230, 255, 0.06); border: 1px solid rgba(41, 230, 255, 0.22); }
.google-wait .spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--bg-5); border-top-color: #4285f4; animation: spin 0.8s linear infinite; }
.google-wait-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.google-wait-text strong { font-size: 14px; }
.google-wait-text small { font-size: 12.5px; color: var(--text-2); }
.google-wait-slot:empty { display: none; }

/* ---------------------------------------------------------------- primeira vez com a conta Google */
.google-head { display: flex; align-items: center; gap: 14px; }
.google-head h2 { margin: 0; font: 700 22px/1.1 var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; }
.google-head p { margin: 4px 0 0; color: var(--text-2); font-size: 13.5px; overflow-wrap: anywhere; }
.google-head b { color: var(--text); font-weight: 600; }
.google-badge { display: grid; place-items: center; width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.06), 0 8px 24px rgba(0, 0, 0, 0.4); }
.google-badge svg { width: 26px; height: 26px; }
.google-pane { display: flex; flex-direction: column; gap: 15px; }
.google-pane.hidden { display: none; }
.google-card .invite-card.hidden { display: none; }

/* ---------------------------------------------------------------- Configurações → Conta */
.conta-google { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line-2); }
.conta-google.hidden { display: none; }
.conta-google-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.conta-google-row .google-badge { width: 40px; height: 40px; }
.conta-google-row .google-badge svg { width: 22px; height: 22px; }
.conta-google-text { flex: 1 1 200px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.conta-google-text strong { font-size: 14.5px; }
.conta-google-text small { font-size: 12.5px; color: var(--text-2); overflow-wrap: anywhere; }
.conta-google-text b { color: var(--text); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .google-wait .spinner { animation-duration: 2.4s; }
}
