.login-shell {
  width: min(100% - 32px, 472px);
  padding: 0;
  margin: 0 auto;
  display: grid;
  align-content: center;
  padding-block: clamp(24px, 6vh, 72px);
}
.login-card {
  padding: clamp(20px, 5vw, 32px);
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.login-card-header { margin-bottom: 22px; }
.login-card h1 { margin: 0; font-size: 30px; font-weight: 500; letter-spacing: -.035em; line-height: 1.15; }
.login-card .muted { margin: 7px 0 0; font-size: 14px; }
.login-card form { display: grid; gap: 14px; }
.login-field { display: grid; gap: 5px; }
.login-card label { font-size: 13px; font-weight: 500; }
.login-card input {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
}
.login-card :is(button, input):focus-visible { outline: 2px solid #718fce; outline-offset: 2px; }
.login-pin { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
.pin-toggle {
  min-width: 58px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
}
.pin-toggle:hover { background: var(--surface2); }
.login-card .login-submit {
  min-height: 46px;
  border: 0;
  border-radius: 10px;
  margin-top: 2px;
  background: var(--accent);
  color: var(--accentInk);
  font-size: 14px;
  font-weight: 500;
}
.login-submit:disabled { opacity: .6; cursor: wait; }
.login-error { color: var(--action-red-ink); font-size: 13px; margin: 0; }
.login-error:empty { display: none; }
@media (max-width: 700px) {
  .login-shell { align-content: start; }
}

.sign-in-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at 14% 10%, #dceee9 0%, transparent 53%),
              linear-gradient(145deg, #f8faf9, #e8eef2);
}
[data-theme="dark"] .sign-in-page {
  background: radial-gradient(ellipse at 14% 10%, #163936 0%, transparent 55%),
              linear-gradient(145deg, #101619, #141d2b);
}
.login-shell { align-content: center; padding-block: 64px 28px; }
.login-card { box-shadow: 0 18px 52px rgb(12 31 38 / 13%); }
.login-card-header { margin-bottom: 23px; }
.login-input { position: relative; }
.login-input .login-icon { position: absolute; inset-inline-start: 12px; top: 15px; color: var(--muted); pointer-events: none; }
.login-input input { padding-inline-start: 38px; }
.login-theme { position: absolute; top: 16px; inset-inline-end: 16px; }

.login-lockup { display: flex; align-items: center; justify-content: center; gap: 13px; margin-bottom: 28px; }
.login-lockup strong { display: block; font-size: 25px; font-weight: 500; letter-spacing: -.03em; line-height: 1.1; }
.login-lockup span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; letter-spacing: .025em; }
.login-foot { margin: 18px 0 0; text-align: center; font-size: 12px; color: var(--muted); }
#memberSearchStatus { margin: 0; color: var(--muted); font-size: 12px; }
#memberSearchStatus:empty { display: none; }
.login-lockup { margin-bottom: 34px; }
.login-lockup span, .login-eyebrow { font-size: 12px; letter-spacing: .12em; color: var(--muted); }
.login-eyebrow { margin: 0 0 10px; }
.pin-toggle { display: grid; place-items: center; min-width: 46px; }
.pin-toggle.pin-visible .eye-slash { display: none; }
#memberMatches {
  position: absolute;
  z-index: 2;
  inset: calc(100% + 5px) 0 auto;
  max-height: 198px;
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
}
#memberMatches [role="option"] { padding: 10px 12px; font-size: 14px; cursor: pointer; overflow-wrap: anywhere; }
#memberMatches [role="option"]:hover, #memberMatches [aria-selected="true"] { background: var(--surface2); }
