:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #eef3f4;
  color: #172231;
  /* The issuer tenant's accent and its derived button ink and readable text
     colours (login-brand.mjs) override these per page. */
  --brand-color: #1f6f73;
  --brand-ink: white;
  --brand-text: #1f6f73;
  --brand-mark: #1f6f73;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  background: var(--brand-color);
  color: var(--brand-ink);
  cursor: pointer;
  font-weight: 800;
}

button:hover {
  filter: brightness(0.88);
}

.app-shell {
  min-height: 100vh;
}

.login-panel {
  display: grid;
  width: min(380px, calc(100vw - 32px));
  margin: 16vh auto;
  padding: 24px;
  border: 1px solid #c7d4d8;
  border-top: 4px solid var(--brand-color);
  border-radius: 8px;
  background: white;
  box-shadow: 0 22px 50px rgba(23, 34, 49, 0.12);
}

.login-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  margin-bottom: 6px;
  color: var(--brand-mark);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.login-brand:hover,
.login-brand:focus-visible {
  text-decoration: underline;
}

/* A split wordmark: the plain part in the page ink, the accent part in the brand colour. */
.login-brand-wordmark {
  color: #172231;
}

.login-brand-accent {
  color: var(--brand-mark);
}

.login-brand-mark {
  width: 30px;
  height: 30px;
  padding: 6px;
  border: 2px solid currentColor;
  border-radius: 50%;
  object-fit: contain;
}

.login-form {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  color: #415967;
  font-size: 13px;
  font-weight: 800;
}

input {
  width: 100%;
  border: 1px solid #b7c8cd;
  border-radius: 8px;
  padding: 10px 12px;
  background: white;
  color: #172231;
}

.login-form[hidden],
.login-form p[hidden] {
  display: none;
}

.hint {
  margin: 0;
  color: #415967;
  overflow-wrap: anywhere;
}

.link-button {
  justify-self: start;
  min-height: 44px;
  padding: 10px 0;
  background: none;
  color: var(--brand-text);
  font-weight: 700;
  text-decoration: underline;
}

.link-button:hover {
  background: none;
  filter: brightness(0.88);
}

.error {
  margin: 0;
  color: #a83232;
}

@media (max-width: 520px) {
  .login-panel {
    margin-top: 10vh;
    padding: 20px;
  }
}
