@font-face {
    font-family: 'Carlito';
    font-weight: normal;
    font-style: normal;
    src: url('../fonts/carlito/Carlito-Regular.woff') format('woff')
}

@font-face {
    font-family: 'Carlito';
    font-weight: bold;
    font-style: normal;
    src: url('../fonts/carlito/Carlito-Bold.woff') format('woff')
}

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    font-size: 16px;
}

body {
    width: 100%;
    height: 100%;
    background: white url('../images/html5vpn-bg.jpg') center;
    background-size: cover;
    font-family: Carlito, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    margin: 0;
}

.container {
    display: table;
    width: 100vw;
    height: 100vh;
}

.login-wrapper {
    display: table-cell;
    text-align: center;
    vertical-align: middle;
}

.login-dialog {
    display: inline-block;
    background: #fff;
    box-shadow: 0 0 40px -20px #000;
    padding: 40px 50px 32px;
}

.dialog-content {
    max-width: 320px;
    margin: 0 auto;
}

.dialog-content > div::after {
    display: block;
    width: 190px;
    height: 43px;
    content: '';
    background: url('../images/cherryroadlogo.png') no-repeat center;
    background-size: 190px 43px;
    text-align: center;
    transform: translateX(-11px);
    margin: 30px auto 0;
}

aside {
    font-size: 0.95rem;
    background: hsl(206, 100%, 97%);
    border: 1px dashed hsl(207, 86%, 86%);
    padding: 8px;
    margin-bottom: 18px;
}

p {
    margin-bottom: 10px;
}

div[class="download-link"] a {
    display: inline-block;
    background: hsl(207, 66%, 45%);
    border: 2px solid hsl(207, 86%, 86%);
    border-radius: 6px;
    color: #fff;
    text-decoration: none;
    padding: 10px 17px;
    margin-bottom: 18px;
}

div[class="download-link"] a:hover {
    background: hsl(207, 66%, 42%);
}

div[class="download-link"] a:active {
    background: hsl(207, 66%, 39%);
}

div[class="logout-link"] a {
    font-size: 1rem;
    font-weight: normal;
    color: hsl(355, 100%, 36%);
}

div[class="logout-link"] a:hover {
    color: hsl(355, 100%, 32%);
}

div[class="logout-link"] a:active {
    color: hsl(355, 100%, 29%);
}

.html5vpn-logo {
    margin-bottom: 18px;
}

h1 {
    font-size: 0.91rem;
    letter-spacing: 0.02rem;
    text-transform: uppercase;
    color: #151515;
}

form {
    display: none;
}

input {
    width: 100%;
    display: block;
    font-family: inherit;
    border: 1px solid #5f5f5f;
    padding: .35em .6em;
    margin-bottom: .5em;
}

input[type=text] {
    font-size: 1.1rem;
    color: #5f5f5f;
    border-radius: .2em;
    max-width: none;
    outline: 0;
}

input[type=submit] {
    background: hsl(355, 100%, 36%);
    font-size: 1.3rem;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
}

input[type=submit]:hover {
    background: hsl(355, 100%, 32%);
}

input[type=submit]:active {
    background: hsl(355, 100%, 29%);
}

.login-error {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    padding: 1em;
    margin: .2em;
    background: #FDD;
    border: 1px solid #964040;
    border-radius: .25em;
    text-align: center;
    color: #964040;
}

.loader,
.loader:before,
.loader:after {
  border-radius: 50%;
  width: 1.5em;
  height: 1.5em;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
  -webkit-animation: load7 1s infinite ease-in-out;
  animation: load7 1s infinite ease-in-out;
}

.loader {
  display: none;
  color: #d1d1d1;
  font-size: 10px;
  margin: 0 auto 80px;
  position: relative;
  text-indent: -9999em;
  -webkit-transform: translateZ(0);
  -ms-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-animation-delay: -0.16s;
  animation-delay: -0.16s;
}

.loader:before,
.loader:after {
  content: '';
  position: absolute;
  top: 0;
}

.loader:before {
  left: -2.6em;
  -webkit-animation-delay: -0.32s;
  animation-delay: -0.32s;
}

.loader:after {
  left: 2.6em;
}

@-webkit-keyframes load7 {
  0%,
  80%,
  100% {
    box-shadow: 0 2.5em 0 -1.3em;
  }
  40% {
    box-shadow: 0 2.5em 0 0;
  }
}

@keyframes load7 {
  0%,
  80%,
  100% {
    box-shadow: 0 2.5em 0 -1.3em;
  }
  40% {
    box-shadow: 0 2.5em 0 0;
  }
}

.visible {
    display: block;
}

/* scaling metrics */
@media all and (min-width: 1400px) {
    html {
        font-size: 18px;
    }

    .login-ui .login-dialog .login-fields, .login-ui .login-dialog .buttons {
        max-width: 320px !important;
    }
}

@media all and (min-width: 2000px) {
    html {
        font-size: 20px;
    }

    .login-dialog {
        padding-left: 60px;
        padding-right: 60px;
    }
}