/* Scoped to the sign-in page; no changes to the academic dashboard. */
@view-transition { navigation: none; }
.cif-auth-shell.cif-signin {
	--signin-blue: #1459e6;
	position: fixed; inset: 0; z-index: 2147483000;
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, 1fr); grid-template-rows: minmax(min-content, 1fr);
	width: 100%; height: 100%; height: 100dvh; min-height: 0;
	margin: 0; border: 0; border-radius: 0; box-shadow: none;
	overflow: auto; overscroll-behavior: contain; background: #fbfcff; color: #172b4d;
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.cif-signin svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cif-signin-story { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 42px clamp(32px, 4.5vw, 82px); overflow: hidden; color: #fff; background: radial-gradient(ellipse at 95% 100%, #226eee, transparent 65%), linear-gradient(150deg, #061e57, #104bc3); isolation: isolate; }
.cif-signin-brand { display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; }
.cif-signin-brand img { width: 56px; height: 56px; object-fit: contain; flex-shrink: 0; }
.cif-signin-brand strong { font-family: inherit; font-size: 20px; font-weight: 750; line-height: 1.3; letter-spacing: -.4px; }
.cif-signin-message { position: relative; z-index: 1; margin: auto 0; padding: 36px 0; max-width: 590px; }
.cif-signin-eyebrow { display: block; font-size: 12px; line-height: 1.6; font-weight: 650; letter-spacing: .16em; color: #c4d9ff; }
.cif-signin-message h1 { margin: 24px 0; font-family: inherit; font-size: clamp(42px, 4.6vw, 72px); font-weight: 700; letter-spacing: -.055em; line-height: 1.12; color: #fff; }
.cif-signin-message h1 em { font-style: normal; color: #a9cfff; }
.cif-signin-message > p { max-width: 390px; margin: 0; font-size: 18px; line-height: 1.7; color: #d4e2fb; }
.cif-signin-topics { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.cif-signin-topics span { padding: 8px 13px; border: 1px solid #ffffff30; border-radius: 8px; font-size: 13px; line-height: 1.4; color: #e2edff; background: #ffffff08; }
.cif-signin-story-footer { position: relative; z-index: 1; display: grid; gap: 18px; font-size: 11px; line-height: 1.8; letter-spacing: .06em; color: #c4d9ff; }
.cif-signin-story-footer > span:last-child { font-size: 13px; letter-spacing: 0; }
.cif-signin-orbits { position: absolute; z-index: -1; width: 680px; height: 680px; right: -370px; bottom: -240px; pointer-events: none; }
.cif-signin-orbits span { position: absolute; inset: 0; border: 1px solid #b9d7ff30; border-radius: 50%; }
.cif-signin-orbits span:nth-child(2) { inset: 70px; }.cif-signin-orbits span:nth-child(3) { inset: 140px; }
.cif-signin-orbits i { position: absolute; left: 30px; top: 198px; width: 12px; height: 12px; background: #9bc8ff; border-radius: 50%; box-shadow: 0 0 0 9px #ffffff0a; }
.cif-signin-panel { display: flex; flex-direction: column; align-items: center; min-width: 0; min-height: 0; padding: 48px clamp(26px, 5vw, 88px) 26px; background: #fbfcff; }
.cif-signin-content { width: 100%; max-width: 420px; margin: auto 0; padding: 0; }
.cif-signin-mobile-brand { display: none; }
.cif-signin-heading h2 { margin: 0 0 22px; font: 750 clamp(32px, 3vw, 42px)/1.2 system-ui, sans-serif; color: #10264b; letter-spacing: -.045em; }
.cif-signin-heading p { margin: 12px 0 32px; font-size: 16px; line-height: 1.6; color: #5d6c83; }
.cif-signin .cif-login-form { margin: 0; gap: 16px; }
.cif-signin .cif-field-group { gap: 6px; }
.cif-signin .cif-field-group label { color: #243856; font-size: 15px; font-weight: 650; line-height: 1.5; }
.cif-signin .cif-input-wrap input { display: block; width: 100%; height: 52px; min-height: 52px; margin: 0; padding: 0 52px 0 47px; border: 1px solid #ccd6e6; border-radius: 12px; box-shadow: 0 2px 3px #122d5203; background: #fff; color: #132e54; font: 400 16px/1.4 system-ui, sans-serif; transition: border-color .15s, box-shadow .15s; }
.cif-signin .cif-input-wrap input::placeholder { color: #718098; opacity: 1; }
.cif-signin .cif-input-wrap input:focus { outline: 0; border-color: var(--signin-blue); box-shadow: 0 0 0 4px #1459e614; }
.cif-signin .cif-input-wrap > svg { left: 16px; width: 19px; color: #718098; stroke: currentColor; }
.cif-signin .cif-login-form .cif-password-toggle { top: 50%; right: 6px; min-height: 44px; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: #65758c; transform: translateY(-50%); box-shadow: none; }
.cif-signin .cif-login-form .cif-password-toggle:hover { background: #edf3ff; color: var(--signin-blue); transform: translateY(-50%); }
.cif-signin .cif-checkbox { width: fit-content; min-height: 30px; margin: -5px 0; gap: 10px; color: #51617a; font-size: 14px; line-height: 1.5; cursor: pointer; }
.cif-signin .cif-checkbox input { margin: 0; width: 18px; height: 18px; accent-color: var(--signin-blue); flex-shrink: 0; }
.cif-signin .cif-login-form .cif-submit-button { display: flex; align-items: center; justify-content: center; gap: 16px; height: 52px; padding: 14px 20px; border: 1px solid #1250d0; border-radius: 12px; background: var(--signin-blue); box-shadow: 0 6px 16px #1459e620; color: #fff; font: 650 16px/1.4 system-ui, sans-serif; }
.cif-signin .cif-login-form .cif-submit-button:hover { background: #0c46c5; transform: translateY(-1px); }
.cif-signin .cif-submit-button.is-loading { opacity: .75; cursor: wait; }
.cif-signin .cif-submit-button.is-loading svg { display: none; }
.cif-signin .cif-alert { margin: 0 0 22px; padding: 14px 16px; border: 1px solid #edb7b3; border-radius: 10px; background: #fff4f2; color: #982c24; font-size: 14px; line-height: 1.6; }
.cif-signin-help { margin-top: 16px; border: 0; background: none; }
.cif-signin-help summary { width: fit-content; margin: auto; padding: 9px 2px; color: #2455a6; font-size: 14px; line-height: 1.5; font-weight: 600; cursor: pointer; }
.cif-signin-help-content { display: grid; gap: 12px; margin: 10px 0 0; padding: 14px; border: 1px solid #dfe7f5; border-radius: 12px; background: #f1f5fc; }
.cif-signin-help-content p { margin: 0; color: #50617a; font-size: 13px; line-height: 1.55; }
.cif-signin-whatsapp { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 14px; border-radius: 10px; background: #15803d; color: #fff !important; font-size: 14px; font-weight: 700; line-height: 1.35; text-align: center; text-decoration: none !important; }
.cif-signin-whatsapp:hover { background: #116832; color: #fff; }
.cif-signin-whatsapp:focus-visible { outline-color: #15803d !important; }
.cif-signin-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid #e4eaf3; color: #627089; font-size: 12px; line-height: 1.6; text-align: center; }
.cif-signin .cif-activation-form .cif-input-wrap input { padding-left: 16px; padding-right: 16px; }
.cif-signin .cif-activation-form input[name="code"] { letter-spacing: .18em; font-size: 21px; }
.cif-signin .cif-activation-form input[readonly] { background: #f1f5fb; color: #415575; }
.cif-activation-steps { display: flex; gap: 12px; padding: 0; margin: 0 0 20px; list-style: none; }
.cif-signin-register { margin: 12px 0 0; font-size: 15px; color: #52647b; }
.cif-signin-register a { color: #125ed4; font-weight: 800; text-decoration: none; }
.cif-signin-register a:hover { text-decoration: underline; }
.cif-activation-steps li { display: flex; align-items: center; gap: 7px; font-size: 13px; color: #63738a; }
.cif-activation-steps li > span { display: grid; place-items: center; flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: #e8eef8; }
.cif-activation-steps li[aria-current] { color: #175bd5; font-weight: 700; }
.cif-activation-steps li[aria-current] > span { color: white; background: #175bd5; }
.cif-signin-note svg { flex-shrink: 0; width: 16px; height: 16px; }
.cif-signin-footer { margin-top: 18px; font-size: 12px; line-height: 1.5; color: #6e7b91; text-align: center; }
.cif-signin :is(button, summary, input[type="checkbox"]):focus-visible { outline: 3px solid #1459e6; outline-offset: 4px; }
@media (max-width: 960px) {
	.cif-signin-story { padding: 36px 30px; }
	.cif-signin-panel { padding-right: 32px; padding-left: 32px; }
	.cif-signin-message h1 { font-size: 44px; }
}
@media (max-width: 780px) {
	.cif-auth-shell.cif-signin { display: block; background: #fbfcff; }
	.cif-signin-story { display: none; }
	.cif-signin-panel { min-height: 100%; padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left)); background: radial-gradient(ellipse at 100% 0, #e7efff, transparent 40%), #fbfcff; }
	.cif-signin-mobile-brand { display: flex; width: 100%; max-width: 420px; margin-bottom: 22px; }
	.cif-signin-brand img { width: 48px; height: 48px; }
	.cif-signin-brand strong { font-size: 18px; }
	.cif-signin-content { margin: 0; padding: 0; }
	.cif-signin-heading h2 { font-size: 34px; }
	.cif-signin-heading p { margin-bottom: 28px; }
	.cif-signin-footer { margin-top: 18px; }
}
@media (max-width: 360px) {
	.cif-signin-panel { padding-left: 18px; padding-right: 18px; }
	.cif-signin-heading h2 { font-size: 31px; }
	.cif-signin-note { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .cif-signin *, .cif-signin *::before, .cif-signin *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
/* Only the full-screen auth shell scrolls; prevent the theme behind it from creating a second page. */
html:has(.cif-auth-shell.cif-signin), body:has(.cif-auth-shell.cif-signin) { overflow: hidden !important; overscroll-behavior: none; }
.cif-signin .cif-activation-hint { margin: 0 0 18px; font-size: 14px; line-height: 1.6; color: #52647b; }
.cif-activation-verify .cif-signin-content { max-width: 500px; }
.cif-activation-verify .cif-signin-heading h2 { margin-bottom: 14px; }
.cif-activation-verify .cif-activation-steps { margin-bottom: 12px; }
.cif-activation-verify .cif-activation-hint { margin-bottom: 12px; line-height: 1.45; }
.cif-activation-verify .cif-activation-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 11px 12px; }
.cif-activation-verify .cif-activation-form > input[type="hidden"] { display: none; }
.cif-activation-verify .cif-activation-email,
.cif-activation-verify .cif-activation-code,
.cif-activation-verify .cif-activation-form .cif-submit-button { grid-column: 1 / -1; }
.cif-activation-verify .cif-activation-form .cif-field-group { gap: 5px; }
.cif-activation-verify .cif-activation-form .cif-field-group label { font-size: 13px; line-height: 1.35; }
.cif-activation-verify .cif-activation-form .cif-input-wrap input { height: 46px; min-height: 46px; font-size: 14px; }
.cif-activation-verify .cif-activation-form input[name="code"] { font-size: 18px; }
.cif-activation-verify .cif-activation-form .cif-submit-button { height: 48px; margin-top: 2px; }
.cif-activation-links { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; font-size: 14px; }
.cif-activation-toast { position: fixed; z-index: 2147483001; top: max(18px, env(safe-area-inset-top)); left: 50%; display: grid; grid-template-columns: 30px minmax(0, 1fr) 30px; align-items: center; gap: 10px; width: min(420px, calc(100vw - 28px)); padding: 12px 13px; border: 1px solid #b8ddc5; border-radius: 13px; background: #f0fbf4; box-shadow: 0 16px 38px #10264b26; color: #155c31; transform: translateX(-50%); }
.cif-activation-toast.is-error { border-color: #edc2be; background: #fff6f5; color: #8e2c25; }
.cif-activation-toast-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #15803d; color: #fff; font-weight: 800; }
.cif-activation-toast.is-error .cif-activation-toast-icon { background: #c63c32; }
.cif-activation-toast > span:nth-child(2) { display: grid; gap: 2px; min-width: 0; }
.cif-activation-toast strong { font-size: 14px; line-height: 1.35; }
.cif-activation-toast small { font-size: 12px; line-height: 1.4; }
.cif-activation-toast a { width: max-content; margin-top: 3px; color: inherit; font-size: 12px; font-weight: 700; }
.cif-activation-toast button { display: grid; place-items: center; width: 30px; height: 30px; min-height: 30px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 21px; cursor: pointer; }
.cif-activation-toast button:hover { background: #0000000a; }
.cif-activation-verify .cif-signin-help { margin-top: 12px; }
.cif-signin-panel, .cif-signin-story { box-sizing: border-box; }
@media (max-width: 780px) {
 .cif-signin-panel { justify-content: flex-start; }
 .cif-signin-footer { margin-top: 22px; padding-bottom: env(safe-area-inset-bottom); }
 .cif-signin-heading h2 { margin-bottom: 20px; }
 .cif-activation-verify .cif-signin-mobile-brand { margin-bottom: 15px; }
 .cif-activation-verify .cif-signin-heading h2 { margin-bottom: 12px; font-size: 30px; }
}
@media (max-width: 350px) {
 .cif-activation-verify .cif-activation-form { grid-template-columns: minmax(0, 1fr); }
 .cif-activation-verify .cif-activation-email,
 .cif-activation-verify .cif-activation-code,
 .cif-activation-verify .cif-activation-form .cif-submit-button { grid-column: auto; }
}
