/* NC Zoning Academy: lock / standby screen (pre-boot landing).
 * Same house style as boot.css: navy ground, cyan halo, sharp corners, caps.
 * References the semantic tokens in theme.css only; no hardcoded colour.
 */

.lock-screen {
  /* A landing page: one paragraph of prose and a broadcast feed. Body runs
     smaller than a lesson because nobody reads this for twenty minutes. */
  --fs-title:     34px;   /* wordmark */
  --fs-heading:   20px;   /* clock */
  --fs-body:      15px;   /* the lede under the wordmark */
  --fs-secondary: 13.5px; /* broadcast message bodies */
  --fs-ui:        15px;   /* [ LOGIN ] */
  --fs-label:     12px;   /* panel + message titles */
  --fs-micro:     10px;   /* tags, dates, hints */

  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--bg);
  z-index: var(--z-view);
  padding: var(--frame-gutter) var(--space-6xl);
  overflow-x: hidden;
  overflow-y: auto; /* grid centering scrolls cleanly when content is tall */
}

/* cyan halo, anchored slightly below the top edge */
.lock-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 12%, rgb(from var(--primary) r g b / 0.08), transparent 62%);
}

/* thin scan line across the very top of the frame */
.lock-topline {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0.5;
}

.lock-stack {
  position: relative;
  width: 560px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.lock-logo {
  height: 72px;
  width: auto;
  display: block;
  margin: 0 0 var(--space-5xl);
  filter: brightness(0) invert(1) drop-shadow(0 0 14px rgb(from var(--primary) r g b / 0.45));
}

.lock-wordmark {
  margin: 0;
  font-family: var(--font-identity);
  font-weight: 400;
  font-size: var(--fs-title);
  letter-spacing: var(--tracking-mid);
  line-height: 1;
  color: var(--text);
}

.lock-sub {
  margin-top: var(--space-md);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: var(--tracking-wide);
  color: var(--muted);
}

/* plain-language "what this is" line */
.lock-desc {
  max-width: 440px;
  margin: var(--space-3xl) 0 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--text-soft);
  text-wrap: pretty;

  & strong { color: var(--text); font-weight: 600; }
}

/* SYSTEM LOCKED status strip + live clock */
.lock-status {
  width: 100%;
  margin: 30px 0 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2xl);
  padding: var(--space-xl) var(--space-4xl);
  border: 1px solid rgb(from var(--primary) r g b / 0.28);
  background: rgb(from var(--bg) r g b / 0.6);
}
.lock-status-left {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  text-align: left;
}
.lock-led {
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  background: var(--secondary);
  box-shadow: 0 0 10px var(--secondary);
}
.lock-status-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-label);
  letter-spacing: var(--tracking-caps);
  color: var(--secondary);
}
.lock-status-note {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: var(--tracking-caps);
  color: var(--placeholder);
}
.lock-clock { text-align: right; }
.lock-clock-time {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: var(--fs-heading);
  letter-spacing: var(--tracking-label);
  line-height: 1;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}
.lock-clock-date {
  margin-top: var(--space-2xs);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: var(--tracking-caps);
  color: var(--muted);
}

/* ---- SYSTEM BROADCAST feed ----
   The panel itself is the SHARED .broadcast component (style.css, issue #10;
   also rendered on the dashboard). Only the lock-context sizing lives here. */
.lock-stack .broadcast {
  width: 100%;
  margin: 0 0 26px;
  text-align: left;
}

/* the one action: solid cyan, matching the boot ACCESS button's ready state */
.lock-login {
  width: 100%;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-ui);
  letter-spacing: var(--tracking-wide);
  padding: var(--space-2xl);
  cursor: pointer;
  background: var(--primary);
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  color: var(--bg);
  box-shadow: 0 0 22px rgb(from var(--primary) r g b / 0.25);
  transition: box-shadow 0.2s;

  &:hover {
    box-shadow: 0 0 34px rgb(from var(--primary) r g b / 0.55);
  }
}

.lock-audio-hint {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-3xl);
  color: var(--placeholder);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: var(--tracking-mid);
}

@media (max-width: 640px) {
  .lock-screen { --fs-title: 26px; } /* re-bind the role, not the call site */
  .lock-status { flex-direction: column; align-items: flex-start; gap: var(--space-lg); }
  .lock-clock { text-align: left; }
  .lock-login { min-height: 52px; }
}
