/* public/styles.css — colours, font and shapes copied from the Zenith LMS (zenith-lms-frontend tailwind.config.js and the log-in page). */
@font-face { font-family: "Visby"; src: url("/fonts/VisbyCF-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Visby"; src: url("/fonts/VisbyCF-Medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Visby"; src: url("/fonts/VisbyCF-SemiBold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Visby"; src: url("/fonts/VisbyCF-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }

:root {
  --blue: #3777FF; --blue-dark: #2459d6; --blue-soft: #EBF1FF; --teal: #42C3A7;
  --ink: #101828; --ink-3: #344054; --muted: #667085; --line: #D9D9D9; --bg: #F5F5F5;
  --green: #17A653; --red: #DC2626;
  font-family: "Visby", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; }
#app { min-height: 100vh; }
h1 { font-size: 1.875rem; font-weight: 700; letter-spacing: -.02em; margin: 0 0 4px; }
h2 { font-size: 1.125rem; font-weight: 700; margin: 0 0 8px; display: flex; align-items: center; gap: 10px; }
h3 { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 18px 0 6px; }
p { line-height: 1.55; }
.lead { color: var(--muted); font-weight: 500; margin: 0 0 20px; }
.error { color: var(--red); font-weight: 500; }

label { display: block; margin: 16px 0; font-size: .9rem; font-weight: 600; color: var(--ink-3); }
input, textarea {
  display: block; width: 100%; margin-top: 6px; font: inherit; font-size: 1rem; font-weight: 400; color: var(--ink);
  padding: 12px 14px; background: #fff; border: 1px solid #EAECF0; border-radius: 8px; box-shadow: 0 1px 2px #1018280d;
}
textarea { resize: vertical; line-height: 1.5; }
input:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px #3777ff33; }
::placeholder { color: #98A2B3; }

.btn {
  display: block; width: 100%; margin-top: 20px; font: inherit; font-size: 1.05rem; font-weight: 500; color: #fff;
  padding: 12px 20px; background: var(--blue); border: 0; border-radius: 999px; cursor: pointer;
}
.btn:hover { background: var(--blue-dark); }
.btn:disabled { opacity: .65; cursor: wait; }
.btn:focus-visible, .btn-link:focus-visible, .btn-ghost:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.btn-link { display: block; margin: 12px auto 0; font: inherit; font-size: .95rem; color: var(--blue); background: none; border: 0; padding: 8px; cursor: pointer; }
.btn-ghost { font: inherit; font-size: .95rem; font-weight: 500; color: var(--ink-3); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; cursor: pointer; }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }

/* Log-in screens: the LMS split layout. The illustration panel shows on wide screens only. */
.auth { display: flex; min-height: 100vh; }
.auth-form { flex: 1; display: flex; flex-direction: column; background: var(--bg); padding: 0 20px; }
.auth-box { flex: 1; display: flex; flex-direction: column; justify-content: center; width: 100%; max-width: 360px; margin: 0 auto; padding: 48px 0 24px; text-align: center; }
.auth-box form, .auth-box .error { text-align: left; }
.auth-logo { margin: 0 auto 16px; }
.auth-form footer { padding: 0 8px 16px; color: var(--muted); font-size: .95rem; }
.auth-art { flex: 1; display: none; align-items: center; justify-content: center; background: var(--teal); }
.auth-art img { width: 90%; max-width: 640px; height: auto; }
@media (min-width: 768px) { .auth-art { display: flex; } }

/* Screens after log-in. */
.bar { position: sticky; top: 0; z-index: 1; background: #fff; border-bottom: 1px solid #EAECF0; }
.bar-in { max-width: 760px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.1rem; }
.page { max-width: 760px; margin: 0 auto; padding: 28px 16px 64px; }
.card { background: #fff; border: 1px solid #EAECF0; border-radius: 16px; padding: 20px; margin: 16px 0; box-shadow: 0 4px 12px #1018280f; }
.card > p:first-of-type { margin-top: 0; }
.pill { font-size: .8rem; font-weight: 600; color: var(--blue); background: var(--blue-soft); border-radius: 999px; padding: 3px 10px; }
.pill.full { color: var(--green); background: #E7F6ED; }
.actions .btn { max-width: 360px; margin-left: auto; margin-right: auto; }

.topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.topic { display: flex; align-items: center; gap: 10px; margin: 0; padding: 14px; font-weight: 500; color: var(--ink);
  background: #fff; border: 1px solid #EAECF0; border-radius: 12px; cursor: pointer; }
.topic:hover { border-color: var(--blue); }
.topic input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--blue); box-shadow: none; }
.topic:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
#topics-form .btn { max-width: 360px; }

.score { text-align: center; }
.score-label { margin: 0; color: var(--muted); font-weight: 600; }
.score-num { margin: 4px 0 12px; font-size: 2.5rem; font-weight: 700; }
.meter { height: 10px; background: #EAECF0; border-radius: 999px; overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--blue); border-radius: 999px; }
.answer { background: var(--bg); padding: 12px; border-radius: 8px; margin: 0; }
.example { background: var(--blue-soft); padding: 12px; border-radius: 8px; margin: 0; }
.points { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.points ul { margin: 0; padding: 0; list-style: none; }
.points li { position: relative; padding-left: 24px; margin: 6px 0; line-height: 1.45; }
.points .hit li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.points .miss li::before { content: "✗"; position: absolute; left: 0; color: var(--red); font-weight: 700; }
.none { color: var(--muted); margin: 6px 0; }
@media (max-width: 560px) { .points { grid-template-columns: 1fr; } h1 { font-size: 1.6rem; } .brand { font-size: 1rem; } }
