/* ── Login screen (Sam 2026-10-24) — redesigned from the reference mock:
   full-bleed blue gradient, centred stack, no card, circle avatar, WELCOME BACK,
   User ID + Password with leading icons, one full-width navy button.
   Deliberately absent: "Remember me", "Forgot password" (Sam removed both). */
body.shell #loginView {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 24px;
  box-sizing: border-box;
  /* light top-left -> deep navy bottom-right, soft glow top-left */
  background:
    radial-gradient(115% 85% at 12% 8%, rgba(255,255,255,.30) 0%, rgba(255,255,255,0) 55%),
    linear-gradient(135deg, #7BA6E3 0%, #3E6FB5 42%, #0A2A5E 100%);
}
/* `display:flex` above outranks the UA's `[hidden]{display:none}`, so the
   hidden attribute would stop working after login (shell.js sets
   loginView.hidden = true). Restore it explicitly — style.css does the same
   for #wsView. Without this the login screen stays on top of the workspace. */
body.shell #loginView[hidden] { display: none; }
#loginView .avatar {
  width: 552px; height: 552px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
#loginView .avatar svg { width: 92px; height: 92px; color: #fff; }
/* Horse-rider brand mark (Sam 2026-10-26). The asset carries its OWN framing:
   a white disc with a black outline ring and the black ink sketch inside, so
   this wrapper paints no circle/shadow of its own — that would double-frame it.
   Sized so the artwork's circle IS the on-screen circle. Grew 46 -> 184 -> 552
   (Sam asked for 3x each time). `display:block` kills the inline baseline gap. */
#loginView .avatar img { width: 552px; height: 552px; display: block;
  max-width: min(552px, 70vw); max-height: min(552px, 70vw); height: auto; }
#loginView h1 {
  margin: 0 0 34px;
  color: #fff;
  font-size: 21px;
  font-weight: 300;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-align: center;
}
/* Fields: transparent, single white rule underneath, icon + text on one line. */
#loginView .field {
  position: relative;
  width: 100%; max-width: 330px;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,.75);
  padding: 0 2px 8px;
  margin-bottom: 26px;
}
#loginView .field svg { width: 19px; height: 19px; flex: 0 0 auto; color: #fff; opacity: .95; }
#loginView .field input {
  flex: 1 1 auto; min-width: 0;
  background: transparent; border: 0; outline: none;
  color: #fff; font-size: 15px; padding: 6px 0;
}
#loginView .field input::placeholder { color: rgba(255,255,255,.82); }
/* the browser's autofill wash would break the transparent look — neutralise it */
#loginView .field input:-webkit-autofill,
#loginView .field input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff;
  -webkit-box-shadow: 0 0 0 1000px rgba(255,255,255,.10) inset;
  caret-color: #fff;
}
#loginView button.login {
  width: 100%; max-width: 330px;
  margin-top: 6px;
  padding: 15px 18px;
  background: #0D2B5C;
  color: #fff;
  border: 0; border-radius: 0;
  font-size: 14px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  cursor: pointer;
  transition: background .18s ease;
}
#loginView button.login:hover:not(:disabled) { background: #123B7A; }
#loginView button.login:disabled { opacity: .6; cursor: default; }
#loginView #err {
  min-height: 1.2em;
  margin: 14px 0 0;
  color: #FFD9D9;
  font-size: 13px;
  text-align: center;
  max-width: 330px;
}
