/*
 * Abacus SSO login theme
 * Migrated from the Keycloakify theme (src/login/main.css).
 * Keycloakify kc*-class selectors were mapped to the real Keycloak classes
 * defined in the parent "keycloak" login theme (theme.properties).
 */

:root {
  --pf-global--primary-color--100: #de323c;
  --pf-global--primary-color--200: #C20936;
}

/* Body */
.login-pf body {
  background: url(../img/background.png) no-repeat center center fixed;
  font-family: "Europa", Arial, Helvetica, sans-serif;
  letter-spacing: .8px;
  box-sizing: border-box;
  font-weight: 300;
  font-size: 1.125rem;
  background-size: cover;
}

/* Modal */
.login-pf-page {
  min-height: 100vh;
  padding: 40px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-pf-page .card-pf {
  width: 100%;
  max-width: 650px;
  border-top: none;
  border-radius: 8px;
  overflow: hidden;
  padding: 40px 40px 42px 40px !important;
  position: relative;
  box-shadow: 0 0.5rem 1rem 0 rgba(3,3,3,0.16), 0 0 0.375rem 0 rgba(3,3,3,0.08);
}

/* Header */
#kc-header-wrapper,
#kc-header {
  padding: 0;
}
#kc-logo {
  text-align: left;
}
#kc-page-title {
  text-align: left;
  font-weight: 400;
  font-size: 26px;
}
#kc-locale {
  position: absolute;
  right: 38px;
  top: 34px;
}
#kc-current-locale-link {
  font-size: 16px !important;
  line-height: 28px;
  font-weight: 300;
  letter-spacing: .8px;
  color: #282828 !important;
  padding-right: 30px !important;
}
button#kc-current-locale-link::after {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 640'%3E%3Cpath d='M297.4 470.6C309.9 483.1 330.2 483.1 342.7 470.6L534.7 278.6C547.2 266.1 547.2 245.8 534.7 233.3C522.2 220.8 501.9 220.8 489.4 233.3L320 402.7L150.6 233.4C138.1 220.9 117.8 220.9 105.3 233.4C92.8 245.9 92.8 266.2 105.3 278.7L297.3 470.7z'/%3E%3C/svg%3E");
  display: block;
  width: 20px;
  position: absolute;
  top: 3px;
  right: 0;
}
#kc-locale ul {
  top: 30px;
}
#kc-locale ul a:focus {
  outline: none;
}
#kc-locale ul li a {
  font-weight: 300;
}

/* Content */
#kc-content-wrapper {
  margin-top: 0;
}


/* Form */
.pf-c-input-group {
  border-radius: 4px;
  position: relative;
}
.pf-c-form__label {
  font-size: 18px;
  line-height: 28px;
  font-weight: 300;
  color: #282828;
  margin-bottom: 4px;
  display: block;
}
.pf-c-form-control {
  padding: 14px !important;
  border: 1px solid #f4f4f4;
  transition: border ease-in 0.2s;
  -webkit-transition: border ease-in 0.2s;
  background: #fff;
  font-size: 16px;
  color: #000;
  display: block;
  letter-spacing: 0.5px;
  line-height: 24px;
  -webkit-appearance: none;
  border-radius: 8px;
  outline: none;
  letter-spacing: 1px;
  background: #f4f4f4;
  height: 54px !important;
  background-repeat: no-repeat;
  border-radius: 4px;
}
.pf-c-form-control:focus {
  border: 1px solid #282828;
}
#password {
  padding-right: 50px !important;
  background-position: right 46px center !important;
}
.pf-c-input-group .pf-c-button.pf-m-control {
  background-color: transparent !important;
  border: none !important;
  position: absolute;
  right: 0;
  top: 9px;
  z-index: 101;
}
.pf-c-button:after {
  content: none !important;
}
.pf-c-alert {
  border-top: none;
}
.pf-c-alert__title {
  font-weight: 300;
  letter-spacing: 1px;
  font-size: 14px;
}

/* Form options */
#kc-form-options input[type="checkbox"] {
  margin-top: 7px;
}
.login-pf-settings a,
#kc-form-options label {
  font-size: 16px;
  line-height: 28px;
  font-weight: 300;
  color: #282828;
  display: block;
}
.login-pf-settings a {
  color: #c20936;
}
.login-pf-settings a:hover {
  color: #c20936;
  text-decoration: underline;
}
.required {
  font-size: 0.875rem;
  display: block;
  margin-top: 6px;
}


/* Button */
.pf-c-button:not(.pf-m-control) {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 4px;
  font-family: 'Europa', Arial, Helvetica, sans-serif;
  background: radial-gradient(circle, #de323c 0%, #c20936 180%) !important;
  padding: 20px 38px;
  color: #fff !important;
  line-height: 1;
}

/* Ocra */
#kc-username {
  text-align: left !important;
}
#reset-login .kc-login-tooltip i {
  color: #c20936;
}

/* Mobile */
@media (max-width: 700px) {
  .login-pf body {
    background: none;
  }
  .login-pf-page {
    align-items: start;
    padding: 0;
  }
  .login-pf-page .card-pf {
    box-shadow: none;
    padding: 20px !important;
  }
  #kc-locale {
    position: absolute;
    right: 18px;
    top: 12px;
  }
}
