/* Branding entry point: swap these custom properties per your brand rules. */
:root {
  --brand-primary: #1a3c6e;
  --brand-primary-hover: #14304f;
  --brand-bg: #f4f6f8;
  --brand-text: #1b1f23;
  --brand-error: #b3261e;
  --brand-radius: 8px;
  --brand-font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--brand-bg);
  color: var(--brand-text);
  font-family: var(--brand-font);
}

.card {
  width: min(92vw, 380px);
  background: #fff;
  border-radius: var(--brand-radius);
  box-shadow: 0 2px 12px rgb(0 0 0 / 0.12);
  padding: 2rem;
}

h1 { margin: 0 0 1rem; font-size: 1.4rem; }

label { display: block; margin: 0.75rem 0 0.25rem; font-weight: 600; font-size: 0.9rem; }

input[type="text"], input[type="password"] {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #c4c9ce;
  border-radius: var(--brand-radius);
  font-size: 1rem;
}

input:focus-visible, button:focus-visible, a:focus-visible {
  outline: 3px solid var(--brand-primary);
  outline-offset: 2px;
}

.checkbox { display: flex; gap: 0.5rem; align-items: flex-start; font-weight: 400; margin-top: 1rem; }

button, .idp-btn {
  display: block;
  width: 100%;
  margin-top: 1.25rem;
  padding: 0.65rem;
  border: none;
  border-radius: var(--brand-radius);
  background: var(--brand-primary);
  color: #fff;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

button:hover, .idp-btn:hover { background: var(--brand-primary-hover); }
button[disabled] { opacity: 0.6; cursor: wait; }

.idp-btn { background: #fff; color: var(--brand-primary); border: 1px solid var(--brand-primary); }
.idp-btn:hover { background: var(--brand-bg); }

.divider { text-align: center; margin: 1.25rem 0 0; color: #6b7280; font-size: 0.85rem; }

.error { color: var(--brand-error); font-size: 0.9rem; }
.hint { font-size: 0.85rem; color: #6b7280; margin: 0 0 0.5rem; }

h2 { font-size: 1rem; margin: 1.25rem 0 0.5rem; }

.mfa-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0;
  font-size: 0.9rem;
  flex-wrap: wrap;
}

button.small {
  width: auto;
  margin: 0;
  padding: 0.3rem 0.75rem;
  font-size: 0.85rem;
}

button.danger { background: var(--brand-error); }
button.danger:hover { background: #8c1d17; }

.secret {
  display: block;
  word-break: break-all;
  background: var(--brand-bg);
  padding: 0.5rem;
  border-radius: var(--brand-radius);
  font-size: 0.85rem;
  user-select: all;
}

.passkeys { list-style: none; margin: 0.25rem 0; padding: 0; }
.passkeys li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.85rem;
  padding: 0.25rem 0;
}
.passkeys .empty { color: #6b7280; }
