/* MB-AUTH: the CareXR look for the pages around the app (sign-in, set password, the Admin Portal). The same
   Clinical Calm theme as the app (docs/ui_framework.md: Manrope 800 for titles and buttons, teal actions on ink,
   the light page colour of the loading screen) and the same logos (tools/promo/brand/). Public files: they hold
   no content. Manrope is under the SIL Open Font License (Manrope-OFL.txt beside it). */
@font-face {
	font-family: "Manrope";
	src: url("Manrope-Variable.ttf") format("truetype");
	font-weight: 200 800;
	font-display: swap;
}
:root {
	--ink: #14323B;
	--muted: #4F6B74;
	--line: #D6DEE2;
	--bg: #F3F5F7;
	--card: #FFFFFF;
	--teal: #0E7C86;
	--teal-dark: #0A6169;
	--teal-soft: #E3F1F2;
	--brand-blue: #2555AA;
	--brand-orange: #FEA01C;
	--danger: #A3292E;
	--danger-soft: #FBECEC;
	--good-soft: #E6F4F1;
	--warn-soft: #FFF4DE;
	--radius: 16px;
	--title: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--ink); font: 16px/1.45 var(--body); }

/* The sign-in and set-password pages: logo, card, maker's mark, as on the loading screen. */
.cx-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
	padding: max(28px, env(safe-area-inset-top)) 16px max(28px, env(safe-area-inset-bottom)); gap: 28px; }
.cx-logo { width: min(300px, 64vw); height: auto; display: block; }
.cx-card { width: 100%; max-width: 420px; background: var(--card); border: 1px solid var(--line);
	border-radius: var(--radius); padding: 30px 28px 26px; box-shadow: 0 8px 28px rgba(20, 50, 59, 0.07); }
.cx-card h1 { margin: 0 0 6px; font: 800 26px/1.2 var(--title); letter-spacing: -0.2px; }
.cx-card .lead { margin: 0 0 20px; color: var(--muted); font-size: 15px; }
.cx-card label { display: block; font: 700 15px var(--title); margin: 16px 0 6px; }
.cx-card input { width: 100%; font: 17px var(--body); padding: 12px 14px; border: 1px solid var(--line);
	border-radius: 12px; background: #fff; color: var(--ink); }
.cx-card input:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.cx-button { display: block; width: 100%; margin-top: 24px; font: 800 17px var(--title); letter-spacing: 0.2px;
	padding: 14px; border: 0; border-radius: 999px; background: var(--teal); color: #fff; cursor: pointer; }
.cx-button:hover { background: var(--teal-dark); }
.cx-button:disabled { opacity: 0.6; cursor: default; }
.cx-msg { display: none; margin-top: 16px; padding: 10px 12px; border-radius: 12px; font-size: 15px; }
.cx-msg.bad { display: block; background: var(--danger-soft); color: var(--danger); }
.cx-msg.good { display: block; background: var(--good-soft); color: var(--ink); }
.cx-help { margin: 18px 0 0; color: var(--muted); font-size: 14px; }
.cx-maker { width: 116px; height: auto; opacity: 0.85; display: block; }
.cx-legal { margin: -16px 0 0; font-size: 13px; }
.cx-legal a { color: var(--muted); }
.cx-tag { font: 800 12px var(--title); letter-spacing: 1.6px; color: var(--teal); text-transform: uppercase; margin: 0 0 4px; }
