/* Presentation-only child of Keycloak 26.6.1's keycloak login theme.
   The parent retains every form, action, validation message and authenticator.
   Authentication pages intentionally remain naturally scrollable when needed. */
.login-pf body.ibeat-login {
  --ibeat-ink: #173b53;
  --ibeat-muted: #546f80;
  --ibeat-blue: #126aa5;
  --ibeat-teal: #087e89;
  --ibeat-line: #c9dbe5;
  --ibeat-field-line: #7893a4;
  --pf-global--primary-color--100: #126aa5;
  --pf-global--primary-color--200: #0b527f;
  --pf-global--Color--100: #173b53;
  --pf-global--Color--200: #546f80;
  min-height: 100vh;
  min-height: 100dvh;
  height: auto;
  margin: 0;
  color: var(--ibeat-ink);
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 14px;
  background: radial-gradient(ellipse at 12% 4%, #d6edf3 0, transparent 43%),
    radial-gradient(ellipse at 94% 95%, #d9efec 0, transparent 42%), #eef5f9;
  background-attachment: fixed;
  overflow-x: hidden;
}

.ibeat-login .login-pf-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 40px 24px;
}

.ibeat-login #kc-header {
  width: min(100%, 460px);
  padding: 0;
  float: none;
  color: var(--ibeat-ink);
  text-align: center;
  white-space: normal;
}

.ibeat-login #kc-header-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 0 24px;
  color: var(--ibeat-ink);
  font-size: 28px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -.6px;
  text-transform: none;
  white-space: normal;
}

.ibeat-login #kc-header-wrapper::before {
  content: "iB";
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(140deg, var(--ibeat-blue), var(--ibeat-teal));
  box-shadow: 0 5px 14px #126aa51a;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -1px;
}

.ibeat-login .login-pf-page .card-pf {
  position: relative;
  width: min(100%, 460px);
  max-width: 460px;
  margin: 0;
  padding: 28px 32px 0;
  border: 1px solid #d8e5ed;
  border-top: 4px solid var(--ibeat-teal);
  border-radius: 18px;
  background: #fff;
  color: var(--ibeat-ink);
  box-shadow: 0 18px 54px #1a4d7012, 0 2px 8px #1a4d7009;
}

.ibeat-login .login-pf-page .login-pf-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 24px;
  text-align: start;
}

.ibeat-login h1#kc-page-title {
  flex: 1 1 100%;
  margin: 0;
  color: var(--ibeat-ink);
  font-size: 24px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -.35px;
  overflow-wrap: anywhere;
}

.ibeat-login #kc-content,
.ibeat-login #kc-content-wrapper,
.ibeat-login #kc-form-wrapper {
  width: 100%;
  min-width: 0;
  margin: 0;
}

.ibeat-login .form-group {
  margin: 0 0 20px;
}

.ibeat-login .pf-c-form__label,
.ibeat-login .pf-c-form__label-text {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--ibeat-ink);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
}

.ibeat-login input.pf-c-form-control,
.ibeat-login select.pf-c-form-control,
.ibeat-login textarea.pf-c-form-control {
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--ibeat-field-line);
  border-radius: 7px;
  background: #fbfdff;
  color: var(--ibeat-ink);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.4;
  box-shadow: none;
}

.ibeat-login textarea.pf-c-form-control {
  height: auto;
}

.ibeat-login .pf-c-input-group {
  display: flex;
  min-width: 0;
  border-radius: 7px;
}

.ibeat-login .pf-c-input-group input {
  flex: 1 1 auto;
  width: 0;
  border-start-end-radius: 0;
  border-end-end-radius: 0;
}

.ibeat-login .pf-c-input-group button[data-password-toggle] {
  flex: 0 0 46px;
  min-width: 46px;
  min-height: 46px;
  padding: 8px;
  border: 1px solid var(--ibeat-field-line);
  border-inline-start: 0;
  border-start-end-radius: 7px;
  border-end-end-radius: 7px;
  background: #f2f8fb;
  color: var(--ibeat-blue);
}

.ibeat-login .pf-c-form-control::after,
.ibeat-login .pf-c-button.pf-m-primary::after,
.ibeat-login .pf-c-input-group button[data-password-toggle]::after {
  border: 0;
}

.ibeat-login :is(input, select, textarea)[aria-invalid="true"] {
  border-color: #ba3044;
  background: #fffafb;
}

.ibeat-login .pf-c-form__helper-text,
.ibeat-login .pf-c-form__helper-text.pf-m-error,
.ibeat-login #input-error {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.ibeat-login .pf-m-error,
.ibeat-login #input-error {
  color: #a3273c;
}

.ibeat-login #kc-form-buttons {
  margin: 24px 0 0;
}

.ibeat-login .pf-c-button.pf-m-primary {
  min-height: 46px;
  padding: 12px 16px;
  border: 1px solid var(--ibeat-blue);
  border-radius: 7px;
  background: var(--ibeat-blue);
  color: #fff;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 600;
  text-shadow: none;
  box-shadow: 0 4px 10px #126aa518;
}

.ibeat-login .pf-c-button.pf-m-primary:hover {
  border-color: #0b527f;
  background: #0b527f;
}

.ibeat-login :is(button, input[type="submit"]):disabled {
  cursor: wait;
  opacity: .65;
}

.ibeat-login :is(input, button, select, textarea, a):focus-visible {
  outline: 3px solid var(--ibeat-blue);
  outline-offset: 3px;
}

.ibeat-login input.pf-c-form-control:focus,
.ibeat-login select.pf-c-form-control:focus,
.ibeat-login textarea.pf-c-form-control:focus {
  border-color: var(--ibeat-blue);
}

.ibeat-login a {
  color: #075f96;
  text-underline-offset: 3px;
}

.ibeat-login a:hover {
  color: #08446d;
  text-decoration: underline;
}

.ibeat-login .login-pf-settings {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  color: var(--ibeat-muted);
}

.ibeat-login #kc-form-options .checkbox {
  margin: 0;
  color: var(--ibeat-muted);
}

.ibeat-login .checkbox label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0;
  font-size: 13px;
}

.ibeat-login .checkbox input[type="checkbox"] {
  position: static;
  margin: 0;
  width: 18px;
  height: 18px;
  accent-color: var(--ibeat-blue);
}

.ibeat-login .login-pf-settings a {
  display: inline-block;
  padding-block: 6px;
  font-size: 13px;
}

.ibeat-login #kc-locale {
  position: relative;
  inset: auto;
  width: 100%;
  z-index: 100;
  text-align: end;
}

.ibeat-login #kc-locale-dropdown {
  position: relative;
}

.ibeat-login #kc-locale-dropdown button {
  min-height: 44px;
  padding: 7px 10px;
  border: 1px solid #d8e5ed;
  border-radius: 6px;
  background: #f7fbfd;
  color: var(--ibeat-muted);
  font-size: 13px;
  line-height: 1.4;
  text-align: start;
}

.ibeat-login #kc-locale ul {
  left: auto;
  right: auto;
  inset-block-start: 100%;
  inset-inline-end: 0;
  min-width: 140px;
  max-width: min(240px, calc(100vw - 56px));
  margin: 4px 0 0;
  border: 1px solid var(--ibeat-line);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 8px 22px #173b5320;
}

.ibeat-login #kc-locale-dropdown a {
  display: block;
  padding: 10px 12px;
  color: var(--ibeat-ink);
  font-size: 14px;
  line-height: 1.4;
  text-align: start;
}

.ibeat-login .pf-c-alert {
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid #c6dbe8;
  border-radius: 7px;
  background: #eef7fd;
  color: var(--ibeat-ink);
}

.ibeat-login .pf-c-alert.pf-m-danger {
  border-color: #e8bbc3;
  background: #fff4f6;
  color: #a3273c;
}

.ibeat-login .pf-c-alert.pf-m-warning {
  border-color: #e5d7b1;
  background: #fff9eb;
  color: #74521b;
}

.ibeat-login .pf-c-alert.pf-m-success {
  border-color: #badfce;
  background: #edf9f3;
  color: #1f6848;
}

.ibeat-login .pf-c-alert__title {
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.ibeat-login #kc-info {
  margin: 24px 0 0;
}

.ibeat-login #kc-info-wrapper {
  padding: 12px;
  border-radius: 7px;
  background: #f2f8fb;
  color: var(--ibeat-muted);
  font-size: 13px;
}

.ibeat-login #kc-username {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
}

.ibeat-login #kc-attempted-username {
  padding: 0;
  color: var(--ibeat-ink);
  font-size: 16px;
  overflow-wrap: anywhere;
}

.ibeat-login .ibeat-login-footer {
  margin-top: 28px;
  padding: 20px 0 22px;
  border-top: 1px solid #e1ecf2;
  text-align: center;
}

.ibeat-login .ibeat-login-footer p {
  margin: 0;
  line-height: 1.5;
}

.ibeat-login .ibeat-login-institution {
  color: var(--ibeat-ink);
  font-size: 13px;
  font-weight: 600;
}

.ibeat-login .ibeat-login-location {
  color: var(--ibeat-muted);
  font-size: 12px;
}

.ibeat-login .ibeat-login-product {
  padding-top: 10px;
  color: #567889;
  font-size: 11px;
  letter-spacing: .35px;
}

@media (max-width: 480px) {
  .ibeat-login .login-pf-page {
    padding: 24px 16px;
  }
  .ibeat-login #kc-header-wrapper {
    padding-bottom: 20px;
    font-size: 25px;
  }
  .ibeat-login .login-pf-page .card-pf {
    padding: 22px 20px 0;
    border-radius: 14px;
  }
  .ibeat-login h1#kc-page-title {
    font-size: 22px;
  }
  .ibeat-login .login-pf-page .login-pf-header {
    margin-bottom: 20px;
  }
}

@media (max-height: 700px) {
  .ibeat-login .login-pf-page {
    justify-content: flex-start;
    padding-block: 20px;
  }
  .ibeat-login #kc-header-wrapper {
    padding-bottom: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ibeat-login *, .ibeat-login *::before, .ibeat-login *::after {
    scroll-behavior: auto;
    animation: none;
    transition: none;
  }
}
