body {
  font-style: normal;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  margin: 0 auto;
  max-width: 1080px;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  color: #2b2b2b;
}

article,
footer {
  padding: 0 1rem 1rem 1rem;
}

article {
  display: inline-flex;
  flex-direction: column;
  gap: 24px;
}

footer {
  margin-top: auto;
}

.logo {
  margin: 0 auto;
  height: 100px;
  background: url(https://www.rijkshuisstijl.nl/publiek/stylesheet/styleset/rijksoverheid/images/logo-ro.svg)
    center no-repeat;
  background-position: calc(50% + 50px) 0;
}

h1 {
  font-family: "Montserrat", sans-serif;
  font-feature-settings: "clig" off, "liga" off;
  font-size: 24px;
  font-weight: 700;
  line-height: 30px;
  letter-spacing: 0.18px;
}

h3 {
  color: #696969;
  font-feature-settings: "clig" off, "liga" off;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  letter-spacing: 0.4px;
  margin: 0;
}

h4 {
  align-self: stretch;
  font-feature-settings: "clig" off, "liga" off;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  margin: 0;
}

p {
  font-feature-settings: "clig" off, "liga" off;
  font-size: 17px;
  font-style: normal;
  font-weight: 400;
  line-height: 22px;
}

div.user-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

div.item {
  width: 100%;
  gap: 0px;
}

div.spacer {
  display: flex;
  width: 100%;
  height: 1px;
  justify-content: center;
  align-items: center;
  background-color: #e8eaef;
}

a {
  display: flex;
  text-decoration: none;
  font-size: 17px;
}

a span {
  display: block;
  cursor: pointer;
  border: 0 none;
  border-radius: 8px;
  text-align: center;
  line-height: 2.75rem;
  width: 100%;
  max-width: 100%;
}

a.login-button span {
  color: #ffffff;
  font-weight: 600;
  background-color: #0047ff;
}

a.cancel-button span {
  color: #0047ff;
  font-weight: 700;
}

a.logout-button span {
  color: #0047ff;
  font-weight: 700;
  border: 1px solid #0047ff;
}

.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  gap: 16px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e8eaef;
  border-top: 4px solid #0047ff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.hidden {
  display: none !important;
}

.error-message {
  background-color: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
  color: #856404;
  font-size: 17px;
  line-height: 22px;
}

.error-message.critical {
  border: 1px solid #ED395A;
  background-color: #ED395A;
  color: white;
}

.error {
  color: #ED395A; 
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 1000;
}

.modal {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 400px;
  padding: 24px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.modal h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}

.modal-button {
  color: #ffffff;
  font-weight: 600;
  font-size: 17px;
  line-height: 2.75rem;
  background-color: #0047ff;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.login-body {
  justify-content: center;
  min-height: 100vh;
}

.login-body #login {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.login-body article {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 400px;
  text-align: center;
}

.login-body .subtitle {
  color: #696969;
  font-size: 17px;
  line-height: 24px;
  margin: 0 0 8px;
}

a.digid-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 24px;
  height: 52px;
  background-color: #f60;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  white-space: nowrap;
}

a.digid-button:hover {
  background-color: #e05a00;
}

a.digid-button span {
  display: inline;
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  line-height: 52px;
  border: 0;
  border-radius: 0;
  text-align: left;
  width: auto;
  max-width: none;
}

a.digid-button img {
  display: block;
  flex-shrink: 0;
}
