/* Sign-in page. */
.lg-body { min-height: 100vh; margin: 0; background: var(--bg-grad, none), var(--bg); }
.lg-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; box-sizing: border-box; }
.lg-card { width: min(420px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 28px; display: grid; gap: 22px; }
.lg-brand { display: flex; align-items: center; gap: 12px; }
.lg-brand .mark { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 6px 16px rgb(79 70 229 / .35); }
.lg-brand .mark svg.i { width: 22px; height: 22px; stroke-width: 2.1; }
.lg-brand b { display: block; font-size: 18px; letter-spacing: -.01em; }
.lg-brand small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.lg-form { display: grid; gap: 14px; }
.lg-form[hidden] { display: none; }
.lg-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: var(--muted); }
.lg-form .input { width: 100%; box-sizing: border-box; }
.lg-pw { position: relative; display: block; }
.lg-pw .input { padding-right: 40px; }
.lg-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; display: grid; place-items: center; border: 0; background: none; color: var(--muted); border-radius: 8px; cursor: pointer; }
.lg-eye:hover { background: var(--surface-3); color: var(--fg); }
.lg-check { display: flex !important; align-items: center; gap: 8px; font-weight: 400 !important; }
.lg-err { margin: 0; padding: 9px 12px; border-radius: var(--radius-xs); background: var(--bad-bg); color: var(--bad); border: 1px solid var(--bad-line); font-size: 13px; }
.lg-err[hidden] { display: none; }
.lg-submit { justify-content: center; padding: 11px; font-size: 14px; }
.lg-foot { margin: 0; color: var(--faint); font-size: 12px; text-align: center; }
.lg-meter { height: 5px; border-radius: 999px; background: var(--surface-3); overflow: hidden; margin-top: -6px; }
.lg-meter i { display: block; height: 100%; width: 0; background: var(--bad); transition: width .2s, background .2s; }
.lg-meter i[data-s="2"] { background: var(--warn); }
.lg-meter i[data-s="3"], .lg-meter i[data-s="4"] { background: var(--ok); }
.lg-hint { color: var(--faint); font-size: 12px; margin-top: -8px; }
