/* =========================================================
   BNC — live classes page
   Inherits the site's tokens from style.css. Only what the
   /live page needs lives here.
   ========================================================= */

.lv-body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  /* The marketing page's decorative field would only distract here.
     This is a room people come to use, not to read. */
  background: var(--bg);
}

.lv-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  max-width: 720px; width: 100%; margin-inline: auto;
}
.lv-top img { height: 24px; width: auto; }
.lv-back {
  font-family: var(--font-d); font-weight: 500; font-size: .88rem;
  color: var(--text-3);
  transition: color 180ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .lv-back:hover { color: var(--cyan); } }

.lv-main {
  flex: 1;
  width: 100%; max-width: 720px;
  margin-inline: auto;
  padding: 32px 20px calc(40px + env(safe-area-inset-bottom));
}

.lv-foot {
  border-top: 1px solid var(--line);
  padding: 20px;
  text-align: center;
}
.lv-foot p { color: var(--text-3); font-size: .86rem; }
.lv-foot a { color: var(--cyan); font-weight: 600; }

/* ---------------------------------------------------------
   CARD
   --------------------------------------------------------- */
.lv-card {
  display: grid; gap: 16px;
  padding: clamp(24px, 5vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  background: var(--surface);
}
.lv-card h1 { font-size: 1.4rem; }
.lv-card h2 { font-size: 1.15rem; }
.lv-sub { color: var(--text-2); font-size: .95rem; }
.lv-muted { color: var(--text-3); font-size: .88rem; }

/* ---------------------------------------------------------
   FORM
   --------------------------------------------------------- */
#authform { display: grid; gap: 8px; }
#authform label {
  font-family: var(--font-d); font-weight: 600; font-size: .86rem;
  margin-top: 8px;
}
#authform input {
  width: 100%; min-height: 48px;
  font-family: var(--font-b); font-size: 1rem; color: var(--text);
  background: #070A1A;
  border: 1px solid var(--line-2);
  border-radius: var(--r-input);
  padding: 12px 14px;
  transition: border-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}
#authform input:focus {
  outline: none; border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 173, 239, .22);
}

.lv-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; width: 100%;
  margin-top: 10px;
  padding: 13px 24px;
  font-family: var(--font-d); font-weight: 600; font-size: 1rem;
  background: var(--cyan); color: var(--on-cyan);
  border: 1px solid transparent; border-radius: var(--r-pill);
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms var(--ease-out);
}
.lv-btn:active { transform: scale(.97); }
.lv-btn:disabled { opacity: .55; transform: none; cursor: default; }
.lv-btn--ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
@media (hover: hover) and (pointer: fine) {
  .lv-btn:not(:disabled):hover { background: var(--cyan-hi); }
  .lv-btn--ghost:not(:disabled):hover { background: rgba(255,255,255,.06); }
}

.lv-link {
  background: none; border: 0; padding: 4px;
  color: var(--text-2); font-size: .9rem; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
@media (hover: hover) and (pointer: fine) { .lv-link:hover { color: var(--cyan); } }

/* ---------------------------------------------------------
   NOTICES
   --------------------------------------------------------- */
.lv-note {
  padding: 13px 16px;
  border-radius: var(--r-input);
  font-size: .91rem;
}
.lv-note--ok  { background: rgba(0,173,239,.10); border: 1px solid rgba(0,173,239,.32); color: var(--cyan-hi); }
.lv-note--bad { background: rgba(255,126,141,.10); border: 1px solid rgba(255,126,141,.35); color: #FF9FAA; }

/* ---------------------------------------------------------
   APPROVAL CODE
   Has to be impossible to miss: he reads it back over WhatsApp
   to find the person and approve them.
   --------------------------------------------------------- */
.lv-code {
  display: grid; gap: 8px; justify-items: center; text-align: center;
  padding: 22px;
  border: 1px dashed rgba(0,173,239,.45);
  border-radius: var(--r-panel);
  background: rgba(0,173,239,.07);
}
.lv-code__k {
  font-family: var(--font-d); font-size: .72rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--text-3);
}
.lv-code__v {
  font-family: var(--font-d); font-weight: 700;
  font-size: 2rem; letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
  color: var(--cyan);
  user-select: all;
}

/* ---------------------------------------------------------
   CLASS LIST
   --------------------------------------------------------- */
.lv-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 20px; margin-bottom: 24px;
}
.lv-head h1 { font-size: 1.4rem; margin-bottom: 4px; }

.lv-list { display: grid; gap: 12px; }
.lv-item {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  background: var(--surface);
}
.lv-item > div { display: grid; gap: 3px; min-width: 0; }
.lv-item__t { font-family: var(--font-d); font-weight: 600; font-size: 1.03rem; }
.lv-item__m { color: var(--text-3); font-size: .84rem; }

/* A class that is actually running should be unmistakable at a glance. */
.lv-item--live {
  border-color: rgba(0,173,239,.45);
  background: linear-gradient(100deg, rgba(0,173,239,.10), var(--surface) 60%);
}
.lv-item--live .lv-item__m { color: var(--cyan); font-weight: 600; }
.lv-item .lv-btn { width: auto; margin: 0; min-height: 42px; padding: 10px 22px; flex: none; }

.lv-wait {
  flex: none;
  font-family: var(--font-d); font-size: .78rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-3);
}

.lv-empty { text-align: center; justify-items: center; }

@media (max-width: 520px) {
  .lv-item { flex-direction: column; align-items: stretch; }
  .lv-item .lv-btn { width: 100%; }
  .lv-wait { text-align: center; }
}
