/* Forge CE — shared platform styles */
:root {
  --charcoal: #1a1a1f;
  --charcoal-mid: #242429;
  --orange: #f5622d;
  --orange-hot: #ff7a45;
  --white: #ffffff;
  --off-white: #f4f2ee;
  --muted: #9a9a9a;
  --card-bg: #1e1e24;
  --green: #4ade80;
  --red: #f87171;
  --nav-h: 72px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--charcoal);
  color: var(--white);
  min-height: 100vh;
}

/* Banner */
.forge-nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h);
  background: rgba(26,26,31,0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(245,98,45,0.15);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; z-index: 1000;
}
.forge-logo {
  font-family: 'Bebas Neue', sans-serif; font-size: 1.7rem; letter-spacing: 0.05em;
  color: var(--white); text-decoration: none; display: flex; align-items: center; gap: 8px;
}
.forge-logo span { color: var(--orange); }
.forge-logo-mark {
  width: 32px; height: 32px; background-image: url('../favicon.webp');
  background-size: cover; background-position: center;
}
.forge-nav-right { display: flex; align-items: center; gap: 1rem; }
.forge-nav-link {
  font-size: 0.88rem; font-weight: 500; color: var(--muted);
  text-decoration: none; white-space: nowrap;
}
.forge-nav-link:hover { color: var(--off-white); }
.forge-nav-link.is-current { color: var(--orange); font-weight: 600; cursor: default; }
/* The nav is position:fixed, so anything that overflows is silently clipped
   rather than showing up as page scroll — it has to be measured, not eyeballed.
   Shed decoration in order of expendability: the greeting first, then the
   wordmark (the mark still carries the brand and still links home). */
@media (max-width: 720px) {
  .forge-nav-right { gap: 0.75rem; }
  .forge-greeting { display: none; }
}
@media (max-width: 640px) {
  .forge-nav { padding: 0 3%; }
  .forge-nav-right { gap: 0.6rem; }
  .forge-nav-link { font-size: 0.8rem; }
  .forge-btn, .forge-btn-ghost { padding: 0.5rem 0.8rem; font-size: 0.8rem; }
  /* Collapse the wordmark to the mark: "FORGE" is a bare text node inside the
     anchor, so zero the anchor's font and restore it on the mark. */
  .forge-logo { font-size: 0; gap: 0; }
  .forge-logo span:not(.forge-logo-mark) { display: none; }
}
.forge-greeting {
  font-family: 'Bebas Neue', sans-serif; letter-spacing: 0.04em;
  font-size: 1.05rem; color: var(--off-white);
}
.forge-btn, .forge-btn-ghost {
  padding: 0.55rem 1.3rem; border-radius: 6px; font-weight: 600; font-size: 0.88rem;
  cursor: pointer; text-decoration: none; border: none; font-family: inherit;
}
.forge-btn { background: var(--orange); color: var(--white); }
.forge-btn:hover { background: var(--orange-hot); }
.forge-btn-ghost {
  background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.25);
}
.forge-btn-ghost:hover { background: rgba(255,255,255,0.06); }

/* Auth card layout */
.forge-page {
  min-height: 100vh; padding-top: var(--nav-h);
  display: flex; align-items: center; justify-content: center;
}
.auth-card {
  width: 100%; max-width: 420px; margin: 2rem 5%;
  background: var(--card-bg); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px; padding: 2.5rem 2rem;
}
.auth-card h1 {
  font-family: 'Bebas Neue', sans-serif; font-size: 2rem; letter-spacing: 0.03em;
  margin-bottom: 0.4rem;
}
.auth-card .sub { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.5rem; }
.auth-form label {
  display: block; font-size: 0.8rem; color: var(--muted);
  margin: 0.9rem 0 0.3rem;
}
.auth-form input {
  width: 100%; padding: 0.7rem 0.85rem; border-radius: 8px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12);
  color: var(--white); font-size: 0.95rem; font-family: inherit;
}
.auth-form input:focus { outline: none; border-color: var(--orange); }
.auth-form .row2 { display: flex; gap: 0.6rem; }
.auth-form .row2 > div { flex: 1; }
.btn-full {
  width: 100%; margin-top: 1.4rem; padding: 0.8rem; border-radius: 8px;
  background: var(--orange); color: var(--white); border: none;
  font-weight: 600; font-size: 0.95rem; cursor: pointer; font-family: inherit;
}
.btn-full:hover { background: var(--orange-hot); }
.btn-full:disabled { opacity: 0.5; cursor: default; }
.btn-google {
  width: 100%; margin-top: 0.8rem; padding: 0.8rem; border-radius: 8px;
  background: var(--white); color: #1a1a1f; border: none;
  font-weight: 600; font-size: 0.95rem; cursor: pointer; font-family: inherit;
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
}
.btn-google .google-g { width: 18px; height: 18px; flex-shrink: 0; }

/* Apple's Sign in with Apple guidelines require the black-on-white or
   white-on-black lockup with the official mark, at the same visual weight as
   any other sign-in option. */
.btn-apple {
  width: 100%; margin-top: 0.6rem; padding: 0.8rem; border-radius: 8px;
  background: #000000; color: #ffffff; border: 1px solid rgba(255,255,255,0.18);
  font-weight: 600; font-size: 0.95rem; cursor: pointer; font-family: inherit;
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
}
.btn-apple .apple-mark {
  width: 17px; height: 17px; flex-shrink: 0; fill: #ffffff;
  position: relative; top: -1px;
}
.auth-divider {
  display: flex; align-items: center; gap: 0.8rem;
  color: var(--muted); font-size: 0.78rem; margin: 1.2rem 0 0.2rem;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.1);
}
.auth-links { margin-top: 1.3rem; font-size: 0.85rem; color: var(--muted); text-align: center; }
.auth-links a { color: var(--orange); text-decoration: none; }
/* The certificate name is a legal-record field, not another profile detail —
   set it apart from the rest of the form so it does not get skimmed. */
.cert-name-block {
  margin-top: 1.1rem; padding: 0.9rem 1rem;
  background: rgba(245,98,45,0.07); border: 1px solid rgba(245,98,45,0.28);
  border-radius: 8px;
}
.cert-name-block label { margin-top: 0; }
.cert-name-help {
  margin-top: 0.5rem; font-size: 0.76rem; line-height: 1.5; color: var(--muted);
}
.cert-name-status { margin-top: 0.5rem; font-size: 0.76rem; font-weight: 600; }
.cert-name-status.unconfirmed { color: var(--orange-hot); }
.cert-name-status.confirmed { color: var(--green); }

.aana-note {
  margin-top: 1rem; font-size: 0.78rem; color: var(--muted);
  background: rgba(245,98,45,0.06); border-left: 3px solid var(--orange);
  border-radius: 6px; padding: 0.6rem 0.8rem;
}

/* Lead variant — sits above the form as the first thing read, so it carries
   more weight than the same note tucked under a button. */
.aana-note-lead {
  margin: 1.4rem 0 0.4rem;
  font-size: 0.86rem; line-height: 1.5; color: var(--off-white);
  background: rgba(245,98,45,0.12); border-left-width: 4px;
  padding: 0.85rem 1rem;
}
.aana-note-lead .aana-note-label {
  display: block; margin-bottom: 0.25rem;
  font-family: 'Bebas Neue', sans-serif; font-size: 0.9rem;
  letter-spacing: 0.08em; color: var(--orange-hot);
}

/* Alerts (inline messages) */
.alert { margin-top: 1rem; padding: 0.7rem 0.85rem; border-radius: 8px;
  font-size: 0.85rem; display: none; }
.alert.show { display: block; }
.alert-error { background: rgba(248,113,113,0.12); color: var(--red);
  border: 1px solid rgba(248,113,113,0.3); }
.alert-success { background: rgba(74,222,128,0.12); color: var(--green);
  border: 1px solid rgba(74,222,128,0.3); }
.alert-info { background: rgba(245,98,45,0.1); color: var(--orange-hot);
  border: 1px solid rgba(245,98,45,0.25); }

/* Email-verification banner */
.verify-banner {
  position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: rgba(245,98,45,0.15); color: var(--off-white);
  font-size: 0.82rem; text-align: center; padding: 0.5rem 5%;
  z-index: 999; display: none;
}
.verify-banner.show { display: block; }
