/* HIVE member app — additions only.
   The visual base is the prototype's own styles.css (served at /design/styles.css).
   Nothing here redefines a prototype component: no .btn, .stat, .post, .tbl, .card,
   .pill or .msg override. What is here is what the prototype never needed — fidelity
   badges, account forms, form results — written with the prototype's tokens so they
   read as the same system, not a second one. */

/* What a screen is: live, partial or stubbed. Not decoration — the card's rule.
   Built on the prototype's .pill geometry and colour rules. */
.fid {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px;
  border-radius: 999px; font-size: 10.5px; font-weight: 600; letter-spacing: .02em;
  border: 1px solid var(--line); color: var(--muted); background: var(--surface-2);
  white-space: nowrap;
}
.fid::before {
  content: ""; width: 6px; height: 6px; flex: 0 0 auto; background: currentColor;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
.fid.live { color: var(--hive-lime); border-color: rgba(184,245,138,.28); background: rgba(184,245,138,.08); }
.fid.partial { color: var(--warn); border-color: rgba(242,196,109,.28); background: rgba(242,196,109,.08); }
.fid.stubbed { color: var(--muted-2); border-color: var(--line); background: var(--surface-2); }

/* Source freshness note in the topbar. Mono, like the prototype's timestamps. */
.src {
  font-family: var(--font-mono); font-size: 10.5px; color: var(--muted-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 34ch;
}
.src.warn { color: var(--warn); }

/* Account forms. The prototype's inputs are .chat-input input / .composer textarea:
   surface-2 fill, var(--line) border, 9–10px radius. These follow that, not a new one. */
.auth-form { display: grid; gap: 9px; margin-top: 10px; }
.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
  width: 100%; padding: 10px 12px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--surface-2);
  color: var(--text); font: inherit; font-size: 13px; outline: none;
}
.auth-form input:focus { border-color: var(--swarm-signal); }
.auth-form label { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.auth-form label input[type="checkbox"] { accent-color: var(--hive-lime); }
.auth-form .btn { justify-self: start; }

/* Create-a-guild / create-a-project forms: same input treatment as above. */
.form { display: grid; gap: 9px; margin-top: 8px; }
.form label {
  display: block; font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 4px;
}
.form input, .form select, .form textarea {
  width: 100%; padding: 9px 12px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--surface-2);
  color: var(--text); font: inherit; font-size: 13px; outline: none;
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--swarm-signal); }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.form .acts { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* A form result. Named .form-msg so it cannot collide with the prototype's .msg
   (a chat message row), which the guild room view uses. */
.form-msg { font-size: 11.5px; font-family: var(--font-mono); color: var(--muted-2); min-height: 16px; }
.form-msg.ok { color: var(--hive-lime); }
.form-msg.err { color: var(--danger); }

@media (max-width: 900px) { .form .row2 { grid-template-columns: 1fr; } }

/* The front door explains the product before it asks for credentials. The three facts
   carry the same fidelity badges the screens do, so the claim is checkable once signed
   in - live means live, stubbed means empty on purpose. */
.login-facts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 18px;
}
.fact {
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface-2);
}
.fact-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-bottom: 6px;
}
.fact-head b { font-size: 12.5px; font-weight: 600; color: var(--text); }
.fact p { margin: 0; font-size: 11.5px; line-height: 1.55; color: var(--muted); }
@media (max-width: 900px) { .login-facts { grid-template-columns: 1fr; } }

/* The login wall. For a signed-out visitor this screen is the whole app: no rail, no
   topbar, no board data. It uses the prototype's brand mark and .card/.auth-form
   language, so it reads as the same system rather than a second one. */
.login-shell {
  min-height: 100vh; display: grid; place-items: center;
  padding: 28px 18px; background: var(--bg);
}
.login-panel { width: min(880px, 100%); }
.login-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.login-head { margin-bottom: 16px; }
.login-head h1 {
  font-family: var(--font-display); font-size: clamp(26px, 4vw, 38px);
  line-height: 1.1; margin: 0 0 10px;
}
.login-head p { margin: 0; max-width: 64ch; color: var(--muted); font-size: 14px; line-height: 1.6; }
.login-forms { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.login-foot { margin: 16px 0 0; max-width: 76ch; color: var(--muted-2); font-size: 11.5px; line-height: 1.6; }
.login-extra { margin-top: 14px; }
@media (max-width: 780px) { .login-forms { grid-template-columns: 1fr; } }
