#formwrapper {
  max-width: 560px;
  display: block;
  position: relative;
  margin: 25px auto 0;
}

#loginform {
  /* background-color: #87c4cd; */
  background-color: #a1c6da;
  background-color: #1a5270;
  padding: 35px 30px 15px;
  display: block;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.field {
  display: flex;
  position: relative;
}

.field label {
  width: 40%;
  padding: 4px 0;
  margin-bottom: 11px;
  color: #3b517e;
}

.field input[type=password], .field input[type=text], .field input[type=email] {
  width: 60%;
  border: none;
  top: -2px;
  margin-bottom: 11px;
  padding: 4px 15px;
  border-radius: 4px;
}

.field input::placeholder {
    visibility: hidden;
  }
  
.field textarea::placeholder {
    visibility: hidden;
  }

#remember {
  width: 0;
  height: 0;
}

#remember:hover {
  cursor: pointer;
}

#remember::after {
  content: '';
  border-radius: 4px;
  position: absolute;
  width: 18px;
  height: 18px;
  background-color: #fff;
}

#remember:checked::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1px solid #4871ae;
  background-color: #4871ae;
  border-radius: 4px;
}

#remember:checked::after {
  content: '';
  position: absolute;
  border-bottom: 2px solid #fff;
  border-right: 2px solid #fff;
  background-color: transparent;
  border-radius: 0;
  width: 5px;
  height: 11px;
  transform: translate(6px, 1px) rotate(28deg);;
}

#rememberlabel:hover {
  cursor: pointer;
}

@media (max-width: 560px) {

  #formwrapper {
    margin: 25px 10px 25px;
  }

  .field label {
    display: none;
  }

  .field input {
    width: 100% !important;
  }

  .field input::placeholder {
    color: #888;
    visibility: visible;
  }

  .field textarea::placeholder {
    color: #888;
    visibility: visible;
  }

  #remember {
    width: auto !important;
    transform: translateX(10px);
    position: absolute;
    right: 18px;
  }

  #rememberlabel {
    display: block;
    width: auto;
    position: relative;
    text-align: center;
  }

  textarea {
    width: 100% !important;
  }
}

input[type=radio] {
  display: inline-block;
}

#login, #register {
  display: none;
}

#log, #reg {
  display: none;
}

#login + label {
  border-top-left-radius: 4px;
}

#register + label {
  border-top-right-radius: 4px;
}

input[type=radio]:checked + label {
  color: green;
}

input[type=radio]:not(:checked) + label {
  color: red;
}

input[type=radio] + label:hover {
  cursor: pointer;
}

input[type=submit], input[type=button] {
  width: 100%;
  padding: 10px 30px;
  margin: 20px auto;
  display: block;
  position: relative;
  border: none;
  border-radius: 4px;
  background-color: #4871ae;
  color: #eee;
}

input[type=submit]:hover, input[type=button]:hover {
  cursor: pointer;
  background-color: #486693;
}

hr {
  border: none;
  position: relative;
  height: 1px;
  width: 98%;
  left: 1%;
  background-color: #4871aea0;
}

#radios {
  display: flex;
  margin-bottom: 20px;
}

#radios label {
  display: block;
  flex-direction: row;
  width: 50%;
  text-align: center;
  background-color: #eee;
  color: #333;
  background-color: #46e1c87a;
  color: #ffffff;
  padding: 10px 20px; 
}

#radios input:not(:checked) + label {
  background-color: #888;
  color: #fff;
  background-color: #12455f;
  color: #ffffff24;
}