/* ============================================================
   LeanBrokers 2.0 -- the sign-in (login.php)
   ============================================================
   Built from docs/design-system/ui_kits/login (export of 2026-10-04): the
   form on the left, the side panel on the right. The side panel is the kit's
   "Photo + Season" treatment -- the login photograph with the Annual
   Enrollment countdown and the What's new cards laid over it. Under 960px the
   panel hides and a one-line message strip sits under the logo.

   Requires, in this order: css/lb-tokens.css, css/lb-fonts.css, this file
   (and Font Awesome 7 for the icons). It styles its own controls, so it does
   not load Bootstrap. Every rule is scoped under body.lb-login, so
   it cannot reach another page. Motion is the short fades and the pop-in the
   kit uses, all off under prefers-reduced-motion. */

body.lb-login *, body.lb-login *::before, body.lb-login *::after { box-sizing: border-box; }
body.lb-login h1, body.lb-login h2, body.lb-login p { margin: 0; }
body.lb-login button, body.lb-login input { font-family: inherit; }

body.lb-login {
	margin: 0;
	background: var(--white);
	font-family: var(--font-ui);
	color: var(--navy-600);
	-webkit-font-smoothing: antialiased;
}

.lb-login .lg {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	min-height: 100vh;
	min-height: 100dvh;
}

/* ---- Form column --------------------------------------------- */

.lb-login .lg-form {
	display: grid;
	grid-template-rows: auto 1fr auto;
	padding: 20px 20px 24px;
	min-width: 0;
}
.lb-login .lg-brand img { display: block; height: 32px; width: auto; }
.lb-login .lg-form main { display: grid; align-items: start; padding: 20px 0; }
.lb-login .lg-form main > div { width: 100%; max-width: 400px; margin: 0 auto; }

/* The strip under the logo on a phone: the panel's message, one line. */
.lb-login .lg-strip {
	margin: 20px -20px 0;
	padding: 16px 20px;
	background: var(--navy-600);
	color: var(--white);
}
.lb-login .lg-strip:empty { display: none; }
.lb-login .lg-kicker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font: 700 12px/1 var(--font-ui);
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #7cc0ff;
}
.lb-login .lg-strip .lg-title { display: block; margin-top: 4px; font: 700 18px/1.2 var(--font-ui); }

.lb-login .lg-panel form { display: grid; gap: 16px; }
.lb-login .lg-panel > * + * { margin-top: 16px; }
.lb-login .lg-panel.lb-fade { animation: lg-fade .4s ease both; }
@keyframes lg-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.lb-login .lg-h1 { margin: 0; font: 700 30px/1.15 var(--font-ui); letter-spacing: -.015em; color: var(--navy-600); }
.lb-login .lg-sub { margin: 8px 0 0; font: 400 16px/1.5 var(--font-ui); color: #46525f; text-wrap: pretty; }
.lb-login .lg-head { margin-bottom: 24px; }
.lb-login .lg-head + * { margin-top: 0; }

.lb-login .lg-label { display: block; margin: 0 0 6px; font: 600 14px var(--font-ui); color: var(--navy-600); }
.lb-login .lg-labelrow { display: flex; align-items: baseline; }
.lb-login .lg-labelrow .sp { flex: 1; }

.lb-login .lg-input {
	display: block;
	width: 100%;
	box-sizing: border-box;
	height: 52px;
	padding: 0 14px;
	border: 1.5px solid var(--gray-300);
	border-radius: 10px;
	background: var(--white);
	font: 400 17px var(--font-ui);
	color: var(--navy-600);
	outline: none;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.lb-login .lg-input::placeholder { color: var(--gray-500); }
.lb-login .lg-input:focus { border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(30,144,255,.18); }
.lb-login .lg-pw { position: relative; }
.lb-login .lg-pw .lg-input { padding-right: 78px; }
.lb-login .lg-pw .lg-show { position: absolute; right: 10px; bottom: 10px; height: 32px; padding: 0 8px; color: #46525f; }

.lb-login .lg-btn,
.lb-login .lg-ghost {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	height: 52px;
	border-radius: 10px;
	font: 700 16px var(--font-ui);
	cursor: pointer;
	text-decoration: none;
}
.lb-login .lg-btn { border: 0; background: var(--navy-600); color: var(--white); }
.lb-login .lg-btn:hover,
.lb-login .lg-btn:focus-visible { background: var(--action-primary-hover); color: var(--white); }
.lb-login .lg-btn:disabled { opacity: .6; cursor: default; }
.lb-login .lg-ghost { border: 1.5px solid var(--gray-300); background: var(--white); color: var(--navy-600); font-weight: 600; }
.lb-login .lg-ghost:hover { background: var(--gray-050); }

.lb-login .lg-link {
	padding: 0;
	border: 0;
	background: none;
	color: var(--link);
	font: 600 14px var(--font-ui);
	text-decoration: none;
	cursor: pointer;
}
.lb-login .lg-link:hover { color: var(--navy-600); }
.lb-login .lg-btn:focus-visible,
.lb-login .lg-ghost:focus-visible,
.lb-login .lg-link:focus-visible,
.lb-login .lg-foot a:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 3px; }

.lb-login .lg-switch { margin: 8px 0 0; text-align: center; font: 15px var(--font-ui); color: #46525f; }

/* Confirm your email: six boxes, and the two links under them. */
.lb-login .lg-code { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.lb-login .lg-code .lg-input { height: 60px; padding: 0; text-align: center; font: 700 26px var(--font-ui); }
.lb-login .lg-twin { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; }
.lb-login .lg-twin .lg-link:disabled { color: var(--gray-500); cursor: default; }

/* Messages: the server's (after a POST) and the script's (as you type). */
.lb-login .lg-msg { margin: 0; font: 500 14px var(--font-ui); display: flex; gap: 8px; align-items: center; }
.lb-login .lg-msg:empty { display: none; }
.lb-login .lg-msg.is-error { color: var(--red-600); }
.lb-login .lg-msg.is-ok { color: var(--status-active-fg); }
.lb-login .lg-msg.lg-center { justify-content: center; text-align: center; }

.lb-login .lg-agree { margin: 0; text-align: center; font: 13px/1.5 var(--font-ui); color: var(--gray-550); }
/* The terms checkbox (includes/terms_agree.php): box beside its sentence. */
.lb-login label.lg-agree { display: flex; gap: 8px; align-items: flex-start; text-align: left; cursor: pointer; }
.lb-login label.lg-agree input { flex: none; width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--navy-600); }

.lb-login .lg-foot {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	align-items: center;
	font: 14px var(--font-ui);
	color: var(--gray-550);
}
.lb-login .lg-foot .sp { flex: 1; }
.lb-login .lg-foot a { color: var(--gray-550); text-decoration: none; }
.lb-login .lg-foot a:hover { color: var(--navy-600); text-decoration: underline; text-underline-offset: 4px; }

/* ---- Side panel ---------------------------------------------- */

.lb-login .lg-side { display: none; position: relative; overflow: hidden; background: var(--navy-600); }
.lb-login .lg-side > img.lg-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
/* A scrim, not decoration: the white type has to read over a photograph. */
.lb-login .lg-side .lg-scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(9,25,42,.78) 0%, rgba(9,25,42,.25) 38%, rgba(9,25,42,.35) 55%, rgba(9,25,42,.92) 100%);
}
.lb-login .lg-side .lg-over { position: absolute; inset: 0; padding: 48px; display: grid; align-content: space-between; gap: 32px; }
.lb-login .lg-side .lg-over.lg-news-only { align-content: end; }

.lb-login .lg-count { display: grid; gap: 6px; }
.lb-login .lg-count .lg-kicker { color: #7cc0ff; letter-spacing: .14em; }
.lb-login .lg-count .lg-big { display: flex; align-items: baseline; gap: 18px; }
.lb-login .lg-count .lg-num { font: 800 clamp(96px, 11vw, 160px)/.85 var(--font-ui); letter-spacing: -.05em; color: var(--white); text-shadow: 0 2px 24px rgba(9,25,42,.4); }
.lb-login .lg-count .lg-unit { font: 700 26px/1.1 var(--font-ui); color: var(--white); }
.lb-login .lg-count .lg-unit span { color: #7cc0ff; }
.lb-login .lg-count .lg-bar { display: flex; gap: 4px; margin-top: 12px; max-width: 460px; }
.lb-login .lg-count .lg-bar i { flex: 1; height: 22px; border-radius: 3px; background: rgba(255,255,255,.22); }
.lb-login .lg-count .lg-bar i.on { background: var(--blue-500); }

.lb-login .lg-news { display: grid; gap: 10px; max-width: 520px; }
.lb-login .lg-news h2 { margin: 0; font: 700 12px/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: #c7d3e0; }
.lb-login .lg-card {
	display: grid;
	grid-template-columns: 44px 1fr;
	gap: 14px;
	align-items: center;
	padding: 14px 16px;
	border: 1px solid rgba(255,255,255,.1);
	border-radius: 14px;
	background: rgba(9,25,42,.55);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}
.lb-login .lg-card .lg-ic { width: 44px; height: 44px; border-radius: 12px; background: rgba(30,144,255,.22); color: #9fd0ff; display: grid; place-items: center; }
.lb-login .lg-card b { display: block; font: 700 16px/1.2 var(--font-ui); color: var(--white); }
.lb-login .lg-card span.lg-t { font: 14px/1.4 var(--font-ui); color: #dbe4ee; }

@media (prefers-reduced-motion: reduce) {
	.lb-login .lg-panel.lb-fade { animation: none; }
	.lb-login .lg-input { transition: none; }
}

/* ---- Wide: form and panel side by side ------------------------ */

@media (min-width: 961px) {
	.lb-login .lg { grid-template-columns: minmax(420px, 1fr) minmax(0, 1.25fr); }
	.lb-login .lg-form { padding: 32px 48px; }
	.lb-login .lg-form main { align-items: center; padding: 32px 0; }
	.lb-login .lg-strip { display: none; }
	.lb-login .lg-side { display: block; }
}
@media (min-width: 961px) and (max-height: 760px) {
	.lb-login .lg-side .lg-over { padding: 32px 40px; gap: 20px; }
	.lb-login .lg-count .lg-num { font-size: 88px; }
}
