@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500&display=swap');

:root {
  --lc-create-button-background: #7cb342;
  --lc-create-button-foreground: #f5f5f5;
  --lc-create-button-foreground-disabled: #f5f5f5;
  --lc-destroy-button-backgound: #d4562e;
  --lc-destroy-button-foreground: #f5f5f5;
  --lc-destroy-button-foreground-disabled: #666666;
  --lc-portal-body-text-color: #424242
}

body {
  font-family: Rubik, sans-serif;
}

img.logo {
  width: 35%;
  position: absolute;
  left: 75%;
  transform: translate(-50%, -50%);
  top: 50%;
}

.login-content {
  background: #ffffff;
  flex: 1;
  max-width: 50%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.inner-content {
  overflow: auto;
  height: 100%;
  width: 100%;
}

.welcome {
  font-weight: 100;
  color: #404040;
  margin: 48px auto;
  font-size: min(max( 1vw, 8vw), 34px);
  text-align: center;
}

.form-login,
#kc-reset-password-form {
  display: flex;
  flex-direction: column;
  width: 350px;
  overflow-x: hidden;
  margin: 0 auto;
}

.login-content form#kc-otp-login-form {
  width: 350px;
}

div#kc-form-buttons {
  margin-top: 32px;
}

form#kc-form-login > * {
  margin-bottom: 32px;
}

.label {
  font-weight: 400;
  display: flex;
  margin-bottom: 5px !important;
  font-size: 14px;
}

.lc-login-button:hover {
  border-bottom-color: #ff5064;
  transition: 0.2s;
}

input,
.login-field {
  border: none !important;
  width: 100%;
  height: 34px !important;
  background: #f5f5f5;
  padding: 0 10px;
}

label.pf-c-form__label.pf-c-form__label-text {
  margin-bottom: 5px;
  display: block;
}

input[type="checkbox" i] {
  width: 28px;
  margin-right: 10px;
  margin-left: 0;
}

input[type="text"] {
  width: calc(100% - 20px);
}

.checkbox label {
  display: flex;
  align-items: center;
}

.checkbox {
  display: flex;
  align-items: center;
}

span#input-error-username {
  font-size: 14px;
  position: absolute;
  color: #FF5722;
  top: 0;
  right: 0;
}

span#input-error-password,
span#input-error-password-confirm {
  margin: 20px 0;
  display: block;
  color: #FF9800;
}

.form-group {
  position: relative;
  margin-bottom: 20px;
}

.lc-login-button,
input[class*="button"],
div[class*="button"]{
  color: #f5f5f5;
  font-family: 'Rubik', sans-serif;
  font-size: 16px;
  font-weight: 100;
  background: #0f5978;
  cursor: pointer;
  transition: 0.2s;
  display: flex;
  justify-content: center;
  box-shadow: none;
  height: 50px !important;
}

input.lc-login-button.sign-in {
  color: #18556e;
  background: #CFDDE3;
  text-align: center;
}


#kc-passwd-update-form {
  width: 350px;
}

.pf-m-control {
  width: 38px;
  border-radius: 0;
  border: none;
  background: #f5f5f5;
  border-left: 1px solid #cecece;
  cursor: pointer;
}

label.visibility {
  display: flex;
  align-items: center;
  width: 32px;
  justify-content: center;
  cursor: pointer;
  position: absolute;
  top: 0;
  right: 0;
}

i.fa.fa-eye {
  width: 16px;
  height: 16px;
  display: flex;
  background-image: url("./../img/eye-b.png");
  background-repeat: no-repeat;
  background-position: center;
}

i.fa.fa-eye-slash {
  width: 16px;
  height: 16px;
  display: flex;
  background-image: url("./../img/eye-off-b.png");
  background-repeat: no-repeat;
  background-position: center;
}

#password {
  flex: 1;
  height: 100%;
  margin-right: -1px;
  border-bottom-right-radius: 0 !important;
  border-top-right-radius: 0 !important;
}

div#__lpform_password, div#__lpform_username {
  transform: translate(-10px);
}

.alert {
  padding: 20px 0;
  color: #FF9800;
  width: 80%;
  max-width: 350px;
  margin:0 auto;
}

p.copyright {
  position: absolute;
  bottom: 0;
  padding: 0 20px;
  right: 0;
  font-size: 14px;
  color: #ffffff;
}

div#kc-info-message,
div#kc-error-message,
div#kc-success-message,
div#kc-warning-message {
  width: 80%;
  max-width: 400px;
}
/*

div#kc-info-message {
  border-color: #19729a;
}

div#kc-error-message {
  border-color: #f44336;
}

div#kc-success-message {
  border-color: #4caf50;
}

div#kc-warning-message {
  border-color: #d88100;
}
*/

a{
  color: #03a9f4;
}

img.bg {
  position: absolute;
  right: 0;
  bottom: 0;
  opacity: 0.5;
  width: 100%;
}


.text-info {
  color: #00BCD4 !important;
}

.small {
  font-size: 85%;
}

.text-danger {
  color: #b00000 !important;
}

.text-warning {
  color: #fcb041 !important;
}

.text-success {
  color: #8bc34a !important;
}

.text-dimmed,
.dimmed {
  color: #77919d;

}
.m-b-xlg {
  margin-bottom: 50px;
}

.m-l-sm {
  margin-left: 10px;
}

.flex-v {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.flex-1 {
  flex:1
}

.title {
  font-weight: 100;
  font-size: 42px;
  color: #404040;
}

.register-page {
  position: absolute !important;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #0f5978;
  display: flex;
  overflow: hidden;
  align-items: center;
}

/*document input*/
.lc-input-field {
  position: relative;
  width: 100%;
}

.lc-input-field.vertical {
  flex-direction: column;
  align-items: flex-start;
}

.lc-input-field textarea {
  font-family: inherit;
  padding: 10px;
  width: 100%;
  resize: vertical;
  min-height: 24px;
  height: fit-content;
}

.lc-input-field label{
  color: var(--lc-portal-body-text-color);
  font-weight: 400;
  display: flex;
  margin-bottom: 5px;
  font-size: 14px;
}

.lc-input-field input {
  width: 100%;
  height: 32px;
  background: #f5f5f5;
  border: none;
  padding: 0 10px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  margin-bottom: 32px;
}

.lc-input-field.is-small input  {
  height: 24px;
}

.form-control.is-invalid {
  background-image: none !important;
}

.error-indicator:before {
  content: '?';
  background: red;
  color: #fffbfb;
  position: absolute;
  border-radius: 50%;
  top: 4px;
  right: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 10px;
  padding: 1px;
  height: 10px;
  font-size: 12px;
  font-weight: bold;
}

.error-message {
  opacity: 0;
  pointer-events: none;
  padding: 2px 5px;
  color: #b53209;
  font-size: smaller;
  overflow: hidden;
  transition: 0.2s;
  position: absolute;
  right: 20px;
  z-index: 99;
  top: 0;

}

.error-indicator:hover ~ .error-message {
  opacity: 1;
  transition: 0.2s;
}

.pf-c-input-group {
  display: flex;
}

ol#kc-totp-settings {
  display: flex
;
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding: 20px 0;
  background: #f5f5f5;
}

ol#kc-totp-settings > li {
  width: 50%;
}

form#kc-totp-settings-form {
  align-items: center;
  width: 350px;
  margin: auto;
  padding: 48px 0;
}

img#kc-totp-secret-qr-code {
  margin-left: 50%;
  transform: translateX(-50%);
}

.logo-container {
  position: absolute;
  right: 0;
  width: 50%;
  height: 100%;
  overflow-x: hidden;
}

.logo-wrap {
    width: 600px;
    overflow: hidden;
    align-items: center;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.logo-bg {
  max-width: 600px;
  width: 100%;
  background: linear-gradient(135deg, rgba(15, 89, 120, 0) 0%, rgba(15, 89, 120, 0) 10%, rgb(15 89 120 / 78%) 20%, rgba(15, 89, 120, 0) 37%, rgb(15 89 120 / 63%) 58%, rgb(15 89 120 / 26%) 69%, rgba(15, 89, 120, 0) 80%, rgba(15, 89, 120, 0) 100%);
  animation: bg-animation 10s ease-in-out 3s infinite;
  position: absolute;
  height: 100%;
  top: 0;
  opacity: 0;
}

.logo-path {
  stroke: #fff;
  fill: #fff;
  stroke-width: 7;
  stroke-dasharray: 920;
  opacity: 1;
  animation: logo-animation 3s cubic-bezier(0.67, 0.5, 0.175, 1) forwards;
}

.logo-line {
  max-width: 700px;
  margin: 20px 0;
  height: 1px;
  background: #ffffff;
  background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 99%);
  animation: line-animation 5s cubic-bezier(0.67, 0.5, 0.175, 1) forwards;
}

.logo-text {
  font-size: 16px;
  color: #fff;
  font-family: Rubik, sans-serif;
  letter-spacing: 4px;
  font-weight: 100;
  animation: text-animation 7s cubic-bezier(0.67, 0.5, 0.175, 1) forwards;
  overflow: hidden;
}

.kc-otp-login-form {
  width: 350px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

span#input-error-otp-code {
  margin: 10px 0;
  display: block;
  color: #FF9800;
}

@keyframes logo-animation {
  0% {
    opacity: 0;
    fill: rgba(255, 255, 255, 0);
    stroke-dasharray: 920;

  }
  30% {
    opacity: 1;
    fill: rgba(255, 255, 255, 0);

  }
  50% {
    fill: rgba(255, 255, 255, 0.5);

  }
  100% {
    opacity: 1;
    stroke-dasharray: 200;
    stroke: transparent;
    fill: #ffffff;

  }
}

@keyframes line-animation {
  0% {
    opacity: 0;
    max-width: 0;
    margin-left: 50%;
    filter: drop-shadow(0px 0px 0px #00000000);
  }
  30% {
    max-width: 700px;
    opacity: 1;
    margin-left: 0;
    filter: drop-shadow(0px 50px 20px #00000050);
  }
}

@keyframes text-animation {
  0% {
    opacity: 0;
    height: 0;
    transform: translateY(-37px);
    filter: drop-shadow(0px 0px 0px #00000000);
  }
  30% {
    max-width: 700px;
    opacity: 1;
    height: 23px;
    transform: translateY(0px);
    filter: drop-shadow(0px 50px 20px #00000050);
  }
}

@keyframes bg-animation {
  0% {
    opacity: 1;
    transform: translateX(-100%);
  }

  40% {
    transform: translateX(100%);
  }

  100% {
    opacity: 1;
    transform: translateX(100%);
  }
}

@media (max-width: 768px) {
  .register-page {
    flex-direction: column;
  }
  .login-content {
    width: 100%;
    max-width: initial;
    height: initial;
    flex: initial;
    position: absolute;
    padding: 40px;
    bottom: 0;
    top: 25%;
    overflow-x: hidden;
    justify-content: center;
  }

  .logo-container {
    position: fixed;
    top: 0;
    bottom: 75%;
    left: 0;
    right: 0;
    overflow-x: hidden;
  }
  .form-login, #kc-reset-password-form {
    width: 80%;
  }
  img.logo {
    left: 50%;
    width: 70%;
  }
}
