/* ChiroEDU design system (build spec, "Design system").
   Black and gold = identity. Blue = interaction on white surfaces. Green is reserved for the exam. */
:root {
  --black: #0c0c0d;
  --gold: #c9a227;
  --gold-soft: #e3c766;
  --blue: #1f5fd1;
  --blue-dark: #174aa6;
  --tint: #f2f6fc;
  --ink: #16181d;
  --muted: #5b6270;
  --line: #d5dae3;
  --red: #b3261e;
  --red-bg: #fdecea;
  --ok-bg: #eaf2ff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--tint); color: var(--ink); font-size: 16px; line-height: 1.5; }
[hidden] { display: none !important; }

.split { display: grid; grid-template-columns: minmax(280px, 38%) 1fr; min-height: 100vh; }
.brand { background: var(--black); color: #fff; border-right: 4px solid var(--gold); padding: 56px 48px; display: flex; flex-direction: column; justify-content: space-between; }
.wordmark { font-size: 30px; font-weight: 700; letter-spacing: 0.02em; color: #fff; text-decoration: none; }
.wordmark span { color: var(--gold); }
.wordmark .sub { display: block; margin-top: 2px; font-size: 12px; font-style: normal; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: #c9ccd3; }
.brand h1 { font-size: 34px; line-height: 1.15; margin: 0 0 16px; font-weight: 650; }
.brand p { color: #c9ccd3; margin: 0; }
.brand > div { max-width: 344px; container-type: inline-size; }
.brand .rule { width: 100%; height: 2px; background: var(--gold); margin: 0 0 22px; }
/* The slogan is set as two lines that each run the full width of the gold line. */
.brand h1 span { display: block; white-space: nowrap; text-align: justify; text-align-last: justify; }
.brand h1 .l1 { font-size: 34px; font-size: 11.9cqw; line-height: 1.12; }
.brand h1 .l2 { font-size: 29px; font-size: 10.17cqw; line-height: 1.2; }
.brand small { color: #a3a7b0; font-size: 13px; letter-spacing: 0.01em; }
.brand small span { white-space: nowrap; }

/* Black panel: two faint diagonal shine lines, and the wordmark in a gold ring, centred. */
.brand {
  background:
    linear-gradient(135deg, transparent 0 41%, rgba(255,255,255,0.035) 44%, rgba(255,255,255,0.085) 46.5%, rgba(255,255,255,0.035) 49%, transparent 52%),
    linear-gradient(135deg, transparent 0 60%, rgba(227,199,102,0.03) 62%, rgba(227,199,102,0.075) 63.5%, rgba(227,199,102,0.03) 65%, transparent 67%),
    var(--black);
}
.brand .wordmark {
  display: block; box-sizing: border-box; margin: 0 auto; padding-top: 68px; line-height: 1.2; text-align: center;
  width: 224px; height: 224px; border-radius: 50%; font-size: 39px;
  border: 4px solid var(--gold);
  box-shadow: 0 0 0 6px rgba(201,162,39,0.14), inset 0 0 26px rgba(201,162,39,0.10);
}
.brand .wordmark .sub { font-size: 14.5px; margin-top: 5px; }

.stage { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.card { background: #fff; border: 1px solid #000; border-radius: 10px; padding: 36px 36px 32px; width: 100%; max-width: 440px; }
.card h2 { margin: 0 0 6px; font-size: 24px; }
.card .lead { margin: 0 0 24px; color: var(--muted); }

label { display: block; font-weight: 600; font-size: 14px; margin: 16px 0 6px; }
input[type=email], input[type=password], input[type=text] {
  width: 100%; padding: 11px 12px; font: inherit; color: inherit; background: #fff;
  border: 1px solid #8a919e; border-radius: 6px;
}
select, input[type=tel], input[type=date] {
  width: 100%; padding: 11px 12px; font: inherit; color: inherit; background: #fff;
  border: 1px solid #8a919e; border-radius: 6px;
}
.pair { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; }
.optional { font-weight: 400; color: var(--muted); }
label.tick { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin-top: 14px; }
label.tick input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid rgba(31, 95, 209, 0.45); outline-offset: 2px; }
.hint { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.row label { flex: 1; }
.linkish { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; color: var(--blue); cursor: pointer; text-decoration: underline; }

button.primary {
  width: 100%; margin-top: 24px; padding: 12px 16px; font: inherit; font-weight: 650; color: #fff;
  background: var(--blue); border: 1px solid var(--blue-dark); border-radius: 6px; cursor: pointer;
}
button.primary:hover { background: var(--blue-dark); }
button.primary[disabled] { opacity: 0.6; cursor: progress; }
button.quiet { padding: 9px 14px; font: inherit; background: #fff; color: var(--ink); border: 1px solid #000; border-radius: 6px; cursor: pointer; }

a { color: var(--blue); }
.foot { margin: 22px 0 0; font-size: 14px; color: var(--muted); text-align: center; }

.msg { border-radius: 6px; padding: 11px 12px; margin: 0 0 4px; font-size: 14px; }
.msg.error { background: var(--red-bg); color: var(--red); border: 1px solid #f1b9b4; }
.msg.ok { background: var(--ok-bg); color: #123a7c; border: 1px solid #b9d0f5; }

/* Signed-in placeholder page */
.bar { background: var(--black); color: #fff; border-bottom: 4px solid var(--gold); padding: 16px 28px; display: flex; align-items: center; justify-content: space-between; }
.bar button.quiet { background: transparent; color: #fff; border-color: var(--gold); }
.page { max-width: 760px; margin: 40px auto; padding: 0 24px; }
.widget { background: #fff; border: 1px solid #000; border-radius: 10px; padding: 24px 28px; margin-bottom: 20px; }
.widget h2 { margin: 0 0 8px; font-size: 20px; }
.widget p { margin: 0; color: var(--muted); }
.name-rule { width: 40px; height: 2px; background: var(--gold); margin: 0 0 10px; }

@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .brand { border-right: 0; border-bottom: 4px solid var(--gold); padding: 28px 24px; }
  .brand h1, .brand p, .brand .rule, .brand small { display: none; }
  .brand .wordmark { width: auto; height: auto; padding: 0; border: 0; border-radius: 0; box-shadow: none; font-size: 28px; }
  .brand .wordmark .sub { font-size: 12px; margin-top: 2px; }
  .stage { align-items: flex-start; padding: 24px 16px; }
  .card { padding: 28px 22px; }
}
