/**
 * EGroupware: kdots template
 *
 * Definitions for login page
 *
 * Please do NOT change css-files directly, instead change less-files and compile them!
 *
 * @link https://www.egroupware.org
 * @license https://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
 * @author Milan Koch <mk[at]egroupware.org>
 * @package kdots
 */
:root {
  --footer_height: 70px;
  --text-color: var(--loginbox-text-color, var(--sl-color-neutral-100));
  --input-text-color: var(--sl-color-neutral-900);
  --input-color: var(--sl-color-neutral-50);
  --button-color: var(--sl-color-primary-700);
  --button-text-color: var(--sl-color-neutral-50);
  --box-color: var(--loginbox-custom-color, '#COCOCO80');
}
.bootstrap-icons {
  display: inline-block;
  font-family: bootstrap-icons !important;
  font-style: normal;
  font-weight: normal !important;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  vertical-align: -0.125em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/***
LOGIN MAIN
 ***/
body {
  background-size: cover;
  overflow: auto;
  margin: 0;
}
@media (max-device-width: 768px) {
  body {
    font-size: 2em;
  }
  body form {
    flex: 0 1 auto;
  }
  body form input[type="checkbox"] {
    width: 2em !important;
    height: 2em;
  }
}
@media (max-height: 850px) {
  body #divAppIconBar {
    order: 2;
  }
  body .egw_message_wrapper {
    margin-top: 0.5em;
  }
  body #loginMainDiv #login_logo {
    padding: 5% 0 10% 0;
  }
}
body span,
body a {
  color: var(--text-color);
}
body span {
  font-size: 1.2em;
}
body .et2_required:not(.hasValue) {
  background-color: var(--sl-color-warning-100, #ffffd0);
  --sl-input-background-color: var(--sl-color-warning-100, #ffffd0);
}
body input,
body select {
  color: var(--input-text-color);
  background-color: var(--input-color);
  width: 59%;
  border: 1px outset var(--sl-color-gray-700);
  border-radius: var(--sl-border-radius-medium);
  padding-block: 0.5em;
  padding-inline: 0.5em;
  font-size: 1em;
  text-indent: initial;
}
body select {
  width: 62%;
  cursor: pointer;
}
div#loginScreenMessage {
  font-weight: bold;
  font-size: large;
  color: var(--text-color);
  letter-spacing: 0.2rem;
}
#loginMainDiv {
  height: calc(100vh - var(--footer_height));
  display: flex;
  background-size: cover;
  flex-direction: column;
  align-items: center;
  overflow: auto;
}
#loginMainDiv #loginBackgroundImage {
  position: absolute;
  width: 100vw;
  height: 100vh;
  background-size: cover;
  z-index: -1;
}
#loginMainDiv #login_logo {
  padding: 10% 0 5% 0;
  max-height: 120px;
  max-width: 100%;
}
#loginMainDiv .egw_message_wrapper {
  display: flex;
  justify-content: space-between;
  max-height: 20%;
  max-width: 24.8em;
  font-size: 1.2em;
  height: fit-content;
  background: var(--box-color);
  border-radius: var(--sl-border-radius-medium);
  padding: var(--sl-spacing-2x-small) var(--sl-spacing-small);
  margin-inline: 1rem ;
  border-left: 0.5em solid transparent;
}
#loginMainDiv .egw_message_wrapper:has(.error_message) {
  border-left: 0.5em solid var(--sl-color-danger-500);
  background-color: var(--sl-color-neutral-100);
}
#loginMainDiv .egw_message_wrapper:has(.warning_message) {
  border-left: 0.5em solid var(--sl-color-warning-500);
}
#loginMainDiv .egw_message_wrapper:has(div#egw_message:empty) {
  display: none;
}
#loginMainDiv .egw_message_wrapper:not(:hover) .close {
  visibility: hidden;
}
#loginMainDiv .egw_message_wrapper #egw_message {
  display: flex;
  color: var(--text-color);
}
#loginMainDiv .egw_message_wrapper #egw_message.error_message {
  color: var(--sl-color-neutral-900);
}
#loginMainDiv .egw_message_wrapper .close {
  cursor: pointer;
  font-size: 0.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
}
#loginMainDiv #divAppIconBar {
  display: flex;
  align-items: center;
  flex-direction: column;
  width: 100%;
}
#loginMainDiv #centerBox {
  display: flex;
  height: 100%;
  max-width: 40em;
  justify-content: center;
  align-items: stretch;
  flex-direction: column;
}
#loginMainDiv #centerBox form {
  padding: 1rem;
}
#loginMainDiv #centerBox .divLoginbox {
  background: var(--box-color);
  display: flex;
  flex-direction: column;
  padding: var(--sl-spacing-medium) var(--sl-spacing-x-large);
  border-radius: var(--sl-border-radius-large);
  gap: var(--sl-spacing-medium);
}
#loginMainDiv #centerBox .divLoginbox > div:not([class*="hidden"]) {
  flex: 1 1 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
#loginMainDiv #centerBox .divLoginbox > div:not([class*="hidden"]) > span {
  width: 40%;
}
#loginMainDiv #centerBox .divLoginbox div.discovery_block input:last-child {
  margin-bottom: 1em;
}
#loginMainDiv #centerBox .divLoginbox div.centered {
  justify-content: center;
}
#loginMainDiv #centerBox .divLoginbox input[type="submit"] {
  font-weight: bold;
  font-size: 1.2em;
  width: 100%;
  background-color: var(--button-color);
  color: var(--button-text-color);
  cursor: pointer;
}
#loginMainDiv #centerBox .divLoginbox div.remember_me_row {
  justify-content: start;
}
#loginMainDiv #centerBox .divLoginbox div.remember_me_row label {
  width: 41%;
  cursor: pointer;
}
#loginMainDiv #centerBox .divLoginbox div.remember_me_row input[type="checkbox"] {
  width: 1em;
  height: 1em;
  margin: 0;
  cursor: pointer;
}
#loginMainDiv #centerBox .divLoginbox div.hiddenCredential {
  display: contents;
}
#loginMainDiv #centerBox .divLoginbox div.login_button {
  padding-top: 1em;
}
#loginMainDiv #centerBox .divLoginbox div.registration {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 1em;
}
#loginMainDiv #centerBox .divLoginbox #socialBox,
#loginMainDiv #centerBox .divLoginbox #socialMedia {
  flex: 1 1 auto;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}
#loginMainDiv #centerBox .divLoginbox #socialBox a img,
#loginMainDiv #centerBox .divLoginbox #socialMedia a img {
  height: 2em;
}
/***
LOGIN FOOTER
***/
#loginMainDiv:not(.stockLoginBackground) #login_footer {
  background: linear-gradient(0deg, #000000C0 30%, transparent);
}
div#login_footer {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 100%;
  height: var(--footer_height);
  overflow-x: clip;
  display: flex;
  align-items: center;
}
div#login_footer .apps {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}
div#login_footer .apps .app {
  margin: 5px 1% auto 2%;
  display: flex;
}
div#login_footer .apps .app:hover img.icon {
  transform: scale(1.1);
}
div#login_footer .apps .app img.icon {
  width: 2em;
  filter: brightness(0) invert(1);
  height: 2em;
}
div#login_footer .apps .app span {
  display: none;
}
div#login_footer .apps .app[data-id="guacamole"] .content img.icon2-bg {
  right: 15px;
}
div#login_footer .apps .tooltip {
  display: inline-flex;
  position: absolute;
  text-align: left;
  height: 34px;
  width: 30px;
  cursor: pointer;
}
div#login_footer .apps .tooltip .content {
  min-width: 350px;
  top: -10px;
  left: 50%;
  transform: translate(-50%, -100%);
  padding: 10px 20px;
  color: #444444;
  background-color: #fafafa;
  font-weight: normal;
  font-size: 13px;
  border-radius: 3px;
  position: absolute;
  z-index: 99999999;
  box-sizing: border-box;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.8s;
  border: 1px solid #0d789f;
  border-bottom: 6px solid #4177A2;
  cursor: default;
}
div#login_footer .apps .tooltip .content img.icon-bg {
  width: 35px;
  position: absolute;
  margin: 0 auto;
  right: 15px;
  top: 15px;
}
div#login_footer .apps .tooltip .content img.icon2-bg {
  right: 55px;
}
div#login_footer .apps .tooltip .content img.icon3-bg {
  right: 90px;
}
div#login_footer .apps .tooltip .content h3 {
  height: 30px;
  border-bottom: 1px solid #d9e4ed;
}
div#login_footer .apps .tooltip:hover .content {
  visibility: visible;
  opacity: 1;
}
div#login_footer .apps .tooltip:hover .content:hover {
  visibility: visible;
  opacity: 1;
}
div#login_footer .apps .tooltip .content .arrow {
  width: 100%;
  position: absolute;
  left: 0;
  bottom: -21px;
  height: 15px;
}
div#login_footer .apps .tooltip .content .arrow::after {
  content: '';
  position: absolute;
  width: 9px;
  height: 9px;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  background-color: #4177A2;
}
div#loginMainDiv.stockLoginBackground div#login_footer {
  background-color: transparent;
}
