﻿body {
  background: #f8f8f8;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80vh;
  font-family: "Roboto", sans-serif;
  color: #303030;
}

h5 {
  align-self: flex-start;
  margin-left: 40px;
  margin-bottom: 0;
  margin-top: 40px;
}

form {
  min-height: 350px;
  width: 300px;
  max-width: calc(100% - 20px);
  box-shadow: 0 3.2px 7.2px 0 var(--callout-shadow-color, rgba(0, 0, 0, 0.132)), 0 0.6px 1.8px 0 var(--callout-shadow-secondary-color, rgba(0, 0, 0, 0.108));
  background: #ffffff;
  padding-top: 30px;
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

img {
  width: 80%;
}

.error {
    background-color: rgba(255, 0, 0, 0.5);
    border-radius: 5px;
    padding: 10px;
    text-align: center;
    width: 100%;
}

.actions {
  width: calc(100% - 80px);
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.actions p {
  display: inline;
  font-size: 12px;
  font-family: "Roboto", sans-serif;
  margin: 0;
}
.actions button {
  flex-basis: 100%;
  margin-top: 30px;
  border: none;
  border-radius: 2px;
  background: #F28C00;
  min-height: 35px;
  transition: background 0.5s;
  color: white;
  cursor: pointer;
}
.actions button:hover {
  background: #ff9400;
}

input {
  margin-top: 20px;
  width: calc(100% - 80px);
  line-height: 30px;
  border: 1px solid #d9d9d9;
  border-radius: 0;
  font-family: "Roboto", sans-serif;
}
input:focus {
  outline: none;
}

input[type=checkbox] {
  height: 0;
  width: 0;
  visibility: hidden;
  display: inline;
}

label {
  cursor: pointer;
  text-indent: -9999px;
  width: 30px;
  height: 15px;
  background: #d9d9d9;
  display: block;
  border-radius: 30px;
  position: relative;
  transition: background 0.5s;
}

label:after {
  content: "";
  position: absolute;
  top: 1px;
  left: 1px;
  width: 13px;
  height: 13px;
  background: #fff;
  border-radius: 15px;
  transition: 0.3s;
}

input:checked + label {
  background: #F28C00;
}

input:checked + label:after {
  left: calc(100% - 1px);
  transform: translateX(-100%);
}
