/*
  This is main css for ci login theme.
  No other css is inherited since ci login theme is based on the "base" keycloak theme
*/

:root {
  --ci-dark-red: #db4040;
  --ci-darker-red: #a50f15;
  --ci-light-blue: #008194;
  --ci-dark-blue: #006372;
  --ci-dark-orange: #EF8905;
  --ci-light-grey: #e5e5e5;
  --ci-light-grey2: #d3d3d3;
  --ci-light-grey3: #c1c1c1;
  --ci-grey: #777;
  --ci-light-green: #f3f6f1;
  --ci-box-shadow: 0 2px 8px 0 rgba(0,0,0,0.15);
  --ci-dropdown-link-blue: #bfdbdf;
  --ci-text-shadow: 0 2px 100px rgb(0 0 0 / 50%);
  --ci-text-shadow2: 0 2px 72px rgb(0 0 0 / 60%);
}

html {
  font-size: 16px;
}

body {
  background-image: none;
  background-color: white;
  font-family: Source Sans Pro, Helvetica, Arial, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a {
  font-family: Source Sans Pro, Helvetica, Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  line-height: 24px;
  color: var(--ci-light-blue);
  text-decoration: underline;
  text-underline-offset: 1px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Gotham Pro, Helvetica, Arial, sans-serif;;
}

/* START Language select */

#ci-language-select {
  position: relative;
  text-align: left;
}

#ci-language-select ul {
  display: none;
  position: absolute;
  background-color: white;
  list-style: none;
  right: 0;
  top: 19px;
  min-width: 100px;
  border: solid 1px var(--ci-light-grey2);
  border-radius: 3px;
}

#ci-language-select:hover ul {
  display: block;
  margin: 0;
}

#ci-language-select ul li a {
  display: block;
  padding: 5px 14px;
  color: black;
  text-decoration: none;
  line-height: 20px;
}

#ci-language-select ul li a:hover {
  color: black;
  background-color: var(--ci-dropdown-link-blue);
}

#ci-language-dropdown a {
  padding: 0 15px 0 0;
  font-weight: 300;
}

#ci-language-dropdown a:hover {
  text-decoration: none;
}

#ci-language-dropdown img {
  width: 8px;
  height: 6px;
}

a#ci-current-language-link {
  display: block;
  padding: 0 5px 0 0;
  color: var(--ci-light-blue);
  text-decoration: underline;
  text-underline-offset: 1px;
  line-height: 24px;
  font-weight: 600;
}

/* END Language select */

/* START login tooltip */

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

.ci-login-tooltip .ci-tooltip-text{
  top:-3px;
  left:160%;
  background-color: black;
  visibility: hidden;
  color: white;

  min-width:130px;
  text-align: center;
  border-radius: 2px;
  box-shadow: var(--ci-box-shadow);
  padding: 5px;

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

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

/* Arrow for tooltip */
.ci-login-tooltip .ci-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;
}

/* END login tooltip */

/* START Form */

.ci-form-label {
  display: block;
  font-size: 1rem;
  font-weight: bold;
  line-height: 1.5rem;
  margin-bottom: 6px;
}

input.ci-form-input {
  border: none;
  box-shadow: 0 2px 8px rgb(0 0 0 / 10%);
  height: 50px;
  border-radius: 5px;
  padding: 0 1rem;
  outline: none;
}

input.ci-form-input:read-only:hover {
  cursor: not-allowed;
}

input.ci-form-input[aria-invalid=true] {
  border: 1px solid var(--ci-dark-red);
}

#ci-form-buttons {
  width: 100%;
}

#ci-form-buttons button[type=submit], #ci-form-buttons input[type=submit] {
  display: block;
  height: 50px;
  width: 100%;
  text-align: center;
  font-weight: bold;
  text-transform: uppercase;
  background-color: var(--ci-dark-orange);
  color: white;
  border-radius: 5px;
  cursor: pointer;
}

#ci-form-buttons input[type=submit]:disabled {
  background-color: var(--ci-light-grey3);
  cursor: not-allowed;
}

input.ci-form-input:hover, input.ci-form-input:focus {
  border: none;
  padding: 0 1rem;
}

.ci-error-text {
  color: var(--ci-darker-red);
  font-size: 14px;
}

/* END Form */

/* START Language banner (DE) */

.ci-language-banner {
  width: 100%;
  height: 78px;
  padding: 27px;
  display: flex;
  background-color: var(--ci-dark-blue);
  justify-content: center;
  align-items: center;
  -webkit-font-smoothing: antialiased;
  color: white;
}

.ci-language-banner-text {
  font-size: 14px;
  line-height: 18px;
  font-weight: 600;
}

.ci-language-banner img {
  max-width: 177px;
}

/* END Language banner */

/* START Footer */

.ci-page-footer {
  flex: 1 0 154px;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: 100px;
  margin: 0;
  padding: 0 30px;
  text-align: center;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  color: black;
  border: none;
}

.ci-page-footer .ci-company-name {
  align-items: center;
  line-height: 20px;
}

.ci-page-footer .ci-company-name strong {
  font-weight: bold;
}

.ci-page-footer .ci-page-footer-links a {
  color: var(--ci-light-blue);
  font-size: 14px;
  font-weight: 600;
}

.ci-page-footer-links > :first-child {
  margin-right: 0;
}

.ci-page-footer .ci-page-footer-links {
  align-items: center;
  font-weight: 400;
  line-height: 24px;
}

/* END Footer */

/* START checkbox */

.ci-checkbox-label {
  position: relative;
  width: 14px;
  height: 14px;
}

.ci-checkbox-label .checkmark {
  position: absolute;
  height: 15px;
  width: 15px;
  background-color: white;
  border: 1px solid #B5C4B2;
  cursor: pointer;
}

.ci-checkbox-label ~ span {
  margin-left: 8px;
}

.ci-checkbox-label input[type=checkbox] {
  position: absolute;
  opacity: 0;
}

.ci-checkbox-label .checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.ci-checkbox-label input:checked ~ .checkmark:after {
  display: block;
}

.ci-checkbox-label input:focus:not(disabled) ~ .checkmark {
  border: 1px solid var(--ci-light-blue);
}

.ci-checkbox-label input:checked ~ .checkmark {
  border: 1px solid var(--ci-light-blue);
}

.ci-checkbox-label input:disabled ~ .checkmark {
  background-color: var(--ci-light-green);
  border: 1px solid var(--ci-light-grey2);
}

.ci-checkbox-label input:disabled ~ .checkmark:after {
  border: solid var(--ci-light-grey2);
  border-width: 0 2.5px 2.5px 0;
}

.ci-checkbox-label .checkmark:after {
  top: -4px;
  left: 5px;
  width: 7px;
  height: 13px;
  border: solid var(--ci-light-blue);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(35deg);
}

/* END checkbox */

#ci-page-title {
  font-size: 1.5rem;
  line-height: 29px;
  letter-spacing: -0.67px;
  font-weight: bold;
}

.ci-subtitle {
  color: var(--ci-grey);
}

#ci-username {
  text-align: center;
  margin-bottom:-10px;
}

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

#ci-info-wrapper {
  font-size: 13px;
  padding: 1rem;
  background-color: var(--ci-light-grey);
  border-radius: 3px;
}

.ci-login-page {
  background-color: var(--ci-light-green);
}

.ci-login-page-content {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 78px);
  width: 100%;
  overflow-y: auto;
  margin: 0 auto;
}

.ci-orange-dot {
  font-family: Source Sans Pro, Helvetica, Arial, sans-serif;;
  font-weight: 700;
  color: var(--ci-dark-orange);
}

.ci-link-like-text {
  font-family: Source Sans Pro, Helvetica, Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  line-height: 24px;
  color: var(--ci-light-blue);
}

.ci-no-account-link {
  text-align: center;
}

.ci-no-account-link.text-left {
  text-align: left;
}

.ci-forgot-password {
  width: 100%;
  text-align: center;
}

.ci-left-panel {
  display: flex;
  align-items: center;
  flex: 1 0 50%;
}

.ci-left-wrapper {
  width: 355px;
  margin: 0 auto;
  padding: 1.5rem;
}

.ci-left-top {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: space-between;
}

.ci-left-top img {
  width: 152px;
}

/* START Right panel */

.ci-right-panel {
  position: relative;
  flex: 1 0 30%;
  min-height: 250px;
  display: flex;
  justify-content: start;
  align-items: center;
  background-image: linear-gradient(233deg, rgba(0,0,0,0.00) 16%, rgba(0,0,0,0.20) 57%), url('../img/ci-banner2.jpg');
  background-position-x: center;
  background-repeat: no-repeat;
  background-size: cover;
  overflow-x: hidden;
}

.ci-right-wrapper {
  width: 355px;
  padding: 2rem;
}

.ci-right-panel .ci-right-title {
  font-family: Gotham Pro, Helvetica, Arial, sans-serif;;
  font-weight: bold;
  color: white;
  font-size: 1.625rem;
  max-width: 400px;
  line-height: 30px;
  letter-spacing: -1.08px;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  text-shadow: var(--ci-text-shadow);
}

.ci-right-panel .ci-c {
  position: absolute;
  top: 0;
  right: -30px;
  height: 100%;
  padding: 1rem 0;
}

.ci-right-panel .ci-right-title :first-child {
  text-shadow: var(--ci-text-shadow2);
  z-index: 1;
}

.ci-right-panel .ci-right-more {
  margin-top: 13px;
  font-size: 1.5rem;
  display: flex;
  flex-direction: column;
  z-index: 1;
}

.ci-right-panel .ci-right-more :first-child {
  font-size: 1rem;
  line-height: 29px;
  letter-spacing: -0.5px;
}

.ci-right-panel .ci-right-website-link {
  height: 50px;
  width: 100%;
  background-color: var(--ci-light-blue);
  border-radius: 5px;
  color: white;
  text-decoration: none;
  font-family: Source Sans Pro, Helvetica, Arial, sans-serif;;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: normal;
  text-align: center;
  line-height: 24px;
  padding: 13px;
  text-shadow: none;
  text-transform: uppercase;
}

/* END Right panel */


/*
  MEDIA QUERIES (NOTE: tailwind breakpoint classes are also used in .ftl files)
  These media queries follow default tailwind breakpoints
*/

/* TABLET (md in tailwind) */
@media screen and (min-width: 768px) {
  a#ci-current-language-link {
    padding: 0 5px;
  }

  /* START Language banner (for DE) */

  .ci-language-banner {
    position: unset;
    height: 90px;
    padding: 20px 40px 20px 40px;
  }

  .ci-language-banner-text {
    font-size: 1.25rem;
    line-height: 26px;
  }

  /* START Footer */

  .ci-page-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    padding: 20px 125px;
    flex-direction: column;
    justify-content: center;
    font-size: 1rem;
  }

  .ci-page-footer .ci-page-footer-links a {
    font-size: unset;
  }

  .ci-page-footer .ci-company-name {
    display: flex;
    align-items: baseline;
  }

  #ci-page-title {
    font-size: 2rem;
  }


  .ci-login-page-content {
    flex-direction: row;
    height: calc(100vh - 190px);
    overflow-y: unset;
  }

  /* START Left panel */

  .ci-left-panel {
    flex: 0 1 50%;
    overflow-y: auto;
  }

  .ci-left-wrapper {
    padding: 0;
    max-height: calc(100vh - 220px); /* 190 + 30 (ome additional space from the top) */
  }

  .ci-left-wrapper:after {
    content: "";
    display: block;
    height: 30px;
  }

  .ci-left-top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .ci-left-top img {
    width: 217px;
  }

  /* START Right panel */

  .ci-right-panel {
    flex: 0 1 50%;
    justify-content: center;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: unset;
  }

  .ci-right-wrapper {
    max-height: calc(100vh - 220px); /* 190 + 30 (ome additional space from the top) */
    padding: 1rem;
    width: unset;
  }

  .ci-right-panel .ci-c {
    display: block;
    position: absolute;
    right: -30px;
    top: calc(50% - 300px);
    height: unset;
    padding: 0;
  }

  .ci-right-wrapper:after {
    content: "";
    display: block;
    height: 30px;
  }

  .ci-right-panel .ci-right-title {
    font-size: 3.25rem;
    line-height: 56px;
    max-width: 500px;
  }

  .ci-right-panel .ci-right-title-en {
    max-width: 540px;
  }

  .ci-right-panel .ci-right-more {
    margin-top: 1.875rem;
  }

  .ci-right-panel .ci-right-more :first-child {
    font-size: unset;
  }

  .ci-right-panel .ci-right-website-link {
    width: 225px;
  }
}

/* DESKTOP (lg in tailwind) */
@media screen and (min-width: 1024px) {
  .ci-page-footer {
    flex-direction: row;
    position: fixed;
    bottom: 0;
    left: 0;
    padding: 20px 125px;
    justify-content: normal;
    font-size: 1rem;
    white-space: nowrap;
  }

  .ci-page-footer .ci-page-footer-links a {
    font-size: unset;
  }

  .ci-page-footer .ci-company-name {
    display: flex;
    align-items: center;
  }
}