/* Small additions only; the original lecture player and layout are retained. */
[hidden] { display: none !important; }
.login-page { display: grid; place-items: center; min-height: 100vh; padding: 40px 20px; }
.login-layout { width: min(440px, 100%); }
.login-brand { justify-content: center; margin: 0 0 28px; }
.login-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 32px; box-shadow: var(--shadow); }
.login-eyebrow { color: var(--accent); font-size: 10px; letter-spacing: .16em; font-weight: 700; margin: 0 0 12px; }
.login-card h1 { font-size: 30px; font-weight: 600; letter-spacing: -.025em; margin: 0 0 10px; }
.login-intro { margin: 0 0 26px; font-size: 14px; color: var(--muted); line-height: 1.6; }
.login-card label { display: block; font-size: 12px; font-weight: 600; margin: 18px 0 8px; }
.login-card input { width: 100%; padding: 12px 13px; background: #fffefa; border: 1px solid var(--line); border-radius: 9px; color: var(--text); }
.login-card input:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.login-button { width: 100%; background: var(--accent-dark); color: #fff; border: 0; border-radius: 9px; padding: 13px; margin-top: 24px; font-weight: 600; }
button:disabled { cursor: default; opacity: .65; }
.login-notice { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 25px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.login-notice strong { color: var(--text); font-weight: 600; }
.login-notice p { margin: 5px 0 0; }
.login-footer { font-size: 11px; line-height: 1.8; text-align: center; color: var(--muted); margin-top: 22px; }
.login-error { color: #922b22; background: #f9e7e2; padding: 10px; border-radius: 7px; font-size: 12px; }
.account-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: -5px 4px 14px; font-size: 11px; color: var(--muted); }
.account-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.signout-button, .history-more, .retry-question-button { border: 1px solid var(--line); background: var(--surface); color: var(--accent-dark); border-radius: 7px; font: inherit; padding: 6px 10px; }
.student-initials { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); font-size: 14px; font-weight: 600; }
.sidebar-foot span:last-child { line-height: 1.6; }
.history-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 10px; color: var(--muted); padding: 0 2px 9px; }
.history-more { font-size: 10px; }
.exchange-status { margin: 9px 0 0; font-size: 11px; line-height: 1.5; color: var(--muted); }
.exchange-status.is-error { color: #9b4631; }
.retry-question-button { margin: 8px 0 0; font-size: 10px; }
.request-notice { font-size: 11px; line-height: 1.5; color: var(--muted); margin: 0 2px 7px; }
.test-mode-notice { border: 1px solid var(--gold); background: var(--gold-soft); padding: 10px; border-radius: 8px; margin-bottom: 12px; font-size: 12px; }
@media (max-width: 600px) {
  .login-card { padding: 24px; }
  .account-bar { align-items: flex-start; }
  .account-bar > span { max-width: 55%; }
}

.workspace-header { min-width: 0; }
.workspace-header .account-bar { margin: 8px 8px 0; }
.workspace-header .test-mode-notice { margin: 10px 8px 0; }
.history-bar { flex: 0 0 auto; min-height: 24px; padding: 6px 14px; }
.request-notice { flex: 0 0 auto; padding: 0 14px; }
html:has(body.login-page) { height: auto; overflow: auto; }
body.login-page { height: auto; overflow: auto; }

/* Invite-only registration and reset; scoped to the account page. */
.login-card .join-help { margin: 18px 0 0; font-size: 12px; text-align: center; color: var(--muted); }
.login-card .join-help a { color: var(--accent-dark); text-decoration: underline; }
.login-card input[readonly] { background: var(--surface, #faf7ef); color: var(--text); opacity: .85; }
