/* The sign-in page stands alone: it loads nothing of the portal behind it. */
:root {
  --accent: #a81c1f; --accent-dark: #7e1416;
  --ink: #16181b; --ink-3: #6b7280; --line: #e0e3e7; --ground: #f4f5f7;
  --warn-ink: #8a5a07; --warn-soft: #fff6e5; --bad: #a81c1f; --bad-soft: #fdecec;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; }
body {
  display: flex; align-items: center; justify-content: center; padding: 16px;
  background: var(--ground); color: var(--ink); -webkit-font-smoothing: antialiased;
  font: 14px/1.45 "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.card {
  width: 100%; max-width: 360px; padding: 28px 28px 22px; background: #fff;
  border: 1px solid #e4e6ea; border-radius: 14px; box-shadow: 0 10px 30px rgba(22, 24, 27, .08);
}
.brand { display: flex; align-items: center; gap: 11px; margin-bottom: 22px; }
.mark {
  width: 34px; height: 34px; flex: none; border-radius: 9px; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
h1 { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -.3px; }
label { display: block; margin: 14px 0 5px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
input {
  width: 100%; height: 40px; padding: 0 12px; font: inherit; color: inherit; background: #fff;
  border: 1px solid var(--line); border-radius: 9px; outline: none;
}
input:focus { border-color: #d9a3a4; box-shadow: 0 0 0 3px rgba(168, 28, 31, .12); }
.pw { position: relative; }
.pw input { padding-right: 44px; }
.ghost {
  position: absolute; top: 3px; right: 3px; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 7px;
  background: transparent; color: var(--ink-3); cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.ghost:hover, .ghost:focus-visible { background: #f2f3f5; color: var(--ink); outline: none; }
.ghost .slash { display: none; }
.ghost[aria-pressed="true"] .slash { display: inline; }
.hint { margin: 10px 0 0; padding: 8px 11px; border-radius: 8px; font-size: 12.5px; }
.hint.warn { background: var(--warn-soft); color: var(--warn-ink); }
.hint.bad { background: var(--bad-soft); color: var(--bad); }
.primary {
  width: 100%; height: 42px; margin-top: 20px; border: 0; border-radius: 9px; cursor: pointer;
  background: var(--accent); color: #fff; font: inherit; font-weight: 700;
}
.primary:hover, .primary:focus-visible { background: var(--accent-dark); outline: none; }
.primary:disabled { opacity: .65; cursor: default; }
.link {
  display: block; margin: 16px auto 0; padding: 2px 4px; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 12.5px; color: var(--ink-3); text-decoration: underline;
}
.link:hover, .link:focus-visible { color: var(--accent); outline: none; }
.note { margin: 10px 0 0; font-size: 12.5px; color: var(--ink-3); text-align: center; }
