/* Teacher sign-in — soft lavender two-panel style. Scoped to #view-login / #view-setup. */
@media screen {
  :is(#view-login, #view-setup).lg-screen { --lg-purple: #9b83dc; --lg-purple-d: #7f66c6; --lg-soft: #efe9fb; --lg-ink: #4a4166; --lg-line: #e6dff3;
    min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1080px); justify-content: center; align-items: center; padding: 28px 18px; background: #efe8f8; }
  :is(#view-login, #view-setup)[hidden] { display: none; }
  .lg-shell { position: relative; width: 100%; max-width: 1080px; justify-self: stretch; min-height: 620px; border-radius: 34px; overflow: hidden; background: #fdf1ec;
    box-shadow: 0 30px 80px rgba(110, 85, 170, .22), 0 2px 6px rgba(110, 85, 170, .08); display: grid; grid-template-columns: minmax(320px, 1fr) minmax(360px, 420px); align-items: center; padding-right: 44px; }
  .lg-scene { position: absolute; inset: 0; pointer-events: none; }
  .lg-brand { pointer-events: auto; }
  .lg-art { position: absolute; left: 0; bottom: 0; width: 66%; height: 78%; }
  .lg-brand { position: absolute; left: 44px; top: 36px; display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--lg-ink); text-decoration: none; z-index: 1; }
  .lg-brand-mark { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: #b9a4ea; color: #fff; font-size: 22px; box-shadow: 0 4px 10px rgba(155, 131, 220, .45); }
  .lg-hello { position: absolute; left: 44px; top: 112px; max-width: 360px; z-index: 1; }
  .lg-hello h1 { margin: 0 0 10px; font-size: 32px; line-height: 1.5; color: var(--lg-ink); }
  .lg-spark { color: #f5c542; font-size: 26px; }
  .lg-hello p { margin: 0; color: #6a6285; font-size: 16.5px; line-height: 1.8; }
  .lg-card { grid-column: 2; position: relative; z-index: 2; max-width: none; width: 100%; margin: 40px 0; padding: 34px 30px 28px; border: 1px solid #fff; border-radius: 28px; background: rgba(255, 252, 250, .96);
    box-shadow: 0 24px 60px rgba(110, 85, 170, .2), 0 2px 8px rgba(110, 85, 170, .06); overflow: visible; text-align: left; }
  .lg-card::before { display: none; }
  .lg-eyebrow { margin: 0; text-align: center; color: var(--lg-purple-d); font-weight: 700; font-size: 13px; }
  .lg-card h2 { margin: 2px 0 4px; text-align: center; font-size: 26px; color: var(--lg-ink); }
  .lg-sub { margin: 0 0 22px; text-align: center; color: #6a6285; font-size: 14.5px; }
  .lg-card label { display: block; margin: 14px 0 7px; color: var(--lg-ink); font-weight: 600; font-size: 13.5px; }
  .lg-field { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 8px; background: #fff; border: 1.5px solid var(--lg-line); border-radius: 16px; transition: border-color .15s, box-shadow .15s; }
  .lg-field:focus-within { border-color: #c9b9ee; box-shadow: 0 0 0 4px rgba(155, 131, 220, .18); }
  .lg-ico { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--lg-soft); font-size: 15px; color: var(--lg-purple-d); }
  .lg-field input { flex: 1; min-width: 0; border: 0 !important; background: transparent; box-shadow: none !important; outline: none !important; padding: 0; min-height: 48px; font-size: 15px; color: var(--lg-ink); }
  .lg-field input::placeholder { color: var(--placeholder); }
  .lg-card button.lg-eye { flex: none; min-height: 36px; height: 36px; width: 36px; padding: 0; border: 0; background: transparent; background-image: none; box-shadow: none; color: #8d86a6; font-size: 17px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; }
  .lg-card button.lg-eye .pw-eye-ico { width: 24px; height: 24px; display: block; }
  .lg-card button.lg-eye:hover { background: var(--lg-soft); box-shadow: none; }
  .lg-card button.lg-eye:focus-visible { outline: none; box-shadow: 0 0 0 2px rgba(155, 131, 220, .45); }
  .lg-card button.lg-eye[aria-pressed="true"] { opacity: 1; background: var(--lg-soft); }
  .lg-forgot { text-align: right; margin: 8px 0 18px; font-size: 13.5px; }
  .lg-forgot a, .lg-foot a { color: var(--lg-purple-d); font-weight: 600; }
  .lg-submit { width: 100%; min-height: 52px; border-radius: 16px; border: 0; background: linear-gradient(180deg, #a692e4, #8f78d6); color: #fff; font-size: 17px; font-weight: 700; box-shadow: 0 8px 18px rgba(143, 120, 214, .38), inset 0 -2px 0 rgba(0, 0, 0, .06); }
  .lg-submit:hover { background: linear-gradient(180deg, #9b86de, #8269cc); box-shadow: 0 10px 22px rgba(143, 120, 214, .45); }
  .lg-submit:disabled { opacity: .65; }
  .lg-foot { margin: 20px 0 0; text-align: center; color: #6a6285; font-size: 14px; }
  .lg-card .error { margin-top: 14px; }
  :is(#view-login, #view-setup) :is(a, button):focus-visible { outline: 3px solid rgba(155, 131, 220, .55); outline-offset: 2px; }

  @media (max-width: 900px) {
    .lg-shell { display: block; padding: 0; min-height: 0; }
    .lg-scene { position: relative; height: 230px; }
    .lg-art { width: 100%; height: 100%; }
    .lg-brand { left: 22px; top: 20px; }
    .lg-hello { left: 22px; right: 22px; top: 68px; max-width: none; }
    .lg-hello h1 { font-size: 22px; margin-bottom: 4px; }
    .lg-hello p { display: none; }
    .lg-card { margin: -34px 16px 18px; width: auto; }
  }
}
