/* login-v2.css - v2 sign-in page only. Uses v2.css tokens. */
.lg-body *, .lg-body *::before, .lg-body *::after, .lg-dlg *, .lg-dlg { box-sizing: border-box; }
.lg-body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); font-family: var(--font-body); }
.lg-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, 5fr) 6fr; }
.lg-ic { width: 18px; height: 18px; display: block; }

/* brand panel: always ink navy */
.lg-brand { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 48px 56px 36px; color: #eef2f9;
  background: radial-gradient(120% 90% at 0% 0%, #17235a 0%, #0a1130 55%, #070c24 100%); }
.lg-brand-glow { position: absolute; inset: auto -20% -30% auto; width: 80%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(22,166,234,.20), rgba(22,166,234,0) 65%); pointer-events: none; }
.lg-brand-in { position: relative; display: flex; flex-direction: column; gap: 56px; }
.lg-brand .v2-wm-eb { color: #a3aed0; }
.lg-brand .v2-wm-word .t { color: #fff; }
.lg-wm { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.lg-wm--lg .v2-wm-word { font-size: 64px; line-height: .9; }
.lg-wm--lg .v2-wm-eb { font-size: 12px; }
.lg-wm--sm { display: none; margin-bottom: 22px; }
.lg-wm--sm .v2-wm-word { font-size: 34px; line-height: .9; }
.lg-copy { max-width: 400px; }
.lg-tag { margin: 0 0 12px; font: 700 34px/1.12 var(--font-head); letter-spacing: -.01em; color: #fff; }
.lg-copy p { margin: 0; font-size: 16px; line-height: 1.55; color: #c3cce6; }
.lg-powered { position: relative; font-size: 12px; letter-spacing: .04em; color: #8f9bc4; }

/* form side */
.lg-main { position: relative; display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.lg-theme { position: absolute; top: 20px; right: 20px; }
.lg-ic-sun { display: none; }
html[data-theme="dark"] .lg-ic-sun { display: block; } html[data-theme="dark"] .lg-ic-moon { display: none; }
@media (prefers-color-scheme: dark) { html[data-theme="system"] .lg-ic-sun { display: block; } html[data-theme="system"] .lg-ic-moon { display: none; } }
.lg-card { width: 100%; max-width: 420px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 32px; box-shadow: var(--shadow-pop); }
.lg-h { margin: 0; font: 700 26px/1.2 var(--font-head); letter-spacing: -.01em; }
.lg-sub { margin: 6px 0 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.lg-form { margin-top: 24px; display: flex; flex-direction: column; gap: 16px; }
.lg-pw { position: relative; }
.lg-pw .v2-input { padding-right: 46px; }
.lg-eye { position: absolute; top: 50%; right: 4px; transform: translateY(-50%); width: 36px; height: 36px; }
.lg-eye-off { display: none; }
.lg-eye[aria-pressed="true"] .lg-eye-on { display: none; } .lg-eye[aria-pressed="true"] .lg-eye-off { display: block; }
.lg-remember { display: flex; align-items: center; gap: 10px; }
.lg-remember-l { font-size: 14px; color: var(--slate); cursor: pointer; user-select: none; }
.lg-submit { width: 100%; height: 48px; font-size: 15px; }
.lg-submit[disabled], .v2-btn[disabled] { opacity: .7; cursor: progress; }
.lg-spin { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: lgspin .7s linear infinite; }
.is-busy .lg-spin { display: inline-block; }
@keyframes lgspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .lg-spin { animation-duration: 2s; } }

.lg-note { border-radius: 10px; border: 1px solid var(--line-strong); padding: 11px 13px; font-size: 13.5px; line-height: 1.5; background: var(--soft); color: var(--slate); }
.lg-note[hidden], .lg-x[hidden] { display: none; }
.lg-note div + div { margin-top: 6px; opacity: .92; }
.lg-note--err { background: var(--pill-red-bg); color: var(--pill-red-fg); border-color: var(--pill-red-fg); border-color: color-mix(in srgb, var(--pill-red-fg) 35%, transparent); }
.lg-note--ok { background: var(--pill-green-bg); color: var(--pill-green-fg); border-color: color-mix(in srgb, var(--pill-green-fg) 35%, transparent); margin-top: 18px; }
.lg-note--info { background: var(--pill-blue-bg); color: var(--pill-blue-fg); border-color: color-mix(in srgb, var(--pill-blue-fg) 35%, transparent); }
.lg-form .lg-note--shake { animation: lgshake .3s; }
@keyframes lgshake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) { .lg-form .lg-note--shake { animation: none; } }

.lg-x { margin-top: 18px; padding: 16px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--soft); font-size: 14px; line-height: 1.5; color: var(--slate); }
.lg-x p { margin: 0; } .lg-x-t { font-weight: 600; color: var(--ink); margin-bottom: 4px !important; }
.lg-x-go { width: 100%; margin: 12px 0; } .lg-x-s { font-size: 13px; color: var(--muted); margin-top: 6px !important; }
.lg-x a:not(.v2-btn) { color: var(--accent-text); }
.lg-foot { margin-top: 22px; text-align: center; }
.lg-foot p { margin: 8px 0 0; font-size: 12px; color: var(--faint); }

/* forgot dialog */
.lg-dlg { border: 1px solid var(--line); border-radius: 16px; padding: 0; width: min(92vw, 480px); max-height: 90vh; background: var(--card); color: var(--ink); box-shadow: var(--shadow-pop); }
.lg-dlg::backdrop { background: var(--scrim); }
.lg-dlg-in { display: flex; flex-direction: column; max-height: 90vh; }
.lg-dlg-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.lg-dlg-head h3 { margin: 0; font: 600 18px var(--font-head); }
.lg-dlg-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; }
.lg-dlg-body .lg-sub { margin: 0; }
.lg-dlg-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line); }
.lg-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lg-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 860px) {
  .lg-shell { grid-template-columns: 1fr; }
  .lg-brand { display: none; }
  .lg-main { align-items: flex-start; padding: 56px 16px 32px; }
  .lg-wm--sm { display: inline-flex; }
  .lg-card { padding: 24px 20px; border-radius: 16px; box-shadow: none; }
  .lg-two { grid-template-columns: 1fr; }
  .lg-theme { top: 12px; right: 12px; }
}
[hidden] { display: none !important; }
