/* Shared auth presentation: client, staff and backend-served admin. */
.pb-auth-entry {
  --auth-accent: #2f6bff;
  --auth-text: #0f172a;
  --auth-muted: #52647c;
  --auth-border: #d5dde8;
  --auth-radius: 14px;
  box-sizing: border-box;
  width: min(460px, calc(100% - 32px));
  margin: 32px auto;
  color: var(--auth-text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.pb-auth-entry .pb-auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
}
.pb-auth-entry .pb-auth-brand .brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: var(--auth-accent);
  color: #fff;
  font-size: 15px;
  box-shadow: none;
}
.pb-auth-entry .pb-auth-card {
  padding: 24px;
  border: 1px solid var(--auth-border);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 6px 20px rgb(15 23 42 / 5%);
  backdrop-filter: none;
}
.pb-auth-entry .pb-auth-card h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  line-height: 32px;
  letter-spacing: -.025em;
}
.pb-auth-entry .pb-auth-intro {
  margin: 8px 0 20px;
  color: var(--auth-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
}
.pb-auth-entry form { display: grid; gap: 16px; margin: 0; }
.pb-auth-entry label {
  display: grid;
  gap: 6px;
  margin: 0;
  color: var(--auth-text);
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
}
.pb-auth-entry input {
  box-sizing: border-box;
  width: 100%;
  height: 48px;
  min-height: 48px;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--auth-border);
  border-radius: var(--auth-radius);
  background: #fff;
  color: var(--auth-text);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}
.pb-auth-entry input::placeholder { color: #68788d; opacity: 1; }
.pb-auth-entry input:focus { outline: 2px solid var(--auth-accent); outline-offset: 2px; box-shadow: none; }
.pb-auth-entry button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid var(--auth-border);
  border-radius: var(--auth-radius);
  background: #fff;
  color: var(--auth-text);
  font-size: 15px;
  font-weight: 600;
  line-height: 22px;
  box-shadow: none;
  transform: none;
}
.pb-auth-entry button[type="submit"] {
  width: 100%;
  min-height: 48px;
  border-color: var(--auth-accent);
  background: var(--auth-accent);
  color: #fff;
}
.pb-auth-entry button:hover:not(:disabled) { background: #f0f5ff; transform: none; }
.pb-auth-entry button[type="submit"]:hover:not(:disabled) { background: #2459db; }
.pb-auth-entry button:disabled { opacity: .6; cursor: wait; }
.pb-auth-entry :is(button, summary, a):focus-visible { outline: 2px solid var(--auth-accent); outline-offset: 3px; }
.pb-auth-entry .login-password-field { display: block; position: relative; }
.pb-auth-entry .login-password-field input { padding-right: 94px; }
.pb-auth-entry .password-reveal {
  position: absolute;
  top: 2px;
  right: 2px;
  bottom: auto;
  min-height: 44px;
  border: 0;
  padding: 10px;
  color: #2459db;
  background: transparent;
  font-size: 13px;
}
.pb-auth-entry .actions { display: grid; gap: 8px; margin: 0; }
.pb-auth-entry .login-help-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px; margin: 8px 0 0; }
.pb-auth-entry .login-help-actions button { border-color: transparent; color: #2459db; font-size: 14px; padding: 10px 8px; }
.pb-auth-entry .auth-credential-fields { gap: 16px; }
.pb-auth-entry .auth-mode-summary { margin-bottom: 16px; background: #f5f8ff; box-shadow: none; }
.pb-auth-entry .auth-mode-symbol { display: none; }
.pb-auth-entry .auth-mode-switch { margin-top: 8px; width: 100%; }
.pb-auth-entry .pb-auth-storage { margin-top: 20px; color: var(--auth-muted); font-size: 13px; line-height: 20px; }
.pb-auth-entry .pb-auth-storage > p { margin: 0 0 4px; }
.pb-auth-entry .pb-auth-details { margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
.pb-auth-entry .pb-auth-details summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 0;
  box-sizing: border-box;
  color: #2459db;
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  cursor: pointer;
  list-style: none;
}
.pb-auth-entry .pb-auth-details summary::-webkit-details-marker { display: none; }
.pb-auth-entry .pb-auth-details summary::after { content: "+"; margin-left: auto; flex-shrink: 0; font-size: 18px; }
.pb-auth-entry .pb-auth-details[open] summary::after { content: "−"; }
.pb-auth-entry .pb-auth-details-body { padding: 0 0 12px; color: var(--auth-muted); font-size: 13px; font-weight: 400; line-height: 20px; }
.pb-auth-entry .pb-auth-details-body p { margin: 0 0 10px; }
.pb-auth-entry .pb-auth-help { border-top: 1px solid var(--auth-border); margin-top: 12px; }
.pb-auth-entry .pb-auth-error { margin: 0 0 12px; color: #b42318; font-size: 14px; line-height: 20px; }
@media (max-width: 520px) {
  .pb-auth-entry { margin: 20px auto; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .pb-auth-entry .pb-auth-card { padding: 18px 16px; }
  .pb-auth-entry .pb-auth-card h1 { font-size: 24px; line-height: 30px; }
}
