body {
  font-family: 'Karla', sans-serif;
  font-size: 14px;
  margin: 0;
  padding: 0;
  height: 100%;

}

body, html {
  height: 100%;
}

.ws__login__outer-wrapper {
  color: #fff;
  position: relative;
  height: 100%;
  width: 100%;
  align-items: center;
  display: flex;
  justify-content: center;

  &:before {
    content: " ";
    background-image: url('../img/bg-img.jpg');
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: -1;
    background-size: cover;
  }

  &:after {
    z-index: 0;
    content: " ";
    background-color: rgba(34, 41, 56, .85);
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
  }
}

.ws__login__layout-wrapper {
  z-index: 1;
  position: relative;
  width: 100%;
  margin: 0 24px;
}

@media (min-width: 576px) {
  .ws__login__layout-wrapper {
    width: 350px;
  }
}

.ws__login__outer-wrapper #kc-header #kc-header-wrapper {
  display: none;
}

.alert-error.pf-m-danger {
  margin-bottom: 16px;
  color: #ff0f39;
  align-items: center;
  display: flex;
  font-size: 12px;
}

.ws__login__outer-wrapper.ws__login-page .alert-success.pf-m-success {
  margin-bottom: 28px;
  font-size: 12px;
  position: relative;
  padding-left: 28px;
}

.ws__login__outer-wrapper.ws__login-page .alert-success.pf-m-success:before {
  position: absolute;
  display: block;
  content: "";
  background-image: url('../img/success.svg');
  top: 6px;
  left: 0;
  width: 16px;
  height: 16px;
}

.ws__login__outer-wrapper.ws__login-page .ws__form-completed-message {
  font-size: 12px;
  padding-left: 28px;
  position: relative;
}

.ws__login__outer-wrapper.ws__login-page .ws__form-completed-message:before {
  position: absolute;
  display: block;
  content: "";
  background-image: url('../img/success.svg');
  top: 6px;
  left: 0;
  width: 16px;
  height: 16px;
}

.ws__logo-wrapper {
  margin-bottom: 68px;
  text-align: center;
}

.ws__logo {
  height: 47px;
  width: 210px;
}

.ws__form-row {
  margin-bottom: 28px;
}

/* Input*/
.ws__input-cmp {
  display: inline-flex;
  flex-direction: column;
  font-size: 14px;
}

.ws__input-cmp .input-wrapper {
  position: relative;
  border-radius: 5px;
}

.ws__input-cmp .input-wrapper:hover input {
  border: 1px solid #b5bbc6;
}

.ws__input-cmp .input-wrapper:hover .icon {
  stroke: #69758b;
  opacity: 1;
}

.ws__input-cmp .input-wrapper:hover .clear-icon {
  fill: #69758b;
  opacity: 1;
}

.ws__input-cmp .input-wrapper input {
  width: 200px;
  height: 40px;
  box-sizing: border-box;
  padding: 8px 8px 10px 8px;
  font-size: 14px;
  font-weight: 400;
  line-height: 14px;
  color: #1a1a1a; /* Replaced $c-primary-dark with approximate dark color */
  border: 1px solid #cdd3de;
  border-radius: 5px;
  outline: none;
  background-color: #ffffff;
}

.ws__input-cmp .input-wrapper input:focus {
  border: 1px solid #3c7bff;
}

.ws__input-cmp .input-wrapper input:focus ~ .icon {
  stroke: #3c7bff;
  opacity: 1;
}

.ws__input-cmp .input-wrapper input:focus ~ .clear-icon {
  fill: #3c7bff;
  opacity: 1;
}

.ws__input-cmp .input-wrapper input::placeholder {
  color: #69758b;
  font-family: Karla; /* Fixed font-size to font-family */
}

.ws__input-cmp.disabled {
  opacity: 0.5;
}

.ws__input-cmp.disabled .icon {
  stroke: #69758b;
  opacity: 0.5;
}

.ws__input-cmp.disabled input:hover ~ .icon {
  stroke: #69758b;
  opacity: 0.5;
}

.ws__input-cmp .icon {
  position: absolute;
  left: 17px;
  top: 13px;
  stroke: #69758b;
  opacity: 0.5;
}

.ws__input-cmp.withIcon input,
.ws__input-cmp.small.withIcon input {
  padding-left: 38px;
}

.ws__input-cmp .clear-icon {
  position: absolute;
  right: 13px;
  top: 15px;
  fill: #69758b;
  opacity: 0.5;
  cursor: pointer;
}

.ws__input-cmp.withClearIcon input {
  padding-right: 31px;
}

.ws__input-cmp .input-header {
  color: #69758b;
  font-weight: 400;
  margin-bottom: 8px;
}

.ws__error-msg, .ws__input-cmp .error-block {
  color: #ff0f39;
  font-size: 12px;
  margin-top: 8px;
}

.ws__input-cmp.disabled input {
  border: 1px solid #cdd3de;
  color: #69758b;
  cursor: not-allowed;
}

.ws__input-cmp.error input {
  border: 1px solid #ff0f39;
}

.ws__input-cmp.error input:hover,
.ws__input-cmp.error input:focus {
  border: 1px solid #ffffff4d;
}

.ws__input-cmp.small input {
  width: 140px;
  height: 32px;
  padding: 6px 10px;
}

.ws__input-cmp.small .icon {
  top: 9px;
}

.ws__input-cmp.small .clear-icon {
  top: 11px;
}

.ws__input-cmp .icon-wrapper {
  line-height: 1;
  font-size: 0;
}

.ws__input-cmp .icon-wrapper:after {
  content: '';
  position: absolute;
  left: -5px;
  top: -5px;
  bottom: -5px;
  right: -5px;
  cursor: pointer;
}

.ws__input-cmp.transparent {
  position: relative;
  width: 100%;
}

.ws__input-cmp.transparent .input-wrapper input {
  padding-left: 31px;
  width: 100%;
  background-color: transparent;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.ws__input-cmp.transparent .input-wrapper input::placeholder {
  color: #ffffff;
  opacity: 0.8;
}

.ws__input-cmp.transparent .input-wrapper input:-webkit-autofill ~ .icon {
  fill: #222938;
}

.ws__input-cmp.transparent .input-wrapper input:focus {
  border: none;
  border-bottom: 1px solid #ffffff;
}

.ws__input-cmp.transparent .input-wrapper input:focus ~ .icon {
  stroke: none;
  opacity: 1;
}

.ws__input-cmp.transparent .input-wrapper input:hover,
.ws__input-cmp.transparent .input-wrapper input:focus {
  border: none;
  border-bottom: 1px solid #ffffff;
}

.ws__input-cmp.transparent .input-wrapper .icon {
  top: 11px;
  left: 0;
  fill: #ffffff;
  stroke: transparent;
  opacity: 0.8;
}

.ws__input-cmp.transparent .input-wrapper .error-block {
  position: absolute;
  top: 46px;
  left: 0;
  margin: 0;
}

.ws__input-cmp.transparent.error .input-wrapper input {
  border-bottom-color: #ff0f39;
}

.ws__input-cmp.transparent.error .input-wrapper input:hover,
.ws__input-cmp.transparent.error .input-wrapper input:focus {
  border-bottom-color: #ffffff;
}

/*Input Validation error*/
.ws__error-block {
  color: #ff0f39;
  font-size: 12px;
  margin-top: 8px;
  display: block;
}

/*Form submit btn*/

.ws__submit-btn {
  background-color: #3c7bff;
  color: #fff;
  font-weight: 700;
  width: 100%;
  font-size: 16px;
  height: 40px;
  line-height: 16px;
  min-width: 120px;
  padding: 10px 32px 11px;
  align-items: center;
  border: 2px solid transparent;
  border-radius: 5px;
  box-shadow: 0 5px 15px 0 rgba(60, 123, 255, .15);
  box-sizing: border-box;
  cursor: pointer;
  display: inline-flex;
  font-stretch: normal;
  font-style: normal;
  justify-content: center;
  letter-spacing: -.5px;
  outline: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  margin-bottom: 40px;
}

.ws__submit-btn[disabled]{
  opacity: .2;
  cursor: default;
}

/*Form reactivate btn*/

.ws__reactivate-btn {
  margin-top: 16px;
}

/*Error message*/

.ws__form-error-message {
  color: #ff0f39;
  align-items: center;
  display: flex;
  font-size: 12px;
}

.ws__form-error-message a {
  color: #3C7BFF;
}

.ws__error-msg-icon {
  height: 15px;
  margin-right: 10px;
  width: 15px;
  flex-shrink: 0;
}

.ws__password-row {
  text-align: right;
}

.ws__forgot-password-link {
  color: #3c7bff;
  outline: none;
  font-weight: 700;
  text-decoration: none;
}

/* Footer */

.ws_terms-wrapper {
  bottom: 24px;
  display: flex;
  justify-content: center;
  left: 0;
  position: absolute;
  right: 0;
}

.ws_terms-link {
  z-index: 1;
  color: #fff;
  font-size: 16px;
  opacity: .8;
  text-decoration: none;
  font-weight: 300;
}

.ws_terms-link:hover {
  text-decoration: underline;
}

.ws_forgot-pass-back {
  text-align: right;
}

.ws_forgot-pass-back-link {
  font-weight: 700;
  text-decoration: none;
  color: #3c7bff;
  outline: none;
}

#reset-login {
  display: none;
}
#kc-attempted-username:has(+ #reset-login) {
  display: none;
}


/* login-update-password*/

/* hide Sign out from other devices checkbox */
#ws__update-pass-page label:has(> #logout-sessions) {
  display: none;
}

/* hide above form message which we need to update with our message */
#ws__update-pass-page .pf-m-warning {
  display: none;
}
#ws__update-pass-page input[type="password"][aria-invalid="true"] {
  border-bottom-color: #ff0f39;
}
