/* Willow Hub login page — design "D" (classroom illustration).
   Scoped to body.wl-login so no other page is affected. */
html.wl-login-html, html.wl-login-html body { height: 100%; }
body.wl-login { margin: 0; min-height: 100%; min-height: 100dvh; display: flex; background: #fafbfd; color: #0f172a;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
.wl-login *, .wl-login *::before, .wl-login *::after { box-sizing: border-box; }
.wl-login .hidden { display: none !important; }
.wl-login .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Illustration side (always navy) */
.wl-login .wl-art { flex: 0 0 52%; display: flex; flex-direction: column; background: #001A72; color: #fff; }
.wl-login .wl-scene { flex: 1; position: relative; overflow: hidden; background: #123497; }
.wl-login .wl-scene img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.wl-login .wl-cap { padding: 30px 48px 36px; border-top: 3px solid #FFD200; }
.wl-login .wl-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.wl-login .wl-brand img { width: 42px; height: 42px; border-radius: 50%; display: block; }
.wl-login .wl-brand b { font-size: 17px; }
.wl-login .wl-cap h1 { margin: 0; font-size: 27px; line-height: 1.22; font-weight: 700; letter-spacing: -.02em; max-width: 460px; }
.wl-login .wl-cap p { margin: 8px 0 0; color: #c5cce6; font-size: 14.5px; }

/* Form side */
.wl-login .wl-right { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 28px; position: relative; }
.wl-login .wl-box { width: 100%; max-width: 370px; }
.wl-login .wl-head h2 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -.02em; color: #0f172a; }
.wl-login .wl-head p { margin: 6px 0 0; font-size: 14.5px; color: #64748b; }
.wl-login .wl-form { margin-top: 26px; display: flex; flex-direction: column; gap: 18px; }
.wl-login .wl-form label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; color: #334155; }
.wl-login .wl-ctrl { position: relative; }
.wl-login .wl-ctrl input { width: 100%; height: 46px; padding: 0 44px 0 42px; font: inherit; font-size: 15px; border-radius: 10px;
  border: 1px solid #cbd5e1; background: #fff; color: #0f172a; outline: none; transition: border-color .15s, box-shadow .15s; }
.wl-login .wl-ctrl input::placeholder { color: #94a3b8; }
.wl-login .wl-ctrl input:focus { border-color: #3E56AD; box-shadow: 0 0 0 3px rgba(62,86,173,.22); }
.wl-login .wl-ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; pointer-events: none; color: #94a3b8; }
.wl-login .wl-ico svg, .wl-login .wl-eye svg, .wl-login .wl-arr svg, .wl-login .wl-theme svg { width: 100%; height: 100%; display: block; }
.wl-login .wl-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; padding: 6px; border: 0;
  background: none; border-radius: 8px; cursor: pointer; color: #64748b; }
.wl-login .wl-eye:hover { color: #334155; }
.wl-login .wl-eye:focus-visible, .wl-login .wl-theme:focus-visible, .wl-login .wl-student:focus-visible { outline: 3px solid #3E56AD; outline-offset: 2px; }
.wl-login .wl-btn { margin-top: 6px; height: 48px; width: 100%; border: 0; border-radius: 10px; font: inherit; font-size: 15.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; background: #FFD200; color: #001A72; transition: background .15s; }
.wl-login .wl-btn:hover { background: #F5C400; }
.wl-login .wl-btn:focus-visible { outline: 3px solid #3E56AD; outline-offset: 2px; }
.wl-login .wl-arr { width: 18px; height: 18px; display: inline-block; flex: none; }
.wl-login .wl-student { margin-top: 20px; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 14px; font-weight: 600; color: #3E56AD; border-radius: 6px; }
.wl-login .wl-student:hover { text-decoration: underline; }
.wl-login .wl-student .wl-arr { width: 16px; height: 16px; }
.wl-login .wl-foot { margin: 40px 0 0; font-size: 12.5px; color: #64748b; }

/* Error message */
.wl-login .wl-error { margin-top: 22px; display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 10px;
  background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; font-size: 14px; line-height: 1.4; }
.wl-login .wl-error svg { width: 19px; height: 19px; flex: none; margin-top: 1px; }

/* Theme toggle (top-right of the form panel) */
.wl-login .wl-theme { position: absolute; top: 18px; right: 18px; width: 38px; height: 38px; padding: 9px; border-radius: 10px;
  border: 1px solid #e2e8f0; background: #fff; color: #334155; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.wl-login .wl-theme:hover { background: #f1f5f9; }
.wl-login .wl-theme .wl-sun { display: none; }
html.dark .wl-login .wl-theme .wl-sun { display: block; }
html.dark .wl-login .wl-theme .wl-moon { display: none; }

/* Dark theme: form panel only; illustration stays navy */
html.dark body.wl-login { background: #1b1b1e; color: #e5e7eb; color-scheme: dark; }
html.dark .wl-login .wl-head h2 { color: #f3f4f6; }
html.dark .wl-login .wl-head p { color: #a1a1aa; }
html.dark .wl-login .wl-form label { color: #d4d4d8; }
html.dark .wl-login .wl-ctrl input { background: #26262a; border-color: #3f3f46; color: #f4f4f5; }
html.dark .wl-login .wl-ctrl input::placeholder { color: #8b8b93; }
html.dark .wl-login .wl-ctrl input:focus { border-color: #8fa3e6; box-shadow: 0 0 0 3px rgba(143,163,230,.25); }
html.dark .wl-login .wl-ico { color: #8b8b93; }
html.dark .wl-login .wl-eye { color: #a1a1aa; }
html.dark .wl-login .wl-eye:hover { color: #f4f4f5; }
html.dark .wl-login .wl-student { color: #a5b4fc; }
html.dark .wl-login .wl-foot { color: #8b8b93; }
html.dark .wl-login .wl-theme { background: #26262a; border-color: #3f3f46; color: #FFD200; }
html.dark .wl-login .wl-theme:hover { background: #303036; }
html.dark .wl-login .wl-error { background: rgba(239,68,68,.12); border-color: rgba(248,113,113,.45); color: #fca5a5; }
html.dark .wl-login .wl-eye:focus-visible, html.dark .wl-login .wl-theme:focus-visible,
html.dark .wl-login .wl-student:focus-visible, html.dark .wl-login .wl-btn:focus-visible { outline-color: #a5b4fc; }

/* Mobile: illustration hidden, compact brand bar */
@media (max-width: 860px) {
  body.wl-login { flex-direction: column; }
  .wl-login .wl-art { flex: none; }
  .wl-login .wl-scene { display: none; }
  .wl-login .wl-cap { padding: 16px 22px 18px; }
  .wl-login .wl-brand { margin-bottom: 0; }
  .wl-login .wl-brand img { width: 34px; height: 34px; }
  .wl-login .wl-cap h1, .wl-login .wl-cap p { display: none; }
  .wl-login .wl-right { align-items: flex-start; padding: 28px 22px; }
  .wl-login .wl-head { padding-right: 48px; }
  .wl-login .wl-theme { top: 22px; right: 18px; }
  .wl-login .wl-student { display: flex; justify-content: center; }
  .wl-login .wl-foot { text-align: center; margin-top: 30px; }
}
@media (prefers-reduced-motion: reduce) { .wl-login * { transition: none !important; } }
