html { height: 100%; }
body {
  position: relative;
  padding: 48px 0 32px;
  min-height: 100%;
  /*background: #FFF url('../img/middle.gif') repeat-y 50% 0;*/
  background: #FFF;
  color: #333;
  font: normal 14px/1.33 'Open Sans Regular', Helvetica, Arial, Tahoma, sans-serif;
}

::-webkit-input-placeholder { color: #858585; }
:-moz-placeholder { color: #858585; opacity: 1; }
::-moz-placeholder { color: #858585; opacity: 1; }
:-ms-input-placeholder { color: #858585; }

::-webkit-scrollbar {
  width: 6px; height: 3px;
  background: #E5E5E5;
}
::-webkit-scrollbar-track {
  background: none;
}
::-webkit-scrollbar-thumb {
  border-radius: 6px;
  background: #2F343A;
  background: rgba(47, 52, 58, .3);
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
  background: #2F343A;
  background: rgba(47, 52, 58, .7);
}
::-webkit-scrollbar-button { display: none; }


div.error-code { padding: 24px 32px; }
div.error-code h1 {
  margin-bottom: 16px;
  font-size: 16px;
}
div.error-code i {
  display: block;
  margin-bottom: 16px;
  color: #DDD;
  font-size: 56px;
  line-height: 1;
}
div.error-code p { color: #858585; }

#logo {
  display: block;
  padding: 8px 0 8px 32px;
  height: 48px;
  background: url('../img/logo.png') no-repeat 0 50%;
  color: #FFF;
  font-size: 22px; font-weight: normal;
  line-height: 32px;
  text-decoration: none;
  white-space: nowrap;
}

#menu {
  position: absolute; top: 8px; right: 30px;
  font-size: 0;
  white-space: nowrap;
}
#menu li {
  display: inline-block;
  padding-left: 8px;
  height: 32px;
  font-size: 14px;
  line-height: 32px;
  vertical-align: top;
}
#menu a.logout {
  display: block;
  padding: 6px;
}
#menu a.logout:hover,
#menu a.logout:focus {
  background: #448ec0;
}

#header {
  position: fixed; top: 0; right: 0; left: 0; z-index: 60;
  background: #3D85B6;
  color: #FFF;
  min-width: 1024px; height: 48px;
}
#header > div {
  position: relative;
  margin: 0 auto; padding: 0 16px;
  max-width: 1600px;
}

#footer {
  position: absolute; right: 0; bottom: 0; left: 0; z-index: 50;
  border-top: 1px solid #DDD;
  min-width: 1024px; height: 32px;
  background: #EEE;
  color: #777;
  line-height: 31px;
  white-space: nowrap;
}
#footer > div {
  position: relative;
  margin: 0 auto; padding: 0 32px 0 48px;
  max-width: 1600px;
}
#footer p.version {
  font-size: 10px;
}

#middle {
  position: relative; z-index: 2;
}

#spacer {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 0;
}
#spacer::before {
  content: '';
  display: block;
  margin: 0 auto;
  min-width: 1024px; max-width: 1600px; width: 100%; height: 100%;
  border-left: 1px solid #DDD; border-right: 1px solid #DDD;

  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;

}

#error {
  position: relative; z-index: 2;
  margin: 0 auto; padding: 140px 64px;
  width: 800px;
}
#error div.error-code {
  padding: 0;
  font-size: 16px;
}
#error div.error-code h1 {
  font-size: 24px;
}


/*
 *  Welcome screen
 */
#welcome {
  display: table;
  position: relative; z-index: 2;
  width: 100%; height: calc(100vh - 110px);
}
#welcome > div { display: table-row; }
#welcome > div > div {
  display: table-cell;
  vertical-align: middle;
  height: 100%;
}

#signin {
  margin: -46px auto 0; padding-bottom: 16px;
  width: 352px;
}
#signin h1 {
  color: #ECECEC;
  font-size: 22px;
  text-align: center;
  text-transform: uppercase;
}
#signin label {
  color: #3D85B6;
  font-size: 13px;
}
#signin button,
#signin input[type=text],
#signin input[type=password] {
  width: 100%;
}
#signin button {
  display: block;
  padding: 11px 8px 10px;
  width: 100%;
  border: none; border-radius: 0;
  background: #3D85B6;
  color: #FFF;
  font-size: 20px; font-weight: 300;
  vertical-align: middle;
  text-align: center; text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;

  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
}
#signin button:hover,
#signin button:focus,
#signin button:active {
  -webkit-box-shadow: 0 0 0 3px rgba(74, 127, 173, .2);
          box-shadow: 0 0 0 3px rgba(74, 127, 173, .2);
}
#signin input[type=text],
#signin input[type=password] {
  position: relative; z-index: 1;
  padding: 6px 16px 7px;
  height: 43px;
  border: 0;
  border-radius: 0; border-bottom: 2px solid #3D85B6;
  background: transparent;
  color: #333;
  font-size: 20px;
  box-shadow: none;
}
#signin input[type=text]:focus,
#signin input[type=password]:focus {
  border-color: #333;
}
#signin input[disabled] ~ label {
  color: #C8D1D8;
}
#signin button[disabled] { cursor: default; }
#signin input[disabled],
#signin input[disabled]:focus {
  border-bottom-color: #C8D1D8;
}
#signin button[disabled],
#signin button[disabled]:hover,
#signin button[disabled]:focus,
#signin button[disabled]:active {
  border-color: #C8D1D8;
  background-color: #C8D1D8;
  color: #DCE2E6;

  -webkit-box-shadow: none;
          box-shadow: none;
}
