/*-
 * #%L
 * This file is part of "Apromore Core".
 * %%
 * Copyright (C) 2018 - 2022 Apromore Pty Ltd.
 * %%
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Lesser Public License for more details.
 * 
 * You should have received a copy of the GNU General Lesser Public
 * License along with this program.  If not, see
 * <http://www.gnu.org/licenses/lgpl-3.0.html>.
 * #L%
 */

html,
body {
  padding: 0;
  margin: 0;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: row;
  align-content: stretch;
  align-items: stretch;
  flex-grow: 1;
  flex-shrink: 0;
}

body > * {
  flex-shrink: 0;
}

/* overwrite default control */
.ap-login input,
button,
select,
textarea {
  font-family: "Source Sans Pro", sans-serif !important;
}

.z-page {
  height: auto !important;
  min-height: 100%;
  display: flex;
  width: 100%;
  flex-direction: row;
  align-content: stretch;
  align-items: stretch;
  flex-grow: 1;
  flex-shrink: 0;
}

.ap-login.z-window,
.ap-login .z-window-content {
  display: flex;
  flex-direction: row;
  align-content: stretch;
  align-items: stretch;
  flex-grow: 1;
  flex-shrink: 0;
}

.ap-wrapper {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 100%;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  align-content: stretch;
  flex-grow: 1;
}

.ap-wrapper > * {
  flex-shrink: 0;
}

.ap-logim .tab-content {
  padding-top: 0;
}

.ap-login .alert {
  position: absolute;
  box-sizing: border-box;
  top: 15px;
  left: 15px;
  width: calc(100% - 60px);
  z-index: var(--ap-z-alert);
  padding: 8px 30px 9px 10px;
  font-size: 14px;
  line-height: 16px;
}

.ap-login .alert i {
  margin-right: 5px;
}

.ap-login .alert button {
  height: 16px;
}

.ap-login .alert > * {
  vertical-align: baseline;
}

.ap-login a.link-button,
.ap-login a.link-button:link,
.ap-login a.link-button:visited,
.ap-login a.link-button:hover {
  text-decoration: none !important;
  color: white;
}

.ap-login div {
  box-sizing: border-box;
}

.ap-logo {
  width: 78%;
}

.ap-logo img {
  width: 100%;
}

.slant-separator {
  /* background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><g id="ID"><polygon fill="white" points="100 0 100 100 0 100 100 0"/></g></svg>'); */
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 31.56 171.98" preserveAspectRatio="none"><g><path fill="white"  d="M31.56,0H22.21a284.87,284.87,0,0,1,4.68,51.44A282.09,282.09,0,0,1,0,172H31.56Z"/></g></svg>');
  background-size: 100% 100%;
  position: absolute;
  width: 70px;
  right: -1px;
  top: 0;
  bottom: 0;
  background-color: transparent;
}

.ap-login {
  background-color: white !important;
}

.ap-login .main {
  position: absolute;
  left: 0;
  right: 80px;
  top: 0;
  bottom: 0;
  margin: auto;
  overflow: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  justify-items: center;
}

.ap-comply {
  margin-bottom: 10px !important;
  color: white;
}

.ap-comply span,
.ap-comply a {
  font-size: 12px !important;
}

.ap-comply a {
  text-decoration: underline !important;
}

.ap-comply div {
  padding: 3px 0;
}

@media (max-width: 767px) {
  .ap-left-panel {
    width: 100%;
  }

  .ap-right-panel {
    display: none;
  }
}

/* .ap-left-panel {
    position: absolute;
    left: 0;
    right: 40%;
    top: 0;
    bottom: 0;
    padding: 20px 40px 5vh 40px;
} */

.ap-left-panel {
  position: absolute;
  left: 0;
  right: 40%;
  top: 0;
  bottom: 0;
  padding: 20px 40px 5vh 40px;
  background: linear-gradient(135deg, #6100ff, #824dff, #9c7cff) !important;
  background-size: 300% 300% !important;
  animation: bgcycle 20s ease infinite !important;
}

@-webkit-keyframes bgcycle {
  0% {
    background-position: 0% 73%;
  }
  50% {
    background-position: 100% 28%;
  }
  100% {
    background-position: 0% 73%;
  }
}
@-moz-keyframes bgcycle {
  0% {
    background-position: 0% 73%;
  }
  50% {
    background-position: 100% 28%;
  }
  100% {
    background-position: 0% 73%;
  }
}
@-o-keyframes bgcycle {
  0% {
    background-position: 0% 73%;
  }
  50% {
    background-position: 100% 28%;
  }
  100% {
    background-position: 0% 73%;
  }
}

@keyframes bgcycle {
  0% {
    background-position: 0% 73%;
  }
  50% {
    background-position: 100% 28%;
  }
  100% {
    background-position: 0% 73%;
  }
}

@keyframes bgcycle {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.ap-left-panel .z-html {
  display: block;
}

.ap-left-panel .left-footer {
  display: block;
  position: absolute;
  left: 20px;
  bottom: 20px;
}

.ap-left-panel .left-footer .emblem {
  width: 30px;
  margin-right: 10px;
}

.ap-left-panel a,
.ap-left-panel a:hover,
.ap-left-panel a:visited {
  color: white;
}

.ap-right-panel {
  position: absolute;
  left: 60%;
  right: 0;
  top: 0;
  bottom: 0;
  padding: 40px;
}

.ap-form {
  width: 360px;
  margin: auto;
}

.ap-form-heading {
  font-family: var(--ap-font-brand);
  font-weight: 300;
  font-size: 22px;
  color: #ffffff;
  margin-top: 20px;
  margin-bottom: 15px;
}

.ap-form .controls {
  width: 100%;
  overflow: visible;
  position: relative;
}

.ap-form .controls > div {
  width: 100%;
  height: 28px;
  margin-bottom: 8px;
}

.ap-form .ap-invalid-input {
  border-color: orangered !important;
  box-shadow: 0 0 7px yellow !important;
  overflow: visible;
}

.ap-form .ap-invalid-input-hint {
  color: #ff8501;
  position: absolute;
  left: -20px;
  top: 6px;
  width: 20px !important;
  height: 20px !important;
}

.ap-form input[type="text"],
.ap-form input[type="tel"],
.ap-form input[type="password"],
.ap-form textarea,
.ap-form select {
  width: 100%;
  height: 28px;
  padding: 0 10px;
  box-sizing: border-box;
  border: 1px solid transparent;
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
  outline-offset: 0px;
  outline: none;
  border-radius: 4px;
  font-size: 14px;
  margin-bottom: 8px;
}

.ap-register-reuse-email {
  position: absolute;
  left: calc(100% + 10px);
  top: 5px;
  color: white;
}

.ap-login #register {
  overflow: hidden;
}

.ap-login #register input[type="checkbox"] {
  font-family: ZK85Icons, FontAwesome !important;
}

.ap-login #login input[type="text"] {
  background-color: rgba(255, 255, 255, 1) !important;
  color: rgba(85, 85, 85, 1) !important;
}

.ap-form input:focus,
.ap-form textarea:focus,
.ap-form select:focus {
  /* border: 1px solid var(--ap-c-orange) !important; */
  background-color: var(--ap-c-orange-light-5) !important;
  color: var(--ap-c-text-normal) !important;
}

.ap-form .button {
  height: 30px;
  border-radius: 4px;
  box-sizing: border-box;
}

/* .ap-form .signin-button, */
.ap-form .signin-button {
  background-color: #6100ff !important;
}

.ap-form .reset-button,
.ap-form .register-submit-button {
  background-color: #da5500;
  padding: 3px 10px;
  box-sizing: border-box;
  border: none;
  font-weight: 700;
  color: white;
  float: right;
  font-size: 16px;
  margin-bottom: 20px;
}

.ap-form .register {
  /* border-top: 1px dotted #f6a173 !important; */
}

.ap-form .forgot-link {
  display: inline-block;
  margin-top: 6px;
}

.ap-form .link-button {
  padding: 6px 10px;
  display: block;
  width: 100%;
  margin-top: 40px;
  border: none;
  color: black;
  text-align: center;
}

.ap-form .register-button {
  background-color: #e59721;
}

.ap-form fieldset {
  margin-bottom: 5px;
}

.ap-login legend {
  color: #eeced3;
  font-size: 18px;
  line-height: 20px;
  font-weight: 200;
  border: none;
  margin-bottom: 9px;
}

/* T&C and PP agreement */
.ap-comply span.z-html {
  display: inline-block;
}

/* footer links */
.ap-h-links {
  color: #fff;
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: inline-block;
}

.ap-h-links span.z-html {
  display: inline-block;
}

.ap-h-links span:first-child {
  margin: 0 0 0 0;
}

.ap-h-links span:after {
  margin: 0 10px;
  content: "|";
}

.ap-h-links span:last-child:after {
  margin-left: 0;
  content: "";
  display: none;
}

.ap-h-links li a {
  color: #fff;
}

/* Back button */
.ap-login .ap-back-wrapper {
  margin-top: 0;
  color: white;
  width: 40px;
}

.ap-login .ap-back {
  background-image: url("../img/arrow-left-regular.svg");
  background-repeat: no-repeat;
  filter: invert(100%) saturate(0%) brightness(100%) contrast(100%);
  height: 32px;
  width: 32px;
  margin-right: 8px;
  vertical-align: middle;
}
