﻿html, body {
  width: 100%;
  height: 100%;
  min-width: 280px;
  min-height: 480px;
  overflow: hidden;
  margin: 0;
  font-family: "Helvetica Neue", "Roboto", "Segoe UI", Arial, sans-serif !important;
  background-color: rgba(126, 140, 145, 1);
  background: -webkit-linear-gradient(rgba(64, 92, 115, 1), rgba(126, 140, 145, 1));
  background: -moz-linear-gradient(rgba(64, 92, 115, 1), rgba(126, 140, 145, 1));
  background: linear-gradient(rgba(64, 92, 115, 1), rgba(126, 140, 145, 1));
  background-image: url(../Img/qwBg.jpg);
  background-size: 100% 100%;
}

div, span, a, form, input, button, label {
  transition-property: left, top, right, bottom, width, height, opacity, background, display;
  -webkit-transition-property: left, top, right, bottom, width, height, opacity, background, display;
  transition-duration: 0.5s;
  -webkit-transition-duration: 0.5s;
}

.hidden {
  display: none;
}

.no-transition {
    transition: none !important;
    -webkit-transition: none !important;
}

.menu {
  position: absolute;
  top: 10px;
  left: 15px;
  display: none;
}

.menu a {
  font-size: 13px;
  text-decoration: none;
  color: #fff;
  margin-right: 15px;
  display: inline-block !important;
}

.header {
  color: #fff;
  text-shadow: 0px 0px 1px #000;
  position: absolute;
  right: 4px;
  text-align: right;
  bottom: 0;
  font-size: 11px;
  min-width: 212px;
}

.header .instance {
  display: none;
}

.imageArea {
  top: 30%;
  left: 25%;
  overflow: hidden;
  position: absolute;
  max-height: 190px;
  max-width: 400px;
  z-index: 0;
}

.imageArea img {
  max-width: inherit;
  max-height: inherit;
}

.loginAreaContainer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  height: 100%;
}

.loginArea {
  background: transparent;
  right: 9%;
  position: relative;
  min-width: 170px;
  max-width: 478px;
  width: 100%;
  height: auto;
  z-index: 1;
}

.loginHeader {
    text-align: center;
    padding: 10px;
    background-color: rgba(87,79,75, 0.5);
    border-bottom-style: solid;
    border-bottom-width: 1px;
    border-bottom-color: rgba(87,79,75, 1);
}

.loginHeader div:after {
    content: "";
    color: #fff;
    font-size: 18px;
    font-weight: bold;
}

.loginForm {
    padding: 25px;
    background-color: rgba(87,79,75, 0.9);
}

.login {
  display: inline-block;
  position: relative;
  font-size: 23px;
  margin-bottom: 10px;
  margin-right: 25px;
}

.login .active {
  margin-bottom: 18px;
}

.login a {
  color: #fff;
  text-decoration: none;
  display: inline-block;
  position: relative;
}

.login a:after, .menu a:after {
  content: '';
  display: block;
  margin: auto;
  height: 3px;
  width: 0px;
  background: transparent;
  transition: all .5s ease;
  -webkit-transition: all .5s ease;
}

.login a:hover:after, .menu a:hover:after {
  width: 100%;
  background: #fff;
 }

.active a:after {
  width: 100%;
  background: #fff;
}

.windowsLogin a {
  padding-left: 35px;
  background: url(../img/qwWindowsLogin.png) no-repeat left center;
}

.localLogin a {
  padding-left: 35px;
  background: url(../img/qwLocalLogin.png) no-repeat left center;
}

.azureLogin a {
  padding-left: 35px;
  background: url(../img/qwAzureLogin.png) no-repeat left center;
}

.createUser a {
  padding-left: 35px;
  background: url(../img/qwLocalLogin.png) no-repeat left center;
}

.loginText {
  clear: both;
  font-size: 14px;
  color: #fff;
}

.loginError {
  display: none;
  clear: both;
  font-size: 14px;
  color: #ff0000;
  padding: 5px;
  margin-bottom: -10px;
  background-color: rgba(255,255,255,0.5);
}

.localQefUserLogin {
  margin-top: 20px;
}

::-webkit-input-placeholder {color: #fff; }
:-moz-placeholder { color: #fff; }
::-moz-placeholder { color: #fff; }
:-ms-input-placeholder { color: #fff; }

input:focus::-webkit-input-placeholder { color: transparent; }
input:focus:-moz-placeholder { color: transparent; }
input:focus::-moz-placeholder { color: transparent; }
input:focus:-ms-input-placeholder { color: transparent; }

.input:first-child {
    margin-top: 1px;
}

.input:nth-child(1n+2) {
    margin-top: 34px;
}

.loginInput {
  padding: 10px 0;
  text-indent: 10px;
  width: 100%;
  background-color: rgba(0,0,0,0.25);
  color: #fff;
  border: solid 2px #fff;
  font-size: 15px;
}

.loginInput:hover,
.loginInput:focus {
  background-color: rgba(0,0,0,0.4);
}
  
.loginGo:first-child,
.createUserGo:first-child,
.loginContainer:first-child,
.createUserContainer:first-child {
  margin-top: 1px;
}

.loginGo:nth-child(1n+2),
.createUserGo:nth-child(1n+2),
.loginContainer:nth-child(1n+2),
.createUserContainer:nth-child(1n+2) {
  margin-top: 12px;
}

.loginGo,
.createUserGo {
  font-size: 15px;
  margin-top: 12px;
  padding: 8px;
  max-width: 100%;
  width: 100%;
  background-color: rgba(255,255,255,0.9);
  border: solid 2px #fff;
  cursor: pointer;
  -webkit-appearance: none;
}

.loginGo:hover,
.createUserGo:hover {
  background-color: rgba(255,255,255,1);
}

.loginRemember {
  margin-top: 12px;
  color: #fff;
  font-size: 14px;
}

.loginRemember #rememberLoginTypeBox {
  width: 15px;
  margin-left: -1px;
}

.loginRemember #rememberLoginTypeLabel {
  position: relative;
  top: -1px;
}

.logoArea {
  max-width: 228px;
  max-height: 50px;
  position: absolute;
  bottom: 13%;
  right: 9%;
}

.logoArea img {
  max-width: inherit;
  max-height: inherit;
}

ul#contextmenu {
  opacity: 0.9!important;
}

.preloader {
    position: absolute;
    width: 100%;
    height: 100%;
    top:0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.4);
}

.sk-cube-grid {
    position: absolute;
  top: calc(50% - 20px);
  left: calc(50% - 20px);
  width: 60px;
  height: 60px;
}

.sk-cube-grid .sk-cube {
  margin: 1px 1px 0 0;
  width: calc(33% - 1px);
  height: calc(33% - 1px);
  background-color: #fff;
  float: left;
  -webkit-animation: sk-cubeGridScaleDelay 1.3s infinite ease-in-out;
  animation: sk-cubeGridScaleDelay 1.3s infinite ease-in-out; 
}
.sk-cube-grid .sk-cube1 {
  -webkit-animation-delay: 0.2s;
          animation-delay: 0.2s; }
.sk-cube-grid .sk-cube2 {
  -webkit-animation-delay: 0.3s;
          animation-delay: 0.3s; }
.sk-cube-grid .sk-cube3 {
  -webkit-animation-delay: 0.4s;
          animation-delay: 0.4s; }
.sk-cube-grid .sk-cube4 {
  -webkit-animation-delay: 0.1s;
          animation-delay: 0.1s; }
.sk-cube-grid .sk-cube5 {
  -webkit-animation-delay: 0.2s;
          animation-delay: 0.2s; }
.sk-cube-grid .sk-cube6 {
  -webkit-animation-delay: 0.3s;
          animation-delay: 0.3s; }
.sk-cube-grid .sk-cube7 {
  -webkit-animation-delay: 0s;
          animation-delay: 0s; }
.sk-cube-grid .sk-cube8 {
  -webkit-animation-delay: 0.1s;
          animation-delay: 0.1s; }
.sk-cube-grid .sk-cube9 {
  -webkit-animation-delay: 0.2s;
          animation-delay: 0.2s; }

@-webkit-keyframes sk-cubeGridScaleDelay {
  0%, 70%, 100% {
    -webkit-transform: scale3D(1, 1, 1);
            transform: scale3D(1, 1, 1);
  } 35% {
    -webkit-transform: scale3D(0, 0, 1);
            transform: scale3D(0, 0, 1); 
  }
}

@keyframes sk-cubeGridScaleDelay {
  0%, 70%, 100% {
    -webkit-transform: scale3D(1, 1, 1);
            transform: scale3D(1, 1, 1);
  } 35% {
    -webkit-transform: scale3D(0, 0, 1);
            transform: scale3D(0, 0, 1);
  } 
}

@media (max-width: 1400px) {
  .imageArea {
    left: 5%;
    transition: opacity 0.5s ease, top 0.5 ease, left 0s ease 0s;  
    -webkit-transition: opacity 0.5s ease, top 0.5 ease, left 0s ease 0s;  
  }
}

@media (max-width: 1200px) {
  html, body {
    background-size: 1200px 100%;
  }
}

@media (max-width: 950px) {
  .imageArea {
    transition: opacity 0.5s ease, left 1s ease 1s;    
    -webkit-transition: opacity 0.5s ease, top 0.5 ease, left 1s ease 1s;
    opacity: 0;
    left: -500px;
  }
  
  .logoArea {
    max-width: 100%;
    text-align: center;
    bottom: 5%;
    left: 0;
    right: 0;
  }
  
  .loginAreaContainer {
    justify-content: center;
  }

  .loginArea {
    right: auto;
  }
  
  .login {
    font-size: 22px;
  }
}

@media (max-height: 750px) {
  html, body {
    background-size: 100% 750px, cover;
  }
  
  .imageArea {
    top: 5%;
    margin-top: 83px;
  }
}

@media (max-height: 750px) and (max-width: 1200px){
  html, body {
    background-size: 1200px 750px;
  }
}

@media (max-width: 450px) {
  .preloader {
    top: calc(50% - 30px);
    left: calc(50% - 30px);  
  }

  .imageArea {
    display: none;
  }

  .login {
    display: block;
    margin-left: 0;
    margin-bottom: 10px;
  }
}

@media (max-height: 480px) {
  .logoArea {
    opacity: 0;
  }
}