html,
body {
  background: #f9f9f9;
  color: #000;
  font-family: sans-serif;
  margin: 0;
  padding: 0;
}
* {
  box-sizing: border-box;
  -moz-box-sizing: border-box;
}
#xtro-header {
  background-color: #840432;
  height: 35px;
  line-height: 35px;
  color: #fff;
  font-size: 16px;
  text-align: center;
  transform: translateY(-100%);
  transition: transform 0.3s;
}
#xtro-header .app {
  display: inline-block;
  color: #d4b5c0;
  padding-left: 5px;
}
.errors {
  opacity: 0;
  transition: opacity 0.8s;
  color: #a7164a;
  background: #f7c5d7;
  padding: 1em;
  margin-top: 2em;
  margin-bottom: 2em;
  border: 1px solid #a7164a;
  width: 320px;
  margin-left: auto;
  margin-right: auto;
}
@media screen and (max-width: 380px) {
  .errors {
    width: 80% !important;
  }
}
form {
  opacity: 0;
  transition: opacity 0.8s;
}
#xtro {
  color: #840432;
}
#xtro > img,
#xtro > svg {
  transform: scale(0);
  transition: transform 0.3s;
  max-width: 100%;
  display: block;
  margin: 20px auto;
  height: auto !important;
}
@media screen and (max-width: 380px) {
  #xtro > img,
  #xtro > svg {
    width: 80% !important;
  }
}
#xtro > svg {
  max-width: 200px;
  margin: 70px auto;
}
#xtro form {
  width: 320px;
  margin: 10px auto;
}
@media screen and (max-width: 380px) {
  #xtro form {
    width: 80%;
  }
}
#xtro input {
  border-radius: 0;
  display: block;
  width: 100%;
  margin: 0;
  line-height: 40px;
  height: 40px;
  padding: 0 5px;
  font-size: 20px;
  border-style: solid;
  border-width: 1px;
  border-color: #aaa;
  border-bottom: none;
}
#xtro input[type="text"] {
  border-radius: 0;
  border-bottom: none;
}
#xtro label {
  display: none;
}
#xtro button {
  display: block;
  width: 100%;
  margin: 0;
  line-height: 30px;
  height: 40px;
  background-color: #e6f7ff;
  border: none;
  font-size: 20px;
  border-style: solid;
  border-width: 1px;
  border-color: #aaa;
  border-radius: 0;
}
#xtro button:active {
  background: #009ce6;
  border-color: #005780;
  color: #fff;
}
.page-mounted form,
.page-mounted .errors {
  opacity: 1;
}
.page-mounted #xtro > img {
  transform: scale(1);
}
.page-mounted #xtro > svg {
  transform: scale(1);
}
.page-mounted #xtro-header {
  transform: translateY(0);
}
.dark {
  background-color: #630d2c;
}
@media (prefers-color-scheme: dark) {
  html,
  body {
    background: #840432;
    color: #fff;
  }
  #xtro {
    color: #fff;
  }
  #xtro-header {
    background-color: #580321;
  }
}
