/* Sign-in pages: brand panel on the left, a clear form card on the right.
   The page sets its own colours so the text never blends into the background
   (light or dark system theme). */
.lg-body {
  --lg-bg: #f3f7f6; --lg-card: #ffffff; --lg-border: #e3ebe8;
  --lg-text: #0f172a; --lg-muted: #5b6876; --lg-label: #334155;
  --lg-field: #f4f7f6; --lg-field-border: #dbe5e2; --lg-field-focus: #ffffff;
  --lg-accent: var(--primary); --lg-accent-dark: var(--primary-600); --lg-ring: color-mix(in srgb, var(--primary) 18%, transparent);
  --text: var(--lg-text); --muted: var(--lg-muted);
  color-scheme: light;
  margin: 0; min-height: 100vh; background: var(--lg-bg); color: var(--lg-text);
  font-family: 'Inter', 'Hind Siliguri', system-ui, sans-serif; -webkit-font-smoothing: antialiased;
}
:root[data-theme="dark"] .lg-body {
  --lg-bg: #07110f; --lg-card: #0f1c19; --lg-border: #1d2f2b;
  --lg-text: #e8f2ef; --lg-muted: #9db3ad; --lg-label: #c8d8d4;
  --lg-field: #142420; --lg-field-border: #24403a; --lg-field-focus: #18302a;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .lg-body {
    --lg-bg: #07110f; --lg-card: #0f1c19; --lg-border: #1d2f2b;
    --lg-text: #e8f2ef; --lg-muted: #9db3ad; --lg-label: #c8d8d4;
    --lg-field: #142420; --lg-field-border: #24403a; --lg-field-focus: #18302a;
    color-scheme: dark;
  }
}

.lg-shell { display: grid; grid-template-columns: minmax(380px, 46%) 1fr; min-height: 100vh; }

/* ---- Brand panel ---- */
.lg-side { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 40px; padding: 44px clamp(28px, 5vw, 64px); color: #fff;
  background: radial-gradient(700px 400px at 100% 0%, rgba(110, 231, 183, .35), transparent 60%), linear-gradient(150deg, var(--primary) 0%, var(--primary-600) 45%, color-mix(in srgb, var(--primary-600) 70%, #000) 100%); }
.lg-side-art span { position: absolute; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .14); }
.lg-side-art span:nth-child(1) { width: 520px; height: 520px; right: -220px; bottom: -200px; }
.lg-side-art span:nth-child(2) { width: 360px; height: 360px; right: -140px; bottom: -120px; border-color: rgba(255, 255, 255, .2); }
.lg-side-art span:nth-child(3) { width: 220px; height: 220px; left: -90px; top: 38%; border-color: rgba(255, 255, 255, .1); }
.lg-brand { position: relative; display: flex; align-items: center; gap: 12px; min-width: 0; }
.lg-mark { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: #fff; color: #047a66; font-weight: 800; font-size: 16px; overflow: hidden; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .45); }
.lg-mark:has(img) { width: auto; min-width: 48px; max-width: 220px; padding: 6px 10px; }
.lg-mark img { height: 36px; width: auto; max-width: 200px; object-fit: contain; }
.lg-brand-text { min-width: 0; }
.lg-brand-text b { display: block; font-size: 19px; font-weight: 800; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-brand-text small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
.lg-side-copy { position: relative; margin-top: auto; margin-bottom: auto; max-width: 440px; }
.lg-side-copy h2 { margin: 0 0 12px; font-size: clamp(28px, 3vw, 38px); line-height: 1.15; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.lg-side-copy p { margin: 0 0 26px; font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, .86); }
.lg-side-copy ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.lg-side-copy li { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; }
.lg-side-copy li span { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: rgba(255, 255, 255, .16); }
.lg-side-copy li .svg-icon { width: 18px; height: 18px; color: #fff; }
.lg-help { position: relative; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 99px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); color: #fff; font-size: 13.5px; font-weight: 600; text-decoration: none; }
.lg-help:hover { background: rgba(255, 255, 255, .22); }
.lg-help .svg-icon { width: 16px; height: 16px; }

/* ---- Form side ---- */
.lg-main { box-sizing: border-box; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 40px 20px; }
.lg-card { width: 100%; max-width: 430px; box-sizing: border-box; padding: 38px 36px 32px; border-radius: 22px; background: var(--lg-card); border: 1px solid var(--lg-border);
  box-shadow: 0 24px 60px -32px rgba(4, 85, 74, .35); text-align: center; animation: lg-rise .5s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes lg-rise { from { opacity: 0; transform: translateY(14px); } }
.lg-icon { width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 16px; display: grid; place-items: center; background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--lg-accent); }
.lg-icon .svg-icon { width: 26px; height: 26px; }
.lg-card h1 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--lg-text); }
.lg-sub { margin: 8px auto 0; max-width: 340px; color: var(--lg-muted); font-size: 14.5px; line-height: 1.55; }
.lg-card .alert { text-align: left; margin: 18px 0 0; }
.lg-form { margin-top: 26px; display: grid; gap: 14px; text-align: left; }
.lg-field { position: relative; display: flex; align-items: center; height: 52px; border-radius: 14px; background: var(--lg-field); border: 1.5px solid var(--lg-field-border); transition: border-color .15s, background .15s, box-shadow .15s; }
.lg-field:focus-within { background: var(--lg-field-focus); border-color: var(--lg-accent); box-shadow: 0 0 0 4px var(--lg-ring); }
.lg-field.has-error { border-color: #dc2626; }
.lg-field > .svg-icon { width: 19px; height: 19px; margin: 0 4px 0 16px; color: var(--lg-muted); flex: none; }
.lg-field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; padding: 0 12px 0 8px; font: inherit; font-size: 15.5px; color: var(--lg-text); }
.lg-field input::placeholder { color: var(--lg-muted); opacity: .85; }
.lg-field input:-webkit-autofill { -webkit-text-fill-color: var(--lg-text); -webkit-box-shadow: 0 0 0 40px var(--lg-field-focus) inset; }
.lg-eye { flex: none; width: 46px; height: 100%; border: 0; background: transparent; color: var(--lg-muted); cursor: pointer; display: grid; place-items: center; border-radius: 0 14px 14px 0; }
.lg-eye:hover, .lg-eye.on { color: var(--lg-accent); }
.lg-eye .svg-icon { width: 19px; height: 19px; }
.lg-error { margin: -6px 4px 0; font-size: 13px; font-weight: 500; color: #dc2626; }
.lg-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.lg-row label { display: inline-flex; align-items: center; gap: 8px; color: var(--lg-label); cursor: pointer; font-weight: 500; }
.lg-row input[type=checkbox] { appearance: auto; -webkit-appearance: checkbox; width: 17px; height: 17px; margin: 0; accent-color: var(--lg-accent); background: none; border: 0; box-shadow: none; }
.lg-row .muted, .lg-row span { color: var(--lg-muted); }
.lg-row a { color: var(--lg-accent); font-weight: 600; text-decoration: none; }
.lg-btn { position: relative; height: 52px; margin-top: 4px; border: 0; border-radius: 14px; cursor: pointer; font: inherit; font-size: 16px; font-weight: 700; color: #fff;
  background: linear-gradient(180deg, var(--primary-500), var(--primary-600)); box-shadow: 0 14px 26px -14px color-mix(in srgb, var(--primary) 90%, transparent); display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform .15s, box-shadow .15s, filter .15s; width: 100%; }
.lg-btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.lg-btn:focus-visible { outline: 3px solid var(--lg-ring); outline-offset: 2px; }
.lg-btn .svg-icon { width: 18px; height: 18px; }
.lg-btn.ghost { background: transparent; color: var(--lg-text); box-shadow: inset 0 0 0 1.5px var(--lg-field-border); }
.lg-divider { display: flex; align-items: center; gap: 12px; margin: 24px 0 14px; color: var(--lg-muted); font-size: 13px; font-weight: 500; }
.lg-divider::before, .lg-divider::after { content: ""; flex: 1; border-top: 1px solid var(--lg-border); }
.lg-alt { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.lg-alt a { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 44px; padding: 0 12px; border-radius: 12px; background: var(--lg-field); border: 1px solid var(--lg-field-border); color: var(--lg-text); font-size: 13.5px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.lg-alt a:hover { border-color: var(--lg-accent); color: var(--lg-accent); }
.lg-alt .svg-icon { width: 16px; height: 16px; color: var(--lg-accent); }
.lg-user { display: flex; align-items: center; gap: 12px; justify-content: center; margin-top: 18px; }
.lg-user .avatar { width: 42px; height: 42px; font-size: 16px; }
.lg-user b { display: block; color: var(--lg-text); }
.lg-user small { color: var(--lg-muted); }
.lg-card details { margin-top: 18px; text-align: left; }
.lg-card summary { cursor: pointer; color: var(--lg-muted); font-size: 13.5px; text-align: center; }
.lg-foot { text-align: center; font-size: 12.5px; color: var(--lg-muted); }

/* ---- Phones / small tablets: brand on top, form below ---- */
@media (max-width: 900px) {
  .lg-shell { grid-template-columns: minmax(0, 1fr); }
  .lg-side { gap: 14px; padding: 22px 20px 70px; }
  .lg-side-copy { margin: 0; }
  .lg-side-copy h2 { font-size: 22px; margin-bottom: 6px; }
  .lg-side-copy p { margin-bottom: 0; font-size: 14.5px; }
  .lg-side-copy ul, .lg-side-art { display: none; }
  .lg-help { position: absolute; top: 22px; right: 20px; height: 36px; padding: 0 12px; }
  .lg-help span { display: none; }
  .lg-main { justify-content: flex-start; margin-top: -52px; padding: 0 16px 28px; }
  .lg-card { padding: 30px 22px 26px; }
}
@media (prefers-reduced-motion: reduce) { .lg-card { animation: none; } }
