/* Global */

@font-face {
  font-family: 'Gilroy';
  src: local('Gilroy'), url('../fonts/Gilroy-Regular.otf') format('truetype');
  font-weight: normal;
}
@font-face {
  font-family: 'Gilroy';
  src: local('Gilroy'), url('../fonts/Gilroy-Medium.otf') format('truetype');
  font-weight: 500;
}

* {
  font-family: 'Gilroy', sans-serif;
}

body {
  color: #5a5a5a;
  font-size: 14px;
}

label {
  font-weight: 500;
}

#kc-form-login label {
  font-weight: 500;
}
a {
  color: #8d8d8d;
  text-decoration: underline;
}

#login-with-sinch {
  margin-bottom: 15px;
  text-decoration: none;
  position: relative;
  font-size: 14px;
  background: rgb(255, 200, 10);
  color: #333f48;
  font-weight: 500;
  display: flex;
  flex-direction: row;
  justify-content: center;
  border-radius: 5px;
  border: none;
  padding: 8px 25px;
  width: 100%;
  align-items: center;
  box-shadow: 0 2px 3px rgba(3, 3, 3, 0.1);
}

#login-with-sinch img {
  height: 15px;
  position: absolute;
  top: 50%;
  left: 15px;
  margin-right: 15px;
  margin-top: -7.5px;
}

.justify-center-container {
  display: flex;
  justify-content: center;
}

a:hover,
a:focus {
  color: rgb(0, 113, 113);
  outline: none;
}

.btn {
  min-height: 2.143em;
  -webkit-appearance: none;
  /* max-height: 2.143em; */
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 15px;
  outline: none;
  border-width: 2px;
  border-style: solid;
  border-image: initial;
  border-radius: 5px;
  width: 100%;
  text-align: center;
}

.btn:hover {
  filter: brightness(90%);
}

.btn-primary {
  background: rgb(0, 113, 113);
  border-color: rgb(0, 113, 113);
  color: rgb(255, 255, 255);
}

.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus {
  outline: none;
  border-color: rgba(0, 113, 113, 90%);
  background: rgba(0, 113, 113, 90%);
}

.btn.btn-primary:disabled {
  outline: none;
  background: rgba(0, 113, 113);
  border: none !important;
  color: rgb(255, 255, 255) !important;
  opacity: 0.7 !important;
  background-color: rgb(0, 113, 113) !important;
}

.alert {
  border-radius: 5px;
}

.pficon-warning-triangle-o:before {
  display: none;
}

.alert.alert-warning {
  padding: 15px;
  padding-left: 15px;
}

.alert-warning {
  background-color: rgb(243, 248, 254);
  border-color: rgb(243, 248, 254);
  color: rgb(91, 165, 255);
}

.alert-error {
  background-color: #fbe6e6;
  border-color: #fbe6e6;
  color: #ff6f5e;
}

.alert-success {
  background-color: #c8ffd3;
  border-color: #c8ffd3;
  color: #00921d;
}

.pficon-error-circle-o:before {
  color: #ff6f5e;
}

/* Login Page */

#kc-page-title {
  color: #5a5a5a;
  padding-bottom: 20px;
  margin-bottom: 0px;
  font-size: 16px;
}

#kc-login {
  margin: 0 auto;
  font-size: 14px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#chatlayer-login-logo-image {
  margin-top: 20px;
  margin-bottom: 0px;
}

#login-with-sinch-seperator {
  width: 100%;
  align-items: center;
  justify-content: center;
  display: flex;
  flex-direction: row;
  margin-bottom: 15px;
  user-select: none;
}

#login-with-sinch-seperator hr {
  flex: 1;
  margin: 0px;
}

#login-with-sinch-seperator span {
  margin: 0px 20px;
  color: #d0d0d0;
}

.login-pf {
  background: #f5f9fc;
}

.login-pf-page {
  display: flex;
  padding: 0;
  min-height: 100vh;
}

.login-pf body {
  background: #f5f9fc;
  background-size: cover;
  height: 100%;
}

.form-control {
  display: flex;
  color: #5a5a5a;
  height: 100%;
  border: 1px solid #dce4eb;
  outline: none;
  border-radius: 5px;
  font-size: 14px;
  transition: none;
  box-shadow: none;
  padding-left: 8px;
  padding-right: 8px;
}

.form-control:hover {
  border: 1px solid #dce4eb;
}

.form-control:focus {
  box-shadow: none;
  outline: 0;
  border-color: #8d8d8d;
}

#kc-locale ul {
  display: none;
  position: absolute;
  background-color: #fff;
  list-style: none;
  right: 0;
  top: 20px;
  min-width: 100px;
  padding: 2px 0;
  border: solid 1px #bbb;
}

#kc-locale:hover ul {
  display: block;
  margin: 0;
}

#kc-locale ul li a {
  display: block;
  padding: 5px 14px;
  color: #000 !important;
  text-decoration: none;
  line-height: 20px;
}

#kc-locale ul li a:hover {
  color: #4d5258;
  background-color: #d4edfa;
}

#kc-locale-dropdown a {
  color: #4d5258;
  background: 0 0;
  padding: 0 15px 0 0;
  font-weight: 300;
}

#kc-locale-dropdown a:hover {
  text-decoration: none;
}

a#kc-current-locale-link {
  display: block;
  padding: 0 5px;
}

/* a#kc-current-locale-link:hover {
    background-color: rgba(0,0,0,0.2);
} */

a#kc-current-locale-link::after {
  content: '\2c5';
  margin-left: 4px;
}

.login-pf .container {
  padding-top: 40px;
}

.login-pf-page {
  justify-content: center;
}

#kc-logo {
  width: 100%;
}

#kc-logo-wrapper {
  background-image: url(../img/keycloak-logo-2.png);
  background-repeat: no-repeat;
  height: 63px;
  width: 300px;
  margin: 62px auto 0;
}

div.kc-logo-text {
  background-image: url(../img/keycloak-logo-text.png);
  background-repeat: no-repeat;
  height: 63px;
  width: 300px;
  margin: 0 auto;
}

div.kc-logo-text span {
  display: none;
}

#kc-header {
  color: #ededed;
  overflow: visible;
  white-space: nowrap;
}

#kc-header-wrapper {
  font-size: 29px;
  text-transform: uppercase;
  letter-spacing: 3px;
  line-height: 1.2em;
  padding: 62px 10px 20px;
  white-space: normal;
}

#kc-content {
  width: 100%;
}

#kc-attempted-username {
  font-size: 20px;
  font-family: inherit;
  font-weight: normal;
  padding-right: 10px;
}

#kc-username {
  text-align: center;
}

#kc-info {
  padding-bottom: 0;
  margin-bottom: 0;
}

#kc-info-wrapper {
  font-size: 14px;
}

#kc-form-options span {
  display: block;
}

#kc-form-options .checkbox {
  margin-top: 0;
  color: #72767b;
}

#kc-terms-text {
  margin-bottom: 20px;
  text-align: center;
}

#kc-registration {
  margin: 12px 0px;
  text-align: center;
}

/* TOTP */

.subtitle {
  text-align: right;
  margin-top: 30px;
  color: #909090;
}

.required {
  color: #cb2915;
}

ol#kc-totp-settings {
  margin: 0;
  padding-left: 20px;
}

ul#kc-totp-supported-apps {
  margin-bottom: 10px;
}

#kc-totp-secret-qr-code {
  max-width: 150px;
  max-height: 150px;
}

#kc-totp-secret-key {
  background-color: #fff;
  color: #333333;
  font-size: 16px;
  padding: 10px 0;
}

/* OAuth */

#kc-oauth h3 {
  margin-top: 0;
}

#kc-oauth ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#kc-oauth ul li {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  padding: 10px 0;
}

#kc-oauth ul li:first-of-type {
  border-top: 0;
}

#kc-oauth .kc-role {
  display: inline-block;
  width: 50%;
}

/* Code */
#kc-code textarea {
  width: 100%;
  height: 8em;
}

/* Social */

#kc-social-providers ul {
  padding: 0;
}

#kc-social-providers li {
  display: block;
}

#kc-social-providers li:first-of-type {
  margin-top: 0;
}

.kc-login-tooltip {
  position: relative;
  display: inline-block;
}

.kc-login-tooltip .kc-tooltip-text {
  top: -3px;
  left: 160%;
  background-color: black;
  visibility: hidden;
  color: #fff;

  min-width: 130px;
  text-align: center;
  border-radius: 2px;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
  padding: 5px;

  position: absolute;
  opacity: 0;
  transition: opacity 0.5s;
}

/* Show tooltip */
.kc-login-tooltip:hover .kc-tooltip-text {
  visibility: visible;
  opacity: 0.7;
}

/* Arrow for tooltip */
.kc-login-tooltip .kc-tooltip-text::after {
  content: ' ';
  position: absolute;
  top: 15px;
  right: 100%;
  margin-top: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent black transparent transparent;
}

.zocial,
a.zocial {
  width: 100%;
  font-weight: normal;
  font-size: 14px;
  text-shadow: none;
  border: 0;
  background: #f5f5f5;
  color: #72767b;
  border-radius: 0;
  white-space: normal;
}
.zocial:before {
  border-right: 0;
  margin-right: 0;
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
}

.zocial span:before {
  padding: 7px 10px;
  font-size: 14px;
}
.zocial:hover {
  background: #ededed !important;
}

.zocial.facebook,
.zocial.github,
.zocial.google,
.zocial.microsoft,
.zocial.stackoverflow,
.zocial.linkedin,
.zocial.twitter,
.zocial.openid {
  background-image: none;
  border: 0;

  box-shadow: none;
  text-shadow: none;
}

/* Copy of zocial windows classes to be used for microsoft's social provider button */
.zocial.microsoft:before {
  content: '\f15d';
}
.zocial.stackoverflow:before {
  color: inherit;
}

.zocial.saml:before {
  content: '\f13d';
}

@media (min-width: 768px) {
  #kc-container-wrapper {
    position: absolute;
    width: 100%;
  }

  .login-pf .container {
    padding-right: 80px;
  }

  #kc-locale {
    position: relative;
    text-align: right;
    z-index: 9999;
  }
}

@media (min-height: 646px) {
  #kc-container-wrapper {
    bottom: 12%;
  }
}

@media (max-height: 645px) {
  #kc-container-wrapper {
    padding-top: 50px;
    top: 20%;
  }
}

.card-pf form.form-actions .btn {
  float: right;
  margin-left: 10px;
}

#kc-form-buttons {
  margin-top: 20px;
  display: flex;
}

.login-pf-page .login-pf-brand {
  margin-top: 20px;
  max-width: 360px;
  width: 40%;
}

.login-pf-page .card-pf {
  padding: 32px;
}

.card-pf {
  max-width: 500px;
  background: #fff;
  margin: 0 auto;
  padding: 0 20px;
  max-width: 500px;
  border-top: 0;
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 2px 2px 10px 0 rgba(90, 90, 90, 0.25), 2px 2px 4px 0 rgba(37, 206, 209, 0.1);
}

/*tablet*/

.login-pf-page .card-pf {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-top: 0;
}
.card-pf {
  width: 400px;
  padding: 20px 60px;
}

.login-pf-page .login-pf-signup {
  font-size: 15px;
  color: #72767b;
}
#kc-content-wrapper .row {
  margin-left: 0;
  margin-right: 0;
}

/* Login with SSO */

.login-pf-page .login-pf-social-section {
  max-width: 100% !important;
  margin-bottom: 10px;
}

.login-pf-page .login-pf-social-section:first-of-type {
  padding: 10px 0 30px 0;
  border: 0;
  margin: 0;
  max-width: 100%;
}

/* Login with email */
.login-pf-page .login-pf-social-section:last-of-type {
  padding: 0;
  border: none;
  max-width: 100%;
}

.login-pf-page .login-pf-social-section .login-pf-social-link:last-of-type {
  margin-bottom: 0;
  border: none;
  padding: 0;
}

.login-pf-page .login-pf-social-link a {
  padding: 2px 36px;
  border-radius: 6px;
}

.login-pf-page.login-pf-page-accounts {
  margin-left: auto;
  margin-right: auto;
}

.login-pf-page .btn-primary {
  margin-top: 0;
}

.login-pf-page .list-view-pf .list-group-item {
  border-bottom: 1px solid #ededed;
}

.login-pf-page .list-view-pf-description {
  width: 100%;
}

.login-pf-page .card-pf {
  height: fit-content;
  align-self: center;
}

#kc-form-login div.form-group:last-of-type,
#kc-register-form div.form-group:last-of-type,
#kc-update-profile-form div.form-group:last-of-type {
  margin-bottom: 0px;
}

#kc-back {
  margin-top: 5px;
}

form#kc-select-back-form div.login-pf-social-section {
  padding-left: 0px;
  border-left: 0px;
}

.consent-boxes {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.consent-boxes .consent-box {
  margin-bottom: 10px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.consent-boxes .consent-box label {
  font-weight: 400;
  margin-bottom: 0px;
}

.consent-boxes .consent-box input {
  margin-top: 0px;
  margin-right: 10px;
}

#accept-terms-button {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

#decline-terms-button {
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-pf {
  width: 400px;
  padding: 20px 60px;
}

.flex-wrapper {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
}

.w-50 {
  width: 50%;
}

.register-title {
  color: #5a5a5a;
  font-size: 24px;
  font-weight: 500;
}

.c-link {
  color: #007171;
}

.d-flex {
  display: flex;
}

.ml-10 {
  margin-left: 10px;
}

.register-card {
  width: 600px;
}

.justify-center {
  justify-content: center;
}

.login-link {
  text-align: center;
  padding: 20px;
}

.color-red {
  color: red;
}
