/* Sign-in screens, split layout. Loads after login.css and login-stack.css and restyles the hero as a light, brand-tinted product panel (waves, preview cards)
   and the form side as a calm, open column. Every colour comes from the app's tokens, so it follows the Appearance settings. All screens in login.js share it. */
.lg-body { background: var(--surface); }
.lg-hero.ls-panel { color: var(--text); display: flex; flex-direction: column; justify-content: flex-start; margin: 14px 0 14px 14px; padding: clamp(48px, 10vh, 120px) clamp(28px, 4vw, 64px) 28px; }
.lg-hero.ls-panel .ls-feats li { animation: none; opacity: 1; margin-left: 0; }

/* form side */
.lg-main { background: var(--surface); padding: 88px clamp(20px, 4vw, 56px) 76px; }
.lg-top { display: block; left: clamp(20px, 4vw, 56px); top: 26px; } .lg-brand.dark { font-size: 16px; } .lg-brand.dark .lg-mark { width: 34px; height: 34px; border-radius: var(--r-md); font-size: 18px; }
.lg-topr { top: 32px; right: clamp(20px, 4vw, 56px); }
.lg-card { max-width: 380px; }
.lg-card h1 { font-size: 30px; font-weight: 700; letter-spacing: -.03em; line-height: 1.2; } .lg-sub { margin: 8px 0 28px; font-size: 15px; color: var(--n-600); }
.lg-card .lg-row { margin: 4px 0 20px; } .lg-card .lg-forgot { margin: 0; font-size: 13px; font-weight: 600; color: var(--primary); padding: 0; } .lg-card .lg-forgot:hover { text-decoration: underline; }
.lg-card .lg-or { text-transform: none; letter-spacing: 0; margin: 22px 0; }
.lg-foot { left: clamp(20px, 4vw, 56px); right: auto; justify-content: flex-start; }

@media (max-width: 960px) { .lg-hero.ls-panel { display: none; } .lg-main { padding-top: 96px; } .lg-foot { left: 0; right: 0; justify-content: center; } }

/* secondary screens (icon + title + short text): centred, with the back action as an outlined button */
.lg-view:has(> .lg-icon) { text-align: center; } .lg-view > .lg-icon { margin: 0 auto 18px; }
.lg-view:has(> .lg-icon) :is(.lg-f, .wz-field, .lg-rules, .lg-meter, .lg-why, .lg-facts, .lg-more, .lg-lblrow) { text-align: left; }
.lg-card .lg-backbtn { margin-top: 10px; } /* the outlined look is the shared .rf-btn default */
.lg-card .lg-backbtn i { font-size: 16px; }

/* spacing only (no control sizing): the shared .wz-field has no bottom space outside a grid */
.lg-card .wz-field { margin-bottom: 16px; } .lg-card .lg-lblrow .wz-label { margin-bottom: 6px; } .lg-card .lg-sub { margin-bottom: 24px; }

/* ---- lock screen: full page, no split. The same soft brand-tinted background with waves, a large clock, the avatar and one field. ---- */
.lg-fullbg { display: none; }
body.lg-full .lg-shell { grid-template-columns: 1fr; }
body.lg-full .lg-hero.ls-panel { display: none; }
body.lg-full .lg-main { position: relative; overflow: hidden; min-height: 100vh; background: radial-gradient(760px 520px at 88% 4%, color-mix(in oklab, var(--primary) 26%, var(--surface)), transparent 70%), radial-gradient(700px 520px at 4% 100%, color-mix(in oklab, var(--primary) 18%, var(--surface)), transparent 70%), color-mix(in oklab, var(--primary) 8%, var(--surface)); }
body.lg-full .lg-fullbg { display: block; position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
body.lg-full .lg-dots { position: absolute; inset: 0; background-image: radial-gradient(color-mix(in oklab, var(--primary) 30%, var(--surface)) 1.2px, transparent 1.3px); background-size: 24px 24px; opacity: .5; -webkit-mask-image: linear-gradient(180deg, #000, transparent 65%); mask-image: linear-gradient(180deg, #000, transparent 65%); }
body.lg-full .lg-fullbg .ls-waves { z-index: 0; height: 52%; }
body.lg-full .lg-top, body.lg-full .lg-card, body.lg-full .lg-foot { position: relative; z-index: 1; }
body.lg-full .lg-top { position: absolute; }
body.lg-full .lg-card { max-width: 400px; } body.lg-full .lg-card[data-view="lock"], body.lg-full .lg-card[data-view="signin"] { max-width: 340px; }
body.lg-full .lg-foot { position: absolute; left: 0; right: 0; justify-content: center; color: color-mix(in oklab, var(--primary) 40%, var(--n-600)); }
.lg-lockclock { display: grid; justify-items: center; gap: 2px; margin-bottom: 28px; } .lg-lockclock b { font-size: clamp(48px, 7vw, 76px); font-weight: 300; letter-spacing: -.04em; line-height: 1; color: var(--primary-ink, var(--primary)); font-variant-numeric: tabular-nums; } .lg-lockclock span { font-size: 14px; color: color-mix(in oklab, var(--primary) 45%, var(--n-600)); }
body.lg-full .lg-lockhead .lg-lav { box-shadow: 0 0 0 5px var(--surface), 0 0 0 6px var(--primary-line), 0 14px 30px color-mix(in oklab, var(--primary) 20%, transparent); }
body.lg-full .lg-lockhead h1 { font-size: 24px; } body.lg-full .lg-lockhead .lg-sub { color: color-mix(in oklab, var(--primary) 35%, var(--n-700)); }
body.lg-full .lg-lockhead .lg-note { color: color-mix(in oklab, var(--primary) 35%, var(--n-600)); }
@media (prefers-reduced-motion: reduce) { body.lg-full .ls-waves svg { animation: none !important; } }

/* ---- sign-in: the same full-page look as the lock screen, with the branding where the clock sits ---- */
body.lg-signin .lg-top { display: none; }
.lg-brandhead { display: grid; justify-items: center; text-align: center; margin-bottom: 26px; }
.lg-brandhead .brand-mark { width: 64px; height: 64px; border-radius: var(--r-lg); display: grid; place-items: center; font-size: 30px; color: var(--on-primary); background: var(--primary); box-shadow: 0 14px 30px -10px color-mix(in oklab, var(--primary) 55%, transparent); overflow: hidden; }
.lg-brandhead .brand-mark.has-logo { background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-md); } .lg-brandhead .brand-mark img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.lg-brandhead h1.brand-name { margin: 18px 0 0; font-size: clamp(34px, 4.6vw, 48px); font-weight: 700; letter-spacing: -.035em; line-height: 1.05; color: var(--primary-ink, var(--primary)); }
.lg-brandhead .lg-sub { margin: 10px 0 0; font-size: 15px; color: color-mix(in oklab, var(--primary) 40%, var(--n-600)); }

/* ---- brand: a logo (from Appearance) shows on its own; with no logo the icon tile and the brand name are the fallback ---- */
.lg-brandhead .brand-mark.has-logo { width: auto; height: auto; max-width: 260px; border-radius: 0; background: none; border: 0; box-shadow: none; overflow: visible; }
.lg-brandhead .brand-mark.has-logo img { display: block; height: clamp(48px, 7vh, 64px); width: auto; max-width: 260px; object-fit: contain; padding: 0; }
.lg-brandhead:has(.brand-mark.has-logo) h1.brand-name { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; } /* the page heading stays for screen readers */
.lg-brandhead:has(.brand-mark.has-logo) .lg-sub { margin-top: 18px; }
.lg-top .lg-mark.brand-mark.has-logo { width: auto; height: auto; background: none; border: 0; box-shadow: none; backdrop-filter: none; } .lg-top .lg-mark.brand-mark.has-logo img { display: block; height: 30px; width: auto; max-width: 180px; object-fit: contain; }
.lg-brand:has(.brand-mark.has-logo) .lg-bname { display: none; }

/* on the tinted page the status icon tiles sit on a white chip so they stay clear */
body.lg-full .lg-icon { background: var(--surface); box-shadow: var(--shadow-md); } body.lg-full .lg-icon.warn { background: #fff4e5; } body.lg-full .lg-icon.bad { background: #fef3f2; }
body.lg-full .lg-why li, body.lg-full .lg-more, body.lg-full .lg-facts { background: var(--surface); }

/* headings: neat and light, not heavy */
.lg-card h1 { font-size: 24px; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; } .lg-sub { font-size: 14px; }
.lg-brandhead h1.brand-name { margin-top: 14px; font-size: clamp(26px, 3vw, 32px); font-weight: 600; letter-spacing: -.025em; line-height: 1.15; } .lg-brandhead .lg-sub { margin-top: 8px; font-size: 14px; }
body.lg-full .lg-lockhead h1 { font-size: 22px; font-weight: 600; }
@media (max-width: 460px) { .lg-card h1 { font-size: 22px; } }

/* ---- a soft frosted panel behind the form on every auth screen, so it doesn't merge into the tinted page ---- */
body.lg-full .lg-card { padding: 32px 30px 28px; border-radius: calc(var(--r-lg) * 2); background: color-mix(in oklab, color-mix(in oklab, var(--primary) 9%, var(--surface)) 62%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.1); backdrop-filter: blur(14px) saturate(1.1); border: 1px solid color-mix(in oklab, var(--primary) 16%, transparent); box-shadow: var(--shadow-md); max-width: 464px; }
body.lg-full .lg-card[data-view="lock"], body.lg-full .lg-card[data-view="signin"] { max-width: 404px; }
@media (max-width: 480px) { body.lg-full .lg-card { padding: 24px 18px 22px; } }

/* the lock screen stays open, with no panel behind the form */
body.lg-full .lg-card[data-view="lock"] { padding: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; border: 0; box-shadow: none; border-radius: 0; max-width: 340px; }

/* ---- sign-in: a white page with the waves rising from the bottom as a tinted band, so the page looks clipped ---- */
body.lg-signin .lg-main { background: var(--surface); }
body.lg-signin .lg-dots { display: none; }
body.lg-signin .lg-fullbg .ls-waves { height: 46%; }
body.lg-signin .lg-fullbg .ls-waves .w1 { opacity: .10; } body.lg-signin .lg-fullbg .ls-waves .w2 { opacity: .16; } body.lg-signin .lg-fullbg .ls-waves .w3 { opacity: .26; }
/* sign-in: no panel behind the form, it sits directly on the white page */
body.lg-signin .lg-card[data-view="signin"] { padding: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; border: 0; box-shadow: none; border-radius: 0; max-width: 340px; }
/* sign-in: try a white card for the form (white page, waves behind it) */
body.lg-signin .lg-card[data-view="signin"] { padding: 32px 30px 28px; background: var(--surface); border: 1px solid var(--border); border-radius: calc(var(--r-lg) * 2); box-shadow: var(--shadow-md); max-width: 404px; }
@media (max-width: 480px) { body.lg-signin .lg-card[data-view="signin"] { padding: 24px 18px 22px; } }
/* sign-in card: a lighter shadow so it sits flat on the page instead of lifting off it */
body.lg-signin .lg-card[data-view="signin"] { box-shadow: 0 1px 2px rgba(16, 24, 40, .04); border-color: color-mix(in oklab, var(--border) 85%, transparent); }
/* sign-in card: no border, only a very subtle shadow */
body.lg-signin .lg-card[data-view="signin"] { border: 0; box-shadow: 0 2px 14px rgba(16, 24, 40, .06); }
