:root {
  --imobly-canvas: #fbfaf9;
  --imobly-ink: #12111f;
  --imobly-muted: #6f7080;
  --imobly-line: #dcdde6;
  --imobly-violet: #7357e7;
  --imobly-violet-dark: #5a3dcc;
}

html,
body,
#keycloak-bg {
  min-height: 100%;
}

#keycloak-bg {
  margin: 0;
  color: var(--imobly-ink);
  background:
    linear-gradient(rgb(101 92 166 / 5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(101 92 166 / 5%) 1px, transparent 1px), var(--imobly-canvas) !important;
  background-size: 76px 76px !important;
  font-family: Arial, Helvetica, sans-serif;
}

.imobly-auth-shell {
  position: relative;
  display: flex;
  min-height: 100vh;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
}

.imobly-auth-shell::after {
  position: absolute;
  z-index: -1;
  top: -17vw;
  right: -11vw;
  width: min(39vw, 560px);
  aspect-ratio: 1;
  border: 1px solid rgb(115 87 231 / 14%);
  border-radius: 50%;
  box-shadow:
    0 0 0 40px rgb(115 87 231 / 3%),
    0 0 0 92px rgb(115 87 231 / 2%);
  content: '';
}

.imobly-auth-access {
  width: min(100% - 48px, 560px);
  margin-left: clamp(24px, 11vw, 174px);
  padding: 72px 0;
}

.imobly-auth-card {
  width: 100%;
}

.imobly-auth-card-header {
  margin-bottom: 34px;
}

.imobly-auth-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 73px;
  color: #17161b;
  font-size: 31px;
  font-weight: 800;
  letter-spacing: -0.085em;
  line-height: 1;
}

.imobly-auth-mark {
  display: grid;
  width: 29px;
  height: 27px;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 3px;
  transform: skewX(-18deg);
}

.imobly-auth-mark i {
  display: block;
  border-radius: 2px 2px 5px 2px;
  background: currentColor;
}

.imobly-auth-mark i:nth-child(1) {
  height: 14px;
}

.imobly-auth-mark i:nth-child(2) {
  height: 27px;
}

.imobly-auth-mark i:nth-child(3) {
  height: 20px;
}

.imobly-auth-kicker {
  margin: 0 0 20px;
  color: var(--imobly-violet);
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  line-height: 1.2;
}

#kc-page-title {
  max-width: 540px;
  margin: 0;
  color: var(--imobly-ink);
  font-size: clamp(43px, 5vw, 68px);
  font-weight: 800;
  letter-spacing: -0.075em;
  line-height: 0.94;
}

.imobly-auth-card-header > p:not(.imobly-auth-kicker) {
  max-width: 480px;
  margin: 15px 0 0;
  color: var(--imobly-muted);
  font-size: 18px;
  letter-spacing: -0.025em;
  line-height: 1.55;
}

.imobly-auth-method {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--imobly-line);
  color: #604ac9;
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.imobly-auth-method span {
  display: flex;
  height: 50px;
  align-items: center;
  border-bottom: 3px solid var(--imobly-violet);
}

.imobly-auth-method small {
  color: #8e8b95;
  font-size: 9px;
  letter-spacing: 0.12em;
}

.imobly-auth-card-body .pf-v5-c-form__group-label,
.imobly-auth-card-body .pf-v5-c-form__group {
  margin: 0;
}

.imobly-auth-card-body .pf-v5-c-form__group + .pf-v5-c-form__group {
  margin-top: 18px;
}

.imobly-auth-card-body .pf-v5-c-form__label,
.imobly-auth-card-body label {
  color: #60606b;
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.imobly-auth-card-body #username,
.imobly-auth-card-body #password {
  min-height: 64px;
  border: 1px solid var(--imobly-line);
  border-radius: 13px;
  background: rgb(255 255 255 / 88%);
  box-shadow: none;
  color: #272632;
  font: inherit;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.imobly-auth-card-body #username {
  padding: 0 18px;
}

.imobly-auth-card-body #username:focus,
.imobly-auth-card-body #password:focus {
  border-color: var(--imobly-violet);
  box-shadow: 0 0 0 3px rgb(115 87 231 / 14%);
  outline: 0;
}

.imobly-auth-card-body .pf-v5-c-input-group #password {
  border-radius: 13px 0 0 13px;
}

.imobly-auth-card-body #password-show-password {
  min-width: 62px;
  min-height: 64px;
  border: 1px solid var(--imobly-line);
  border-left: 0;
  border-radius: 0 13px 13px 0;
  background: rgb(255 255 255 / 88%);
  color: var(--imobly-muted);
}

.imobly-auth-card-body .pf-v5-c-form__helper-text {
  margin-top: 9px;
  color: var(--imobly-muted);
  font-size: 12px;
}

.imobly-auth-card-body #kc-form-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  color: var(--imobly-muted);
  font-size: 13px;
}

.imobly-auth-card-body #kc-form-options a,
.imobly-auth-info a {
  color: #604ac9;
  font-weight: 700;
  text-decoration: none;
}

.imobly-auth-card-body .pf-v5-c-form__actions {
  margin-top: 27px;
}

.imobly-auth-card-body #kc-login {
  min-height: 61px;
  border: 1px solid #17152a;
  border-radius: 999px;
  background: #17152a;
  color: #fff;
  font-size: 15px;
  font-weight: 760;
  letter-spacing: -0.02em;
  transition:
    background 160ms ease,
    transform 160ms ease;
}

.imobly-auth-card-body #kc-login:hover,
.imobly-auth-card-body #kc-login:focus {
  background: #302b4d;
  transform: translateY(-1px);
}

.imobly-auth-card-body .pf-v5-c-alert {
  margin-bottom: 22px;
  border-radius: 13px;
  font-size: 13px;
}

.imobly-auth-card-body .pf-v5-c-alert.pf-m-danger {
  border-color: #f2c3bc;
  background: #fff5f3;
  color: #9e3526;
}

.imobly-auth-footer,
.imobly-auth-social:empty,
.imobly-auth-info:empty {
  display: none;
}

@media (max-width: 780px) {
  .imobly-auth-shell {
    display: block;
  }

  .imobly-auth-access {
    width: min(100% - 56px, 560px);
    margin: 0 auto;
    padding: 68px 0;
  }

  .imobly-auth-wordmark {
    margin-bottom: 60px;
  }
}

@media (max-width: 480px) {
  #keycloak-bg {
    background-size: 52px 52px !important;
  }

  .imobly-auth-access {
    width: min(100% - 40px, 560px);
    padding: 48px 0;
  }

  .imobly-auth-wordmark {
    margin-bottom: 52px;
    font-size: 28px;
  }

  .imobly-auth-kicker {
    font-size: 10px;
  }

  #kc-page-title {
    font-size: 48px;
  }

  .imobly-auth-card-header > p:not(.imobly-auth-kicker) {
    font-size: 16px;
  }

  .imobly-auth-method small {
    display: none;
  }
}
