/* Card — the centered dark container used by /login and /device.
 * Pulls in the form primitives (label, input, button) since those
 * only appear inside `.card` today. If a non-card form ever ships,
 * extract these into their own `forms.css` component.
 */

.card {
  position: relative;
  z-index: 1;
  max-width: 420px;
  margin: 8vh auto;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

label {
  display: block;
  font-size: 13px;
  margin-top: 12px;
  color: var(--text-muted);
}
input {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
}
button {
  margin-top: 16px;
  padding: 10px 14px;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}
button:hover { background: var(--accent-bright); }
button.link {
  background: transparent;
  color: var(--accent);
  padding: 0;
  font-weight: 400;
}

/* OIDC sign-in button on /login. Visually distinct from the
   primary `<button>` so it doesn't feel like a regular submit. */
a.oidc {
  display: block;
  text-align: center;
  padding: 10px 14px;
  margin-top: 4px;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
a.oidc:hover { border-color: var(--accent); color: var(--accent); }

/* Reserved for "or" separators; unused today but cheap to keep. */
.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 4px;
  color: var(--text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-soft);
}

.err { color: var(--negative); margin-top: 12px; }
