:root {
    color-scheme: light;
    --red: #a6192e;
    --red-dark: #861426;
    --ink: #201c20;
    --muted: #5f565b;
    --line: #e6dfe2;
    --paper: #f6f4f5;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    line-height: 1.55;
}
a { color: var(--red-dark); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 3px solid #315f91;
    outline-offset: 3px;
}
.page-width { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.site-header { background: var(--red); color: #fff; }
.brand { min-height: 84px; display: flex; align-items: center; gap: 22px; }
.brand img { display: block; width: 176px; height: auto; }
.brand span { padding-left: 22px; border-left: 1px solid #ffffff70; font-size: .88rem; font-weight: 600; }
.portal-brand-text small { display: block; margin-top: 2px; font-size: .82em; font-weight: 500; }
.brand a:focus-visible { outline-color: white; }
.landing, .registration {
    background-color: #152333;
    background-image: radial-gradient(ellipse at 0% 0%, #101827cf 100%, #151f3660 0%, #151f361a 0%), linear-gradient(180deg, #151a29bf, transparent 0%, transparent 100%, #111827d1), url(/assets/images/landing.webp);
    background-position: center;
    background-size: cover;
}
.landing {
    display: grid;
    grid-template-rows: minmax(min-content, 1fr) auto minmax(min-content, 1fr);
    justify-items: center;
    min-height: 100vh;
    min-height: 100svh;
    padding: 22px 20px;
    color: white;
    text-align: center;
}
.landing-logo {
    display: block;
    width: clamp(184px, 25vw, 288px);
    max-width: 100%;
    height: auto;
    align-self: start;
    margin-block: clamp(12px, 4svh, 40px) 38px;
}
.landing h1 {
    width: min(100%, 800px);
    margin-inline: auto;
    font-size: clamp(2.4rem, 6.5vw, 4.4rem);
    text-wrap: balance;
}
.landing-centre {
    width: 100%;
}
.landing-footer {
    align-self: end;
}
.landing-instructions {
    margin: 14px 0 0;
    color: #f0f2f6;
    font-size: clamp(.95rem, 2vw, 1.125rem);
}
.landing-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 23px;
}
.landing-actions .button { min-height: 52px; }
.landing-actions .button-outline {
    border-color: #ffffffa6;
    background: #142234b3;
}
.landing-actions .button-outline:hover { background: #34445a; }
.landing a:focus-visible { outline-color: white; }
.landing-footer a { color: #fff; font-size: .875rem; text-decoration: none; }
.landing-footer a:hover { text-decoration: underline; }
.eyebrow { margin: 0 0 12px; color: var(--red-dark); font-size: .75rem; font-weight: 750; text-transform: uppercase; letter-spacing: .12em; }
h1, h2 { line-height: 1.12; margin: 0; }
h1 { font-size: clamp(2.1rem, 5vw, 4.25rem); }
h2 { font-size: 1.25rem; }
.lead { color: var(--muted); margin: 18px 0 26px; }
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 48px;
    padding: 11px 19px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: var(--red);
    color: white;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}
.button:hover { background: var(--red-dark); }
.form-page { width: min(500px, calc(100% - 32px)); margin: 0 auto; padding-block: clamp(30px, 7vw, 80px); }
.form-card, .portal-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: 15px;
    padding: clamp(20px, 4vw, 36px);
}
.form-card { border-top: 5px solid var(--red); box-shadow: 0 12px 36px #40233010; }
.form-card h1, .dashboard h1 { font-size: clamp(1.9rem, 5vw, 3.2rem); }
.form-card label { display: block; font-weight: 700; margin-bottom: 6px; }
.form-card .chair-sign-in label { display: block; font-weight: 700; margin-bottom: 5px; margin-top: 10px; }
.form-card input:not([type="hidden"]) {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid #a5999e;
    border-radius: 8px;
    font: inherit;
}
.form-card .button { width: 100%; margin-top: 18px; }
.form-link { display: inline-block; margin-top: 18px; font-size: .9rem; }
.notice { padding: 10px 14px; border-radius: 8px; background: #f8eef0; color: #751425; margin: 0 0 18px; }
.dashboard { padding-block: clamp(32px, 6vw, 68px); }
.portal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; margin-bottom: 24px; }
.portal-actions { display: grid; gap: 10px; margin-top: 18px; }
.portal-actions a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    text-decoration: none;
    font-weight: 650;
}
.portal-actions a:hover { border-color: var(--red); background: #fbf2f4; }
@media (max-width: 720px) {
    .brand { min-height: 66px; gap: 12px; }
    .brand img { width: 132px; }
    .brand span { padding-left: 12px; font-size: .75rem; }
    .page-width { width: calc(100% - 32px); }
}
.action-panel { max-width: 760px; margin-inline: auto; }
.action-panel input, .action-panel select, .action-panel textarea {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #a5999e;
    border-radius: 8px;
    background: white;
    color: var(--ink);
    font: inherit;
    margin-bottom: 14px;
}
.action-panel textarea { resize: vertical; }
.action-panel select:focus-visible, .action-panel textarea:focus-visible {
    outline: 3px solid #315f91;
    outline-offset: 3px;
}
.document-text { margin-block: 20px; white-space: pre-wrap; overflow-wrap: anywhere; }
.text-button {
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--red-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
    font: inherit;
    cursor: pointer;
}

@media (max-width: 460px) {
    .landing { padding: 18px 16px; }
    .landing-logo { margin-block: 12px 22px; }
    .landing h1 { font-size: clamp(1.95rem, 8vw, 2.4rem); }
    .landing-actions { flex-direction: column; max-width: 300px; margin-inline: auto; }
    .landing-footer a { display: inline-flex; align-items: center; min-height: 44px; }
}

.registration {
    display: grid;
    grid-template-rows: auto 1fr;
    align-items: center;
    min-height: 100vh;
    min-height: 100svh;
    padding: clamp(22px, 5vw, 52px) 20px;
    gap: 34px;
}
.registration--light {
    background-image: linear-gradient(180deg, #111827c9 0%, #25375132 44%, #11182770 100%),
        url("/assets/images/landing.webp");
}
.registration-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    width: min(100%, 1120px);
    margin-inline: auto;
}
.registration-logo { display: block; width: clamp(140px, 26vw, 240px); height: auto; }
.theme-switch {
    display: flex;
    gap: 3px;
    padding: 4px;
    border-width: 1px;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.396);
    border-image: none;
    border-radius: 12px;
    background: rgb(20, 34, 52);
}
.theme-switch a {
    color: rgb(229, 234, 241);
    font-size: 0.875rem;
    font-weight: 650;
    padding: 6px 11px;
    border-radius: 8px;
    text-decoration: none;
}
.theme-switch a:hover {
    background: rgb(52, 68, 90);
}
.theme-switch a[aria-current] {
    color: rgb(23, 34, 51);
    background: rgb(255, 255, 255);
}
.registration-header a:focus-visible { outline-color: white; }
.registration-card {
    justify-self: center;
    width: min(100%, 430px);
    padding: clamp(20px, 5vw, 32px);
    border: 1px solid #dce1e7;
    border-radius: 8px;
    box-shadow: 0 8px 28px #0a101b30;
}
.registration-card h1 {
    font-size: clamp(1.375rem, 4.5vw, 1.625rem);
    font-weight: 700;
}
.registration-card .lead { margin: 8px 0 24px; font-size: .925rem; }
.registration-card .chair-sign-in .lead { margin: 8px 0 20px; font-size: .925rem; }
.registration-card label { font-size: .875rem; font-weight: 600; }
.registration-card input:not([type="hidden"]) {
    min-height: 44px;
    border-color: #929daa;
    border-radius: 5px;
}
.registration-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}
.registration-card .button {
    width: auto;
    min-height: 42px;
    margin: 0 0 0 auto;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: .9rem;
}
.registration-card .form-link {
    margin: 0;
    color: #4b5969;
    text-decoration: none;
}
.registration-card .form-link:hover { text-decoration: underline; }
.registration--dark .registration-card {
    color-scheme: dark;
    background: #142234;
    border-color: #64748b;
    color: #fff;
}
.registration--dark .registration-card .lead,
.registration--dark .registration-card .form-link { color: #d8e1ef; }
.registration--dark .registration-card input:not([type="hidden"]) {
    background: #0d1726;
    border-color: #899aaf;
    color: #fff;
}
.registration--dark .registration-card input::placeholder { color: #aab8ca; }
.registration--dark .registration-card :focus-visible { outline-color: #c0d8ff; }
@media (max-width: 480px) {
    .registration { padding: 18px 16px; gap: 22px; }
    .registration-header { gap: 10px; }
    .registration-logo { width: clamp(120px, 38vw, 160px); }
    .theme-switch a { display: grid; align-items: center; min-height: 36px; }
    .registration-card .button, .registration-card .form-link { min-height: 44px; }
    .registration-card .form-link { display: inline-flex; align-items: center; }
}
@media (max-height: 440px) and (max-width: 900px) {
    .registration { align-items: start; }
}

.registration-card .chair-password-label { margin-top: 14px; }
