/* Engenharia IP -- design tokens (placeholder ate definirmos marca/cores oficiais) */
:root {
  --bg: #0b1220;
  --bg-alt: #10192e;
  --fg: #f4f6fb;
  --fg-muted: #9aa5b8;
  --brand: #ff7a1a;      /* laranja placeholder, estilo globo Cloudflare */
  --brand-soft: #ff7a1a33;
  --card: #131c33;
  --border: #223055;
  --danger: #e5484d;
  --ok: #2ecc71;
  --radius: 14px;
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
}

a { color: inherit; }

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%, var(--bg-alt), var(--bg) 60%);
  z-index: 0;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  z-index: 0;
}
.glow-1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, var(--brand), transparent 70%);
  top: -120px; left: -80px;
  animation: drift1 18s ease-in-out infinite alternate;
}
.glow-2 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, #ffffff44, transparent 70%);
  bottom: -140px; right: -60px;
  animation: drift2 22s ease-in-out infinite alternate;
}
@keyframes drift1 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, 40px) scale(1.15); }
}
@keyframes drift2 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-50px, -30px) scale(1.1); }
}

.topbar {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 6vw;
}

.brand {
  display: flex; align-items: baseline; gap: 8px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.5px;
}
.brand .accent { color: var(--brand); }
.brand small {
  font-family: var(--font-body);
  font-size: 0.65rem;
  color: var(--fg-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.nav-actions { display: flex; gap: 12px; }

.btn {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--fg);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: border-color .2s, background .2s;
}
.btn:hover { border-color: var(--brand); }
.btn-solid {
  background: var(--brand);
  border-color: var(--brand);
  color: #1a0f05;
  font-weight: 600;
}
.btn-solid:hover { filter: brightness(1.08); }

.hero-content {
  position: relative; z-index: 2;
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 0 6vw 6vh;
}

.eyebrow {
  color: var(--brand);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin-bottom: 18px;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.1;
  max-width: 820px;
  margin: 0 0 20px;
}

.subtitle {
  color: var(--fg-muted);
  max-width: 560px;
  font-size: 1.05rem;
  margin-bottom: 36px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
}

.field { text-align: left; margin-bottom: 16px; }
.field label {
  display: block; font-size: 0.8rem; color: var(--fg-muted); margin-bottom: 6px;
}
.field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0d1526;
  color: var(--fg);
  font-size: 0.95rem;
}
.field input:focus { outline: none; border-color: var(--brand); }

.field-senha { position: relative; }
.field-senha input { padding-right: 44px; }
.olho {
  position: absolute;
  right: 12px; top: 38px;
  background: none; border: none; cursor: pointer;
  color: var(--fg-muted); font-size: 0.8rem;
  padding: 4px;
}
.olho:hover { color: var(--fg); }

.regra-senha {
  font-size: 0.75rem;
  color: var(--fg-muted);
  margin: -8px 0 16px;
  line-height: 1.4;
}

.form-links {
  display: flex; justify-content: space-between;
  font-size: 0.82rem; color: var(--fg-muted); margin-top: 14px;
}
.form-links a { color: var(--brand); text-decoration: none; }

.msg {
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.88rem;
  margin-top: 16px;
  display: none;
}
.msg.show { display: block; }
.msg.ok { background: #2ecc7122; border: 1px solid var(--ok); color: var(--ok); }
.msg.err { background: #e5484d22; border: 1px solid var(--danger); color: var(--danger); }

footer.footnote {
  position: relative; z-index: 2;
  text-align: center; padding: 20px; color: var(--fg-muted); font-size: 0.75rem;
}

/* HUB */
.hub-wrap { max-width: 960px; margin: 0 auto; padding: 60px 6vw; }
.modules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.module {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  cursor: pointer;
  transition: border-color .2s, transform .2s;
  position: relative;
}
.module:hover { border-color: var(--brand); transform: translateY(-2px); }
.module.locked { opacity: 0.55; }
.module h3 { margin: 0 0 8px; font-family: var(--font-display); }
.module p { color: var(--fg-muted); font-size: 0.88rem; margin: 0; }
.lock-badge {
  position: absolute; top: 16px; right: 16px;
  font-size: 0.7rem; color: var(--fg-muted);
  border: 1px solid var(--border); padding: 3px 8px; border-radius: 999px;
}
.lock-badge.pendente { color: var(--brand); border-color: var(--brand); }

.empresa-check {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.85rem; color: var(--fg-muted);
  margin-bottom: 10px;
}

.modulo-acao { margin-top: 14px; display: flex; align-items: center; gap: 10px; }
.modulo-acao label { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--fg-muted); }
.modulo-acao button {
  border: 1px solid var(--brand); background: transparent; color: var(--brand);
  padding: 6px 14px; border-radius: 999px; font-size: 0.8rem; cursor: pointer;
}
.modulo-acao button:hover { background: var(--brand-soft); }
