html {
  box-sizing: border-box;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  --base:        #000000;
  --primary:     #DD2C0E;
  --secondary:   #8C8C8C;
  --white:       #FFFFFF;
  --gray-light:  #F5F6F7;
  --gray:        #E3E8EB;
  --gray-dark:   #8A9FA9;
  --black:       #000000;
  --blue:        #37B3E0;
  --green:       #91D639;
  --yellow:      #FCD71C;
  --pink:        #F18485;
  --red:         #D00000;
  --orange:      #F6A31F;
  --purple:      #BA2CF2;
}

*, *:before, *:after {
  box-sizing: inherit;
}

body {
  margin: 0;
  font: 16px/1 sans-serif;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  font-family: 'Open Sans', sans-serif;
  height: 100%;
  width: 100%;
}

p,
ol,
ul {
  margin: 0;
  padding: 0;
}

main,
li {
  display: block;
}

h1,
h2,
h3,
h4 {
  font-size: inherit;
  margin: 0;
  padding: 0;
  font-weight: 400;
}

button {
  overflow: visible;
  border: 0;
  font: inherit;
  -webkit-font-smoothing: inherit;
  letter-spacing: inherit;
  background: none;
  cursor: pointer;
}

::-moz-focus-inner {
  padding: 0;
  border: 0;
}

img {
  width: 200px;
  height: auto;
  border: 0;
}

.header {
  position: absolute;
  top: 0px;
  left: 0px;
  height: 150px;
  right: 0px;
  overflow:hidden;
}

.error-alert {
  position: absolute;
  padding: 2px 5%;
  width: 100%;
  color: #fff;
  font-size: 12px;
  background-color: #d00000;
}

.error-alert svg{
  display: block;
}

.error-text{
  width: 100%;
  text-align: center;
}

.error-text p{
  display: inline-block;
  line-height: 20px;
}

.logo{
  height: 90px;
  background-color: var(--base);
  display: flex;
  justify-content: center;
  align-items: center;
}

.header-text{
  text-align: center;
  border-bottom: 1px solid #ccc;
  background-color: var(--secondary);
  color: var(--white);
  height: 50px;
  font-size: 16px;
  line-height: 50px;
}

@media only screen and (min-width: 480px) {
  .header-text {
    font-size: 20px;
  }
}

.login-input{
  position: absolute;
  top: 150px;
  right: 0px;
  bottom: 65px;
  left: 0px;
  height: 45vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.input-field {
  width: 90%;
}

@media only screen and (min-width: 320px) {
  .input-field {
    width: 300px;
  }
}

.input-field label {
  margin-bottom: 6px;
  display: block;
}

.input-field input[type="text"],
.input-field input[type="password"]{
  width: 100%;
  height: 28px;
}

.input-field input{
  border: none;
  border-bottom: 1px solid #ccc;
  font-size: 16px;
  line-height: 20px;
}

.input-field:first-child{
  margin-bottom: 28px;
}

input:focus{
  outline: none;
  border-bottom: 1px solid #37b3e0;
}

.groups {
  padding: 0 5%;
  position: absolute;
  top: 150px;
  bottom: 65px;
  left: 0px;
  right: 0px;
  overflow: auto;
}

@media only screen and (min-width: 480px) {
  .groups {
    padding: 0 15%;
  }
}

@media only screen and (min-width: 720px) {
  .groups {
    padding: 0 30%;
  }
}

.groups-li {
  position: relative;
  border-bottom: 1px solid #ccc;
}

.groups-a {
  height: 36px;
  line-height: 36px;
  font-size: 15px;
  display: block;
  color: var(--primary);
  text-decoration: none;
}

.groups-name {
  display: inline-block;
  position: absolute;
  line-height: 36px;
  margin-left: 10px;
}

.groups-a:hover {
  cursor: pointer;
  background-color: var(--gray-light);
}

.groups-img {
  margin-top: 6px;
  margin-left: 4px;
  width: 22px;
}

.right-arrow {
  display: inline-block;
  position: absolute;
  right: 5px;
  width: 6px;
  height: 36px;
  background: url(/images/right-arrow.svg) no-repeat center center;
  opacity: 0.7;
}

.light-switcher {
  padding: 0 5%;
  position: absolute;
  top: 150px;
  bottom: 65px;
  left: 0px;
  right: 0px;
  display: grid;
  grid-template-areas: "before" "switch" "after";
  grid-template-rows: 1fr 1fr 1fr;
}

.light-state-text {
  grid-area: "before";
  justify-self: center;
  align-self: end;
  text-align: center;
}

.light-switch-instruction {
  grid-area: "after";
  justify-self: center;
  align-self: start;
  text-align: center;
}

.switch {
  grid-area: "switch";
  justify-self: center;
  align-self: center;
  position: relative;
  display: block;
  vertical-align: top;
  width: 130px;
  height: 50px;
  padding: 3px;
  background: linear-gradient(to bottom, #eee, #fff 25px);
  border-radius: 25px;
  box-shadow: inset 0 -1px white, inset 0 1px 1px rgba(0, 0, 0, 0.05);
  cursor: pointer;
}

.switch-input {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.switch-label {
  position: relative;
  display: block;
  height: inherit;
  font-size: 20px;
  text-transform: uppercase;
  background: #eceeef;
  border-radius: inherit;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12), inset 0 0 2px rgba(0, 0, 0, 0.15);
}

.switch-label:before, .switch-label:after {
  position: absolute;
  top: 50%;
  margin-top: -.5em;
  line-height: 1;
  transition: inherit;
}

.switch-label:before {
  content: attr(data-off);
  right: 15px;
  color: #aaa;
  text-shadow: 0 1px rgba(255, 255, 255, 0.5);
}

.switch-label:after {
  content: attr(data-on);
  left: 15px;
  color: #fff;
  text-shadow: 0 1px rgba(0, 0, 0, 0.2);
  opacity: 0;
}

.switch-input:checked ~ .switch-label {
  background: #4fb845;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15), inset 0 0 3px rgba(0, 0, 0, 0.2);
}

.switch-input:checked ~ .switch-label:before {
  opacity: 0;
}

.switch-input:checked ~ .switch-label:after {
  opacity: 1;
}

.switch-handle {
  position: absolute;
  top: 7px;
  left: 6px;
  width: 42px;
  height: 42px;
  background: linear-gradient(to bottom, #fff 40%, #f0f0f0);
  border-radius: 100%;
  box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
}

.switch-handle:before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -13px 0 0 -13px;
  width: 26px;
  height: 26px;
  background: linear-gradient(to bottom, #eee, #fff);
  border-radius: 13px;
  box-shadow: inset 0 1px rgba(0, 0, 0, 0.02);
}

.switch-input:checked ~ .switch-handle {
  left: 82px;
  box-shadow: -1px 1px 5px rgba(0, 0, 0, 0.2);
}

.switch-label,
.switch-handle {
  transition: all 0.3s ease;
}

.buttons-bg{
  position: fixed;
  display: flex;
  justify-content: center;
  grid-template-rows: 1fr;
  left: 0;
  bottom: 0;
  width: 100%;
  background-color: var(--secondary);
}

.btn {
  padding: 10px 12px;
  width: calc(50% - 12px);
  max-width: 200px;
  margin: 8px;
  color: var(--white);
  font-size: 18px;
  background-color: var(--primary);
  border: none;
}

.btn:hover,
.btn:focus,
.btn:active,
.btn:active:focus,
.btn:active:hover{
  outline: none;
  opacity: 0.8;
  transition: opacity .5s;
}

.lds-ellipsis {
  display: block;
  position: relative;
  width: 64px;
  height: 64px;
  margin: 0 auto;
}

.lds-ellipsis div {
  position: absolute;
  top: 27px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--primary);
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

.lds-ellipsis div:nth-child(1) {
  left: 6px;
  animation: lds-ellipsis1 0.6s infinite;
}

.lds-ellipsis div:nth-child(2) {
  left: 6px;
  animation: lds-ellipsis2 0.6s infinite;
}

.lds-ellipsis div:nth-child(3) {
  left: 26px;
  animation: lds-ellipsis2 0.6s infinite;
}

.lds-ellipsis div:nth-child(4) {
  left: 45px;
  animation: lds-ellipsis3 0.6s infinite;
}

@keyframes lds-ellipsis1 {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes lds-ellipsis3 {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(0);
  }
}

@keyframes lds-ellipsis2 {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(19px, 0);
  }
}
