/* login.css — sign-in page. */
:root {
  --accent: #3b7ddd;
  --ink: #1f2a37;
  --muted: #7a8794;
  --line: #e3e8ee;
  --page: linear-gradient(135deg, #eef3fb, #e7ecf3);
  --panel: #fff;
  color-scheme: light;
}
:root[data-theme='dark'] {
  --accent: #4b8ef0;
  --ink: #e7ecf3;
  --muted: #8f9bab;
  --line: #2c3547;
  --page: linear-gradient(135deg, #0f1420, #151b28);
  --panel: #1a2030;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--page);
  color: var(--ink);
}
.card {
  background: var(--panel);
  width: 340px;
  max-width: 92vw;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(20, 30, 45, 0.16);
  padding: 28px 26px;
}
h1 {
  font-size: 19px;
  margin: 0 0 3px;
  font-weight: 700;
}
h1 span {
  color: var(--accent);
}
p.sub {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13px;
}
label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  font-weight: 600;
  margin: 12px 0 5px;
}
input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
}
input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 125, 221, 0.15);
}
button {
  width: 100%;
  margin-top: 20px;
  padding: 11px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
button:hover {
  background: #2f6fce;
}
button:disabled {
  opacity: 0.6;
  cursor: default;
}
.err {
  color: #e5484d;
  font-size: 13px;
  margin-top: 14px;
  min-height: 18px;
}

/* ---- forgot password, and the choose-a-password page ---- */
[hidden] {
  display: none !important;
}
/* a button that looks like a link, e.g. "Forgot your password?" */
button.linkbtn {
  width: auto;
  margin: 6px 0 0;
  padding: 0;
  background: none;
  color: var(--accent);
  font-weight: 500;
  font-size: 13px;
}
button.linkbtn:hover {
  background: none;
  text-decoration: underline;
}
.ok {
  color: #2e9e5b;
  font-size: 13px;
  line-height: 1.45;
}
.ok:empty {
  display: none;
}
p.hint {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
  margin: 8px 0 0;
}
p.hint strong {
  color: var(--ink);
}
/* "Go to sign in" on the expired-link page */
a.btnlink {
  display: block;
  margin-top: 20px;
  padding: 11px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  text-decoration: none;
}
