/*
 
	flow ui / tomasz malerczyk
	
*/
/* reset css */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

html {
  min-height: 100%;
  height: 100%;
}

body {
  line-height: 1;
}

ol, ul {
  list-style: none;
}

blockquote, q {
  quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

input[type=submit] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border-radius: 0;
  background: white;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-transition: "color 9999s ease-out, background-color 9999s ease-out";
  -webkit-transition-delay: 9999s;
}

/* end reset css */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  font-weight: normal;
  font-size: 15px;
  color: #eee;
  width: 100%;
  height: 100%;
  background: #000;
}

.ui-nofx body {
  text-rendering: optimizeSpeed !important;
}

p {
  line-height: 1.5;
}

#content:after {
  content: '';
  height: 100%;
  width: 0;
  display: inline-block;
  vertical-align: middle;
}

#content {
  position: absolute;
  height: 100%;
  width: 100%;
  overflow: hidden;
  left: 0;
  top: 0;
  text-align: center;
  transition-property: opacity;
  transition-duration: 1s;
  overflow-y: auto;
  box-sizing: border-box;
}

#content.done {
  opacity: 0;
}

#content .layout {
  display: inline-block;
  max-width: 640px;
  vertical-align: middle;
}

#content .layout form {
  display: none;
}

#content .layout.active form {
  display: block;
}

#content .layout .nojs {
  display: block;
  margin: 0 2em;
}

#content .layout.active .nojs {
  display: none;
}

h1 {
  font-weight: 700;
  font-family: inherit;
  font-size: 1.75em;
  line-height: 1.25;
  padding-bottom: 1em;
  color: #0c80ff;
  margin-bottom: 2em;
}

input[type=password],
input[type=text] {
  font-family: inherit;
  padding: 1em;
  font-size: inherit;
  width: 100%;
  border: 0;
  border-radius: .25em;
  line-height: 1.5em;
  vertical-align: middle;
  box-sizing: border-box;
  text-align: center;
}

input[type=submit] {
  font-family: inherit;
  padding: 1em;
  font-size: inherit;
  width: 100%;
  border: 0;
  background: #444;
  color: inherit;
  line-height: 1.5em;
  vertical-align: middle;
  box-sizing: border-box;
  color: inherit;
  cursor: pointer;
  border-radius: .25em;
  font-weight: 900;
}

input[type=checkbox] {
  margin-right: 1em;
  cursor: pointer;
}

div.input {
  box-sizing: border-box;
  padding: .5em 160px;
}

div.errorarea {
  min-height: 5em;
}

.error {
  margin: 0 1em;
  padding: .5em;
  background: #ff3b30;
}

div.checkbox > * {
  vertical-align: middle;
  display: inline-block;
  color: #8E8E93;
}

div.spinner {
  text-align: center;
  display: none;
}

div.submit {
  display: block;
}

div.spinner, div.submit {
  height: 5em;
}

div.spinner > img {
  display: inline-block;
  height: 2em;
  padding-top: 1em;
}

.ue {
  margin: 0 auto;
  padding: 2em 5em;
  display: block;
  width: 100%;
  height: auto;
  box-sizing: border-box;
}

.logo {
  width: 100%;
  box-sizing: border-box;
  padding: 1em;
  margin-bottom: 2em;
  max-width: 30em;
  display: block;
  margin: 0 auto;
}

@media (min-width: 640px) {
  input[type=submit]:hover {
    color: #444;
    background: #eee;
  }
}
@media (max-width: 639px) {
  #content {
    position: absolute;
    height: 100%;
    width: 100%;
    overflow: hidden;
    overflow-y: auto;
    left: 0;
    top: 0;
    text-align: center;
  }

  #content .layout {
    width: 95%;
  }

  h1 {
    display: inline-block;
    font-family: inherit;
    font-size: 1.5em;
  }

  div.input {
    width: 100%;
    padding: .5em 2em;
  }

  div.errorarea {
    min-height: auto;
  }

  .ue {
    width: 70%;
    padding: 2em 0;
  }
}
@media (max-width: 400px) {
  .ue {
    width: 100%;
    padding: 0 1em;
  }
}
