:root {
  color-scheme: light;
  --surface: #f2f2f2;
  --ink: #22272a;
  --muted: #727c85;
  --accent: #f3e600;
  font-family: "Century Gothic", "Trebuchet MS", Arial, sans-serif;
  color: var(--ink);
  background: var(--surface);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--surface) url("devices.svg") repeat center center / 960px 580px;
  font-family: "Century Gothic", "Trebuchet MS", Arial, sans-serif;
  color: var(--ink);
}
button, input { font: inherit; }
.auth-stage {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 48px 24px;
}
.auth-group { width: 100%; text-align: center; }
.site-title {
  margin: 0 0 42px;
  font-size: clamp(29px, 3.4vw, 50px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .15em;
  text-shadow: 0 2px 3px #22272a16;
  text-wrap: balance;
}
.auth-form { width: min(100%, 280px); margin: 0 auto; }
.intro { font-size: 16px; margin: 0 0 26px; color: #58626b; }
.hint { font-size: 13px; margin: 20px 0 0; color: #58626b; letter-spacing: .035em; }
.primary-button, .secondary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 12px 18px;
  border: 0;
  border-radius: 15px;
  text-decoration: none;
  cursor: pointer;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .02em;
}
.primary-button { background: var(--ink); color: var(--accent); }
.primary-button:hover { background: #353c41; }
.primary-button:disabled { opacity: .65; cursor: wait; }
.secondary-button { background: #6d7780; color: white; margin-top: 8px; }
.secondary-button:hover { background: #56616a; }
:is(button, a, input):focus-visible { outline: 3px solid #526574; outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.hs-field { position: relative; margin: 0 0 14px; }
.hs-field input {
  display: block;
  width: 100%;
  height: 42px;
  padding: 8px 13px;
  border: 1px solid #cbd3dd;
  border-radius: 15px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  letter-spacing: .045em;
}
.hs-field input::placeholder { color: #737f8c; opacity: 1; }
.hs-field input[type="password"], .hs-field input[name="password"] { padding-right: 45px; }
.password-toggle {
  position: absolute;
  right: 5px;
  top: 2px;
  height: 38px;
  width: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.password-toggle svg { width: 25px; height: 25px; }
.hs-error, .error-message { font-size: 14px; color: #9a2424; line-height: 1.6; }
.hs-error { display: block; margin: 8px 0 0; }
.empty-home { min-height: 100vh; background: #fff; }
.logout { position: fixed; top: 20px; right: 24px; }
.logout button { border: 1px solid #d8dde1; border-radius: 10px; background: white; padding: 8px 16px; color: #525e68; cursor: pointer; }

/* Keycloak v2: inherited OTP, enrollment, recovery and error forms. */
html.login-pf { background: var(--surface); }
.login-pf body#keycloak-bg {
  background: var(--surface) url("devices.svg") repeat center center / 960px 580px;
  height: auto;
}
body#keycloak-bg .pf-v5-c-login {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto;
  grid-template-areas: "main";
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  padding: 48px 24px;
  background: transparent;
}
body#keycloak-bg .pf-v5-c-login__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: none;
  gap: 0;
  margin-inline: auto;
  grid-template-columns: 1fr;
  justify-self: center;
  grid-area: main;
}
body#keycloak-bg #kc-header { margin: 0 0 42px; padding: 0; width: 100%; }
body#keycloak-bg #kc-header-wrapper {
  color: var(--ink) !important;
  font: 700 clamp(29px, 3.4vw, 50px) / 1.25 "Century Gothic", "Trebuchet MS", Arial, sans-serif;
  letter-spacing: .15em;
  text-transform: none;
  text-align: center;
  text-wrap: balance;
  text-shadow: 0 2px 3px #22272a16;
}
body#keycloak-bg .pf-v5-c-login__main {
  width: min(100%, 360px);
  background: transparent;
  box-shadow: none;
  margin-inline: auto;
  align-self: center;
}
body[data-page-id="login-login"] .pf-v5-c-login__main { width: min(100%, 280px) !important; }
body#keycloak-bg :is(.pf-v5-c-login__main-header, .pf-v5-c-login__main-body, .pf-v5-c-login__main-footer, .pf-v5-c-login__main-footer-band) {
  border: 0;
  background: transparent;
  padding: 0;
}
body#keycloak-bg .pf-v5-c-login__main-header { margin-bottom: 24px; }
body[data-page-id="login-login"] .pf-v5-c-login__main-header { display: none; }
body#keycloak-bg #kc-page-title { color: var(--ink); text-align: center; font-size: 20px; }
body#keycloak-bg .pf-v5-c-form-control {
  background: white;
  border: 1px solid #cbd3dd;
  border-radius: 15px;
  --pf-v5-c-form-control--after--BorderBottomWidth: 0;
  --pf-v5-c-form-control--before--BorderWidth: 0;
}
body#keycloak-bg .pf-v5-c-form-control input { min-height: 42px; }
body#keycloak-bg .pf-v5-c-button.pf-m-primary {
  color: var(--accent);
  background: var(--ink);
  min-height: 48px;
  border-radius: 15px;
  font-size: 17px;
  font-weight: 600;
}
body#keycloak-bg .pf-v5-c-button::after { border: 0; }
body#keycloak-bg a { color: #414f5a; }
body#keycloak-bg a.secondary-button { color: white; }
body#keycloak-bg .pf-v5-c-login__main-footer:empty { display: none; }
body#keycloak-bg .pf-v5-c-form__label { color: #525e68; }
body#keycloak-bg .pf-v5-c-form__helper-text { color: #58626b; }
body#keycloak-bg .pf-v5-c-alert { border-radius: 12px; margin-bottom: 18px; }
@media (max-width: 540px) {
  body, .login-pf body#keycloak-bg { background-size: 720px 435px; }
  .site-title, body#keycloak-bg #kc-header-wrapper { letter-spacing: .08em; }
  .site-title, body#keycloak-bg #kc-header { margin-bottom: 32px; }
  .auth-stage, body#keycloak-bg .pf-v5-c-login { padding: 36px 22px; }
}
