/* CCAPP Board — sign-in, home, 404. Umbrella brand. Moves to the "CCAPP Board" theme later. */
@font-face {
	font-family: "Bricolage Grotesque";
	src: url("fonts/bricolage.woff2") format("woff2");
	font-weight: 500 800;
	font-style: normal;
	font-display: swap;
}
:root {
	--ink: #2D2926;
	--ink-2: #4A4452;
	--panel: #1C1820;
	--paper: #F7F6F4;
	--line: #DDD8E2;
	--cred: #5F249F;
	--mem: #008C95;
	--edu: #2AD2C9;
	--ok-bg: #E2F5E9; --ok-fg: #1D6B3A;
	--err-bg: #FFE9EA; --err-fg: #A11D24;
	--spectrum: linear-gradient(90deg, #5F249F 0%, #008C95 50%, #2AD2C9 100%);
	--display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
	--body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body.ccb { font-family: var(--body); font-size: 18px; line-height: 1.6; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
.ccb a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.ccb a:hover { color: var(--cred); }
.ccb :focus-visible { outline: 3px solid var(--mem); outline-offset: 3px; border-radius: 6px; }
.ccb-display { font-family: var(--display); letter-spacing: -0.025em; font-weight: 800; }
.ccb-eyebrow { font-size: 14px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #7FE3DD; }
.ccb-eyebrow--ink { color: var(--ink-2); letter-spacing: .04em; text-transform: none; font-size: 16px; font-weight: 700; }
.ccb-spectrum { height: 5px; background: var(--spectrum); }

/* ---------- Sign-in split ---------- */
.ccb-split { min-height: 100vh; display: flex; flex-wrap: wrap; }
.ccb-brand { flex: 0 0 clamp(420px, 42vw, 640px); background: var(--panel); color: #fff; padding: clamp(32px, 5vw, 56px); position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 100vh; }
.ccb-orb { position: absolute; border-radius: 50%; }
.ccb-brand__art { position: relative; flex: 1 1 auto; min-height: 220px; margin: 36px calc(-1 * clamp(32px, 5vw, 56px)) calc(-1 * clamp(32px, 5vw, 56px)) 0; }
.ccb-orb--1 { width: 440px; height: 440px; background: var(--cred); right: -170px; bottom: -230px; }
.ccb-orb--2 { width: 260px; height: 260px; background: var(--mem); right: 50px; bottom: -40px; mix-blend-mode: screen; opacity: .9; }
.ccb-orb--3 { width: 120px; height: 120px; background: var(--edu); right: 290px; bottom: 40px; }
.ccb-brand__logo { width: min(380px, 100%); height: auto; position: relative; }
.ccb-brand__copy { position: relative; z-index: 1; margin-top: clamp(48px, 12vh, 110px); }
.ccb-brand__title { margin: 14px 0 0; font-size: clamp(44px, 5.2vw, 84px); line-height: .9; }
.ccb-brand__title span { color: var(--edu); }
.ccb-brand__lede { margin: 22px 0 0; font-size: 20px; line-height: 1.5; color: #D8D3DD; max-width: 400px; }

.ccb-formside { flex: 999 1 480px; display: grid; place-items: center; padding: clamp(28px, 5vw, 48px); }
.ccb-formwrap { width: 100%; max-width: 520px; display: flex; flex-direction: column; gap: 22px; }

.ccb-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ccb-steps li { font-weight: 800; font-size: 14px; padding: 8px 14px; border-radius: 999px; }
.ccb-steps .is-current { background: var(--ink); color: #fff; }
.ccb-steps .is-done { background: var(--ok-bg); color: var(--ok-fg); }
.ccb-steps .is-next { background: #ECE9EF; color: var(--ink-2); }
.ccb-steps__line { width: 24px; height: 3px; padding: 0 !important; background: #C9C3CF; border-radius: 3px; }

.ccb-card { background: #fff; border-radius: 32px; overflow: hidden; border: 2px solid #ECE9EF; box-shadow: 0 40px 80px -50px rgba(28,24,32,.6); }
.ccb-card__rule { height: 6px; background: var(--spectrum); }
.ccb-card__body { padding: clamp(28px, 4vw, 44px); }
.ccb-icon { width: 72px; height: 72px; border-radius: 22px; background: #F1EFF3; display: grid; place-items: center; color: var(--ink); }
.ccb-card__title { margin: 22px 0 10px; font-size: clamp(32px, 4vw, 40px); line-height: 1.05; }
.ccb-lede { margin: 0 0 6px; font-size: 18px; line-height: 1.55; color: var(--ink-2); }

.ccb-msg { margin: 6px 0 14px; padding: 12px 16px; border-radius: 14px; font-weight: 600; font-size: 16px; }
.ccb-msg--error { background: var(--err-bg); color: var(--err-fg); }
.ccb-msg--info { background: #E6F6F5; color: #0B5A5F; }

.ccb-form { display: flex; flex-direction: column; gap: 18px; margin-top: 18px; }
.ccb-field { display: flex; flex-direction: column; gap: 8px; }
.ccb-label { font-weight: 700; font-size: 16px; }
.ccb-field input { width: 100%; height: 58px; padding: 0 18px; font: inherit; font-size: 18px; color: var(--ink); background: #fff; border: 2px solid var(--line); border-radius: 16px; }
.ccb-field input:focus { outline: none; border-color: var(--mem); box-shadow: 0 0 0 5px rgba(42,210,201,.25); }
.ccb-pw { position: relative; display: block; }
.ccb-pw input { padding-right: 92px; }
.ccb-pw__toggle { position: absolute; right: 8px; top: 8px; height: 42px; min-width: 72px; border: 0; border-radius: 12px; background: #F1EFF3; color: var(--ink); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }

.ccb-code { font-family: var(--display) !important; font-size: 30px !important; font-weight: 800; letter-spacing: .35em; text-align: center; height: 72px !important; }
.ccb-boxes { display: flex; gap: 10px; }
.ccb-boxes input { flex: 1; min-width: 0; height: 72px; padding: 0; text-align: center; font-family: var(--display); font-size: 34px; font-weight: 800; color: var(--ink); background: #fff; border: 2px solid var(--line); border-radius: 18px; }
.ccb-boxes input.is-filled { border-color: var(--ink); background: var(--paper); }
.ccb-boxes input:focus { outline: none; border: 3px solid var(--mem); box-shadow: 0 0 0 5px rgba(42,210,201,.25); }

.ccb-btn { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 60px; padding: 0 28px; border: 0; border-radius: 999px; font: inherit; font-size: 19px; font-weight: 800; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.ccb-btn--primary, .ccb-btn--ink { background: var(--ink); color: #fff !important; }
.ccb-btn--primary:hover, .ccb-btn--ink:hover { transform: translateY(-2px); box-shadow: 0 20px 34px -18px rgba(28,24,32,.7); color: #fff; }
.ccb-btn--inline { display: inline-flex; width: auto; }

.ccb-links { margin: 18px 0 0; font-size: 16px; font-weight: 600; }
.ccb-links--split { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.ccb-links form { margin: 0; }
.ccb-linkbtn { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; cursor: pointer; }
.ccb-linkbtn:hover { color: var(--cred); }
.ccb-foot { margin: 0; display: flex; gap: 12px; align-items: center; color: var(--ink-2); font-size: 15px; }

/* ---------- Top bar (home, 404) ---------- */
.ccb-topbar { background: var(--panel); padding: 20px clamp(20px, 4vw, 56px); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ccb-topbar__logo { height: 48px; width: auto; display: block; }
.ccb-topbar__me { display: flex; align-items: center; gap: 14px; color: #fff; }
.ccb-topbar__name { font-weight: 700; }
.ccb-topbar__out { color: #D8D3DD !important; font-weight: 600; }
.ccb-topbar__out:hover { color: #fff !important; }
.ccb-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--edu); color: var(--ink); display: grid; place-items: center; font-family: var(--display); font-weight: 800; }

/* ---------- Home ---------- */
.ccb-home__main { max-width: 1320px; margin: 0 auto; padding: clamp(36px, 6vw, 64px) clamp(20px, 4vw, 56px); }
.ccb-home__title { margin: 8px 0 0; font-size: clamp(44px, 6vw, 76px); line-height: .95; }
.ccb-home__title span { color: #8A8392; }
.ccb-home__lede { margin: 14px 0 0; font-size: 20px; color: var(--ink-2); max-width: 720px; }
.ccb-home .ccb-btn--inline { margin-top: 28px; }
.ccb-tiles { margin-top: 44px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.ccb-tile { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; min-height: 320px; padding: 34px; border-radius: 36px; background: var(--tile-bg); color: #fff !important; text-decoration: none; transition: transform .18s, box-shadow .18s; }
.ccb-tile:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: 0 40px 60px -30px rgba(28,24,32,.55); color: #fff !important; }
.ccb-tile__orb { position: absolute; width: 340px; height: 340px; border-radius: 50%; background: var(--tile-orb); right: -130px; top: -150px; opacity: .55; }
.ccb-tile__label { position: relative; font-size: clamp(38px, 4vw, 52px); line-height: .95; }
.ccb-tile__foot { position: relative; margin-top: 20px; display: flex; align-items: center; gap: 12px; }
.ccb-tile__note { background: #fff; color: var(--ink); font-weight: 800; font-size: 15px; padding: 7px 14px; border-radius: 999px; }
.ccb-tile__go { margin-left: auto; width: 56px; height: 56px; border-radius: 50%; background: var(--tile-accent); color: var(--ink); display: grid; place-items: center; }

/* ---------- 404 ---------- */
.ccb-404__main { max-width: 1320px; margin: 0 auto; min-height: calc(100vh - 100px); display: flex; flex-wrap: wrap; align-items: center; gap: clamp(32px, 5vw, 64px); padding: clamp(32px, 5vw, 56px) clamp(20px, 5vw, 72px); }
.ccb-404__num { display: flex; align-items: center; gap: 6px; flex: none; }
.ccb-404__num > .ccb-display { font-size: clamp(140px, 20vw, 300px); line-height: .8; color: var(--ink); }
.ccb-404__zero { position: relative; display: block; width: clamp(110px, 16vw, 236px); aspect-ratio: 1; }
.ccb-404__zero span { position: absolute; border-radius: 50%; display: block; }
.ccb-404__c1 { inset: 0; background: var(--cred); }
.ccb-404__c2 { width: 64%; height: 64%; left: 36%; top: -4%; background: var(--mem); mix-blend-mode: multiply; }
.ccb-404__c3 { width: 39%; height: 39%; left: 13%; top: 51%; background: var(--edu); }
.ccb-404__hole { width: 27%; height: 27%; left: 36.5%; top: 36.5%; background: var(--paper); }
.ccb-404__copy { flex: 1 1 420px; min-width: 0; }
.ccb-pill { display: inline-block; background: var(--ink); color: #fff; font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; padding: 7px 14px; border-radius: 999px; }
.ccb-404__title { margin: 18px 0 0; font-size: clamp(44px, 6vw, 72px); line-height: .95; }
.ccb-404__title span { color: var(--cred); }
.ccb-404__lede { margin: 18px 0 0; font-size: 21px; line-height: 1.55; color: var(--ink-2); max-width: 560px; }
.ccb-minutes { margin-top: 26px; max-width: 520px; background: #fff; border: 2px solid #ECE9EF; border-radius: 22px; padding: 18px 22px; transform: rotate(-1.2deg); box-shadow: 0 24px 40px -32px rgba(28,24,32,.6); }
.ccb-minutes__head { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #6E6776; }
.ccb-minutes dl { margin: 8px 0 0; display: grid; grid-template-columns: 150px 1fr; row-gap: 6px; font-size: 16px; }
.ccb-minutes dt { color: var(--ink-2); }
.ccb-minutes dd { margin: 0; font-weight: 800; }
.ccb-404__actions { margin-top: 32px; display: flex; gap: 14px 18px; align-items: center; flex-wrap: wrap; }
.ccb-404__hint { font-size: 16px; color: var(--ink-2); }

@media (max-width: 900px) {
	.ccb-brand { flex: 1 1 100%; min-height: 0; }
	.ccb-brand__copy { margin-top: 36px; }
	.ccb-brand__art { min-height: 90px; margin-top: 20px; }
	.ccb-orb--1 { width: 200px; height: 200px; right: -80px; bottom: -130px; }
	.ccb-orb--2 { width: 110px; height: 110px; right: 90px; bottom: -40px; }
	.ccb-orb--3 { width: 56px; height: 56px; right: 220px; bottom: 14px; }
	.ccb-brand__lede { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
	.ccb-btn, .ccb-tile { transition: none; }
	.ccb-tile:hover, .ccb-btn:hover { transform: none; }
}
