/* Interface IA Eurotech — identidade visual (azul + losangos) */
:root {
  --azul: #0a3d91;
  --azul-escuro: #062a66;
  --azul-claro: #2f6fd6;
  --cinza: #f4f6fb;
  --texto: #1b2430;
  --borda: #dde3ee;
  --verde: #1f9d57;
}
* { box-sizing: border-box; }
html, body {
  margin: 0; height: 100%;
  font-family: "Segoe UI", system-ui, Arial, sans-serif;
  color: var(--texto); background: var(--cinza);
}
.losango { color: var(--azul-claro); letter-spacing: 2px; }

/* faixa curva azul do topo */
.topo {
  background: linear-gradient(135deg, var(--azul) 0%, var(--azul-escuro) 100%);
  color: #fff; padding: 18px 24px;
  border-bottom-left-radius: 40px;
  display: flex; align-items: center; justify-content: space-between;
}
.topo .marca { font-weight: 700; font-size: 17px; letter-spacing: .5px; }
.topo .marca small { font-weight: 400; opacity: .85; display: block; font-size: 11px; }
.topo .quem { font-size: 13px; text-align: right; opacity: .95; }
.topo .quem b { display: block; }
.topo a.sair { color: #cfe0ff; font-size: 12px; text-decoration: none; }
.topo a.sair:hover { text-decoration: underline; }

/* ─── Login ─── */
.login-wrap {
  max-width: 440px; margin: 8vh auto; padding: 0 16px;
}
.cartao {
  background: #fff; border: 1px solid var(--borda); border-radius: 16px;
  padding: 28px; box-shadow: 0 10px 40px rgba(10,61,145,.08);
}
.logo-grande { text-align: center; margin-bottom: 8px; }
.logo-grande .d { font-size: 34px; color: var(--azul-claro); letter-spacing: 4px; }
.logo-grande h1 { margin: 6px 0 0; font-size: 20px; color: var(--azul); }
.logo-grande p { margin: 2px 0 0; font-size: 12px; color: #6b7689; }
label { display: block; font-size: 13px; font-weight: 600; margin: 14px 0 4px; }
input, select {
  width: 100%; padding: 11px 12px; font-size: 15px;
  border: 1px solid var(--borda); border-radius: 9px; background: #fff;
}
input:focus, select:focus { outline: 2px solid var(--azul-claro); border-color: var(--azul-claro); }
button.principal {
  width: 100%; margin-top: 18px; padding: 13px; font-size: 15px; font-weight: 700;
  color: #fff; background: var(--azul); border: 0; border-radius: 10px; cursor: pointer;
}
button.principal:hover { background: var(--azul-escuro); }
.link {
  display: block; text-align: center; margin-top: 14px;
  font-size: 13px; color: var(--azul-claro); cursor: pointer; text-decoration: none;
}
.link:hover { text-decoration: underline; }
.erro { color: #c0392b; font-size: 13px; margin-top: 10px; text-align: center; }

/* Botão "Entrar com Google" */
.btn-google {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 12px; margin-top: 4px;
  background: #fff; color: #3c4043; font-size: 15px; font-weight: 600;
  border: 1px solid #dadce0; border-radius: 10px; cursor: pointer; text-decoration: none;
}
.btn-google:hover { background: #f7f8fa; box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.btn-google .g {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: conic-gradient(from -45deg, #ea4335 0 25%, #fbbc05 0 50%, #34a853 0 75%, #4285f4 0);
  color: #fff; font-weight: 800; font-size: 13px;
}
.ou { text-align: center; margin: 16px 0 6px; position: relative; }
.ou span { background: #fff; padding: 0 10px; color: #9aa4b5; font-size: 12px; position: relative; z-index: 1; }
.ou::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--borda); }
.bemvindo { text-align: center; font-size: 15px; margin: 6px 0 2px; }
.bemvindo b { color: var(--azul); }
.cargo-tag {
  display: inline-block; background: var(--cinza); color: var(--azul);
  border: 1px solid var(--borda); border-radius: 20px;
  padding: 3px 12px; font-size: 12px; margin-top: 6px;
}

/* ─── Chat ─── */
.chat-layout { display: flex; flex-direction: column; height: 100vh; }
.chips {
  display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 24px;
  background: #fff; border-bottom: 1px solid var(--borda);
}
.chip {
  border: 1px solid var(--borda); background: var(--cinza); border-radius: 20px;
  padding: 6px 12px; font-size: 13px; cursor: pointer; color: var(--texto);
  display: inline-flex; align-items: center; gap: 6px; transition: .12s;
}
.chip:hover { background: #e9f0fc; border-color: var(--azul-claro); }
.mensagens { flex: 1; overflow-y: auto; padding: 22px 24px; }
.msg { max-width: 760px; margin: 0 auto 16px; display: flex; gap: 10px; }
.msg .bolha {
  padding: 12px 15px; border-radius: 14px; font-size: 15px; line-height: 1.5;
  white-space: pre-wrap; word-wrap: break-word;
}
.msg.usuario { justify-content: flex-end; }
.msg.usuario .bolha { background: var(--azul); color: #fff; border-bottom-right-radius: 4px; }
.msg.ia .bolha { background: #fff; border: 1px solid var(--borda); border-bottom-left-radius: 4px; }
.msg .ava {
  width: 30px; height: 30px; border-radius: 50%; flex: 0 0 30px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; background: var(--azul-claro); color: #fff;
}
.acao { max-width: 760px; margin: 0 auto 10px; font-size: 13px; color: #6b7689; font-style: italic; }
.barra {
  border-top: 1px solid var(--borda); background: #fff; padding: 14px 24px;
}
.barra .linha { max-width: 760px; margin: 0 auto; display: flex; gap: 10px; }
.barra textarea {
  flex: 1; resize: none; padding: 12px; font-size: 15px; font-family: inherit;
  border: 1px solid var(--borda); border-radius: 12px; max-height: 120px;
}
.barra button {
  background: var(--azul); color: #fff; border: 0; border-radius: 12px;
  padding: 0 20px; font-size: 15px; font-weight: 700; cursor: pointer;
}
.barra button:disabled { opacity: .5; cursor: default; }
.dica { text-align: center; font-size: 11px; color: #9aa4b5; margin-top: 8px; }
