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

body#keycloak-bg {
  margin: 0;
  color: #1d2939;
  background:
    radial-gradient(circle at 17% 24%, rgba(255, 193, 7, 0.13), transparent 28%),
    radial-gradient(circle at 78% 78%, rgba(47, 184, 205, 0.13), transparent 30%),
    linear-gradient(135deg, #151b24 0%, #293443 48%, #161d27 100%);
  font-family: Inter, "DM Sans", "Segoe UI", Arial, sans-serif;
}

body#keycloak-bg::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: 0.34;
  background-image: linear-gradient(125deg, rgba(255, 255, 255, 0.025) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.025) 50%, rgba(255, 255, 255, 0.025) 75%, transparent 75%, transparent);
  background-size: 64px 64px;
}

.pf-v5-c-login {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.pf-v5-c-login__container {
  display: grid !important;
  width: min(100%, 1020px);
  min-height: 550px;
  grid-template-columns: minmax(0, 1.16fr) minmax(360px, 0.84fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.36);
}

#kc-header {
  position: relative;
  display: flex;
  min-height: 100%;
  padding: 58px 56px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 18%, rgba(255, 194, 0, 0.22), transparent 30%),
    linear-gradient(145deg, #1f2a37 0%, #253342 54%, #111820 100%);
}

#kc-header::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.24;
  background-image: linear-gradient(125deg, rgba(255, 255, 255, 0.12) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.12) 50%, rgba(255, 255, 255, 0.12) 75%, transparent 75%, transparent);
  background-size: 72px 72px;
}

#kc-header-wrapper {
  position: relative;
  z-index: 1;
  display: block;
  width: 270px;
  height: 92px;
  overflow: hidden;
  font-size: 0;
  line-height: 0;
  text-indent: -9999px;
  background: url("../img/tele-result-logo-dark-bg.webp") left center / contain no-repeat;
}

#kc-header::after {
  position: relative;
  z-index: 1;
  max-width: 420px;
  color: #f8fafc;
  content: "BENCHMARK INTELLIGENCE\A secure workspace for TeleResult and Cost Optimisation as a Service.";
  font-size: 18px;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.02em;
  white-space: pre-line;
}

.pf-v5-c-login__main {
  display: flex;
  padding: 62px 54px;
  flex-direction: column;
  justify-content: center;
  background: #ffffff;
}

.pf-v5-c-login__main-header {
  margin-bottom: 28px;
}

#kc-page-title {
  margin: 0;
  color: #182230;
  font-size: 32px;
  font-weight: 750;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

#kc-page-title::after {
  display: block;
  margin-top: 10px;
  color: #667085;
  content: "Use your shared workspace identity to continue.";
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
}

.pf-v5-c-form__label-text {
  color: #344054;
  font-size: 13px;
  font-weight: 650;
}

.pf-v5-c-form-control,
.pf-v5-c-input-group .pf-v5-c-form-control {
  min-height: 46px;
  border-color: #d0d5dd;
  border-radius: 9px;
  box-shadow: none;
  font-size: 15px;
}

.pf-v5-c-form-control:focus,
.pf-v5-c-input-group .pf-v5-c-form-control:focus {
  border-color: #f5b700;
  box-shadow: 0 0 0 3px rgba(245, 183, 0, 0.2);
}

.pf-v5-c-button.pf-m-primary,
#kc-login {
  min-height: 48px;
  margin-top: 8px;
  border: 0;
  border-radius: 9px;
  color: #202b38;
  background: #f5b700;
  box-shadow: none;
  font-size: 15px;
  font-weight: 750;
}

.pf-v5-c-button.pf-m-primary:hover,
.pf-v5-c-button.pf-m-primary:focus,
#kc-login:hover,
#kc-login:focus {
  color: #17212e;
  background: #ffc928;
  box-shadow: 0 0 0 3px rgba(245, 183, 0, 0.25);
}

.pf-v5-c-login__main-footer,
#kc-info {
  margin-top: 20px;
  color: #667085;
  font-size: 12px;
}

.pf-v5-c-helper-text,
.pf-v5-c-form__helper-text,
#input-error-container-username,
#input-error-container-password {
  font-size: 13px;
}

@media (max-width: 760px) {
  .pf-v5-c-login {
    padding: 18px;
  }

  .pf-v5-c-login__container {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  #kc-header {
    min-height: 210px;
    padding: 34px 30px;
  }

  #kc-header-wrapper {
    width: 215px;
    height: 64px;
  }

  #kc-header::after {
    margin-top: 38px;
    font-size: 14px;
  }

  .pf-v5-c-login__main {
    padding: 38px 30px;
  }

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