/* Hub — telas de login e placeholder. Reaproveita o design system de ../css/style.css */

[hidden] { display: none !important; }
.hub-body { min-height: 100vh; display: flex; flex-direction: column; }
.hub-main { flex: 1; display: grid; place-items: center; padding-block: clamp(40px, 6vw, 96px); }
.hub-wrap { display: grid; justify-items: center; }

.hub-screen { width: 100%; max-width: 520px; }
.hub-screen.form-card { display: grid; gap: 18px; }
.hub-screen .form { margin-top: 6px; }

.hub-title {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  letter-spacing: -0.02em; line-height: 1.02; font-size: clamp(28px, 4vw, 40px);
}
.hub-title--xl { font-size: clamp(40px, 7vw, 72px); }
.hub-title .accent { color: var(--green); white-space: nowrap; }
.hub-lead { font-size: 15px; color: var(--text-2); max-width: 46ch; }
.hub-lead strong { color: var(--text); font-weight: 500; }

.kicker--amber { color: var(--amber); }
.kicker--amber::before { background: var(--amber); }

/* Campo do código: mono, espaçado, grande */
.field input.hub-code {
  font-family: var(--font-mono); font-size: 28px; font-weight: 600; letter-spacing: 0.4em;
  text-align: center; padding-left: calc(18px + 0.4em);
}
.field input.hub-code::placeholder { letter-spacing: 0.4em; color: var(--text-3); opacity: 0.5; }

.hub-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.linklike { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; padding: 0; }
.linklike:hover { color: var(--text); }
.linklike[disabled] { opacity: 0.5; text-decoration: none; cursor: default; }

.form__status.ok { color: var(--green); }

.hub-status { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.08em; color: var(--text-3); }
.hub-status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }

/* Header logado */
.hub-user { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); padding: 0 6px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) { .hub-user { display: none !important; } }

/* Tela "em breve" */
.hub-soon { max-width: 720px; display: grid; gap: 22px; justify-items: start; text-align: left; }
.hub-modules { display: grid; gap: 8px; width: 100%; margin-top: 8px; }
.hub-modules li {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface);
}
.hub-modules__n { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; color: var(--text-3); }
.hub-modules__name { font-weight: 600; flex: 1; }
.chip { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; padding: 4px 9px; border-radius: 6px; border: 1px solid var(--line); text-transform: uppercase; }
.chip--build { color: var(--amber); border-color: rgba(255,200,87,0.3); background: rgba(255,200,87,0.06); }
.chip--live { color: var(--green); border-color: var(--line-green); background: var(--green-soft); }
.hub-ctas { display: grid; gap: 12px; justify-items: start; margin-top: 6px; }

.hub-footer { padding-block: var(--space-5); }
.hub-footer .footer__legal { margin-top: 0; }
