/* EIS Field Reference — sign-in overlay.
   Colours are overridable from the app's own theme via the --eis-auth-* variables. */
#eis-auth {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 16px;
  background: var(--eis-auth-bg, #0b0d10);
  color: var(--eis-auth-fg, #e8eaed);
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
#eis-auth[hidden] { display: none; }

.eis-auth__card {
  width: 100%;
  max-width: 360px;
  box-sizing: border-box;
  padding: 28px 24px;
  border-radius: 16px;
  background: var(--eis-auth-card, #14181d);
  border: 1px solid var(--eis-auth-line, #262c34);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.eis-auth__logo { display: block; height: 40px; margin: 0 auto 16px; }
.eis-auth__title { margin: 0 0 6px; font-size: 20px; font-weight: 700; text-align: center; }
.eis-auth__muted { color: var(--eis-auth-muted, #9aa3ad); font-size: 14px; text-align: center; margin: 8px 0; }

.eis-auth__btn {
  display: block;
  width: 100%;
  padding: 13px 14px;
  margin-top: 12px;
  border-radius: 10px;
  border: 1px solid var(--eis-auth-line, #262c34);
  background: var(--eis-auth-accent, #f2b632);
  color: var(--eis-auth-accent-fg, #111);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.eis-auth__btn--google { background: #fff; color: #111; }
.eis-auth__btn:disabled { opacity: 0.6; cursor: wait; }

.eis-auth__or {
  margin: 16px 0 2px;
  text-align: center;
  color: var(--eis-auth-muted, #9aa3ad);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eis-auth__label {
  display: block;
  margin: 10px 0 4px;
  font-size: 13px;
  color: var(--eis-auth-muted, #9aa3ad);
}
.eis-auth__row { display: flex; justify-content: space-between; gap: 12px; }
.eis-auth__row .eis-auth__link { margin: 10px 0 0; }
.eis-auth__err--ok { color: #7dc4a0; }
#eis-auth input[type="email"],
#eis-auth input[type="password"] {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--eis-auth-line, #262c34);
  background: var(--eis-auth-bg, #0b0d10);
  color: inherit;
  font: inherit;
}
#eis-auth input[type="email"]:focus,
#eis-auth input[type="password"]:focus { outline: 2px solid var(--eis-auth-accent, #f2b632); outline-offset: 1px; }

.eis-auth__link {
  display: block;
  margin: 14px auto 0;
  padding: 4px;
  background: none;
  border: 0;
  color: var(--eis-auth-accent, #f2b632);
  font: inherit;
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
}
.eis-auth__err { margin: 12px 0 0; color: #ff6b6b; font-size: 14px; }
.eis-auth__err[hidden] { display: none; }

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) #eis-auth {
    --eis-auth-bg: #f4f5f7;
    --eis-auth-fg: #16191d;
    --eis-auth-card: #ffffff;
    --eis-auth-line: #d9dde3;
    --eis-auth-muted: #5f6873;
  }
  :root:not([data-theme="dark"]) .eis-auth__btn--google { border-color: #c9ced6; }
}
