/* Portal do visitante: mesmo visual da tela de login do painel MCP (Click Informática) */
:root {
  --orange: #f26522;
  --orange-2: #ff8a3d;
  --bg: #0d0f14;
  --panel: #161922;
  --line: #2a2f3c;
  --field: #0f1218;
  --ink: #f3f4f7;
  --ink-2: #b7bcc8;
  --ink-3: #848b9b;
  --error: #ff6b6b;
  --good: #3fcf7f;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  min-height: 100vh; display: grid; place-items: center; padding: 24px 16px;
  background:
    radial-gradient(900px 600px at 15% 20%, rgba(242, 101, 34, .22), transparent 60%),
    radial-gradient(700px 500px at 90% 90%, rgba(242, 101, 34, .12), transparent 60%),
    var(--bg);
  color: var(--ink); font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--orange-2); }

.shell {
  width: 100%; max-width: 920px; display: grid; grid-template-columns: 1.05fr 1fr;
  background: var(--panel); border: 1px solid var(--line); border-radius: 24px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}
.shell.doc { grid-template-columns: 1fr; max-width: 760px; }

.hero { position: relative; min-height: 600px; overflow: hidden; background: #0b0b0c; }
.hero .fundo {
  position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); object-fit: cover;
  filter: blur(28px) brightness(.7); opacity: .9;
}
.mascote {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; display: block;
  -webkit-mask-image: linear-gradient(90deg, transparent 8%, #000 22%, #000 78%, transparent 92%);
          mask-image: linear-gradient(90deg, transparent 8%, #000 22%, #000 78%, transparent 92%);
  animation: float 6s ease-in-out infinite;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent 70%, var(--panel)), linear-gradient(180deg, transparent 75%, rgba(0, 0, 0, .35));
}
.bubble {
  position: absolute; z-index: 2; bottom: 28px; left: 22px; max-width: 240px;
  background: #fff; color: #15171d; padding: 12px 16px; border-radius: 4px 18px 18px 18px; font-weight: 600; line-height: 1.35;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35); animation: pop .5s .2s both;
}
.bubble small { display: block; font-weight: 500; color: #5a6070; margin-top: 2px; }
@keyframes float { 0%, 100% { transform: scale(1.02) translateY(0); } 50% { transform: scale(1.02) translateY(-6px); } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }

.form-side { padding: 44px 40px; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 44px; height: 44px; border-radius: 50%; }
.brand b { font-size: 20px; letter-spacing: .02em; }
.brand b span { color: var(--orange); }
.brand small { display: block; color: var(--ink-3); font-size: 12px; }
h1 { margin: 0; font-size: 28px; letter-spacing: -.02em; line-height: 1.15; }
.lead { margin: 6px 0 0; color: var(--ink-2); }

form { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-size: 13px; color: var(--ink-2); font-weight: 600; }
.field { position: relative; display: block; }
.show {
  position: absolute; right: 6px; top: 6px; height: 36px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent;
  color: var(--ink-3); cursor: pointer; font: inherit; font-size: 13px;
}
.show:hover { color: var(--ink); }
input[type=text], input[type=tel], input[type=password] {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--field);
  color: var(--ink); font: inherit; font-size: 16px; outline: none; transition: border-color .15s, box-shadow .15s;
}
input[type=text]:focus, input[type=tel]:focus, input[type=password]:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(242, 101, 34, .25); }
input.codigo { height: 58px; font-size: 26px; letter-spacing: .45em; text-align: center; font-weight: 700; }

.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--ink-2); font-size: 14px; line-height: 1.4; }
.check input { margin: 2px 0 0; width: 20px; height: 20px; flex: none; accent-color: var(--orange); }
.check em { color: var(--ink-3); font-style: normal; }

button.go {
  height: 50px; border: 0; border-radius: 12px; cursor: pointer; font: inherit; font-weight: 700; font-size: 16px; color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--orange-2)); box-shadow: 0 10px 24px rgba(242, 101, 34, .35);
  transition: transform .1s, filter .15s; margin-top: 4px;
}
button.go:hover { filter: brightness(1.06); }
button.go:active { transform: translateY(1px); }

.msg { border-radius: 12px; padding: 12px 14px; font-size: 14px; background: rgba(255, 107, 107, .12); color: var(--error); border: 1px solid rgba(255, 107, 107, .35); }
.msg p { margin: 2px 0; }
.ok { border-radius: 12px; padding: 14px; background: rgba(63, 207, 127, .1); border: 1px solid rgba(63, 207, 127, .35); color: var(--ink); }
.ok b { color: var(--good); }
.teste { border-radius: 12px; padding: 12px; text-align: center; background: rgba(242, 101, 34, .1); border: 1px dashed rgba(242, 101, 34, .55); color: var(--ink-2); font-size: 13px; }
.teste strong { display: block; color: var(--ink); font-size: 24px; letter-spacing: .3em; margin-top: 4px; }
.foot { color: var(--ink-3); font-size: 12px; }

/* termos e privacidade */
.texto-legal { color: var(--ink-2); }
.texto-legal h2 { color: var(--ink); font-size: 16px; margin: 22px 0 6px; }
.texto-legal p { margin: 0 0 8px; }
.texto-legal table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 6px 0; }
.texto-legal th, .texto-legal td { border: 1px solid var(--line); padding: 8px; text-align: left; vertical-align: top; }
.texto-legal th { color: var(--ink); background: var(--field); }
.tabela-rolagem { overflow-x: auto; }

@media (max-width: 760px) {
  body { padding: 12px; place-items: start center; }
  .shell { grid-template-columns: 1fr; max-width: 440px; }
  .hero { min-height: 190px; }
  .hero::after { background: linear-gradient(180deg, transparent 65%, var(--panel)); }
  .mascote { object-fit: cover; object-position: 70% 18%; -webkit-mask-image: none; mask-image: none; }
  .hero .fundo { display: none; }
  .bubble { bottom: 18px; left: 14px; max-width: 190px; font-size: 14px; padding: 10px 12px; }
  .form-side { padding: 24px 20px 28px; gap: 18px; }
  h1 { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) { .mascote, .bubble { animation: none; } }
.nota { color: var(--ink-3); font-size: 12px; }
.slogan { letter-spacing: .06em; text-transform: uppercase; font-size: 11px; color: var(--ink-2); }
.slogan em { font-style: normal; color: var(--orange); }

/* CLICKFI: logo no lugar do mascote */
.hero { display: flex; align-items: center; justify-content: center; background:
  radial-gradient(520px 380px at 0% 0%, rgba(242, 101, 34, .35), transparent 70%),
  radial-gradient(420px 320px at 100% 100%, rgba(242, 101, 34, .22), transparent 70%), #0b0b0c; }
.logo-hero { position: relative; z-index: 1; width: 92%; max-width: 520px; height: auto; margin-bottom: 70px; }
.brand b span { background: linear-gradient(180deg, #ffb24a, #f26522); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 760px) { .logo-hero { width: 78%; margin-bottom: 40px; } }
