*,
*:before,
*:after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

* {
  font-family: "Poppins", sans-serif;
  color: #ffffff;
  letter-spacing: 0.5px;
}

body {
  background-color: #272727;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow: hidden;
  position: relative;
  flex-direction: column;
}

.background {
  width: 600px;
  height: 550px;
  position: absolute;
  transform: translate(-50%, -50%);
  left: 50%;
  top: 50%;
}

.background .shape {
  height: 200px;
  width: 200px;
  position: absolute;
  border-radius: 50%;
}

.shape:first-child {
  background: linear-gradient(#0bb914, #0a990a);
  left: -80px;
  top: -80px;
}

.shape:last-child {
  background: linear-gradient(#b30000, #ff4040);
  right: -30px;
  bottom: -80px;
}

.wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

form {
  width: 80%;
  max-width: 600px;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.13);
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 40px rgba(8, 7, 16, 0.6);
  padding: 40px;
  border-radius: 15px;
  z-index: 1;
  backdrop-filter: blur(15px);
}

form img {
  display: block;
  margin: 0 auto 10px auto;
  width: 400px;
}

.error {
  width: 100%;
  background-color: hsla(0, 100%, 63%, 0.7);
  border-radius: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0 10px 0;
  border: 2px solid hsla(0, 100%, 63%, 0.7);
  padding: 1rem;
}

.error i {
  color: #fff;
  font-size: 25px;
}

.error p {
  margin-left: 15px;
  color: #fff;
  text-align: center;
  border-radius: 5px;
  font-size: 20px;
  font-weight: 500;
}

label {
  font-size: 16px;
  font-weight: 500;
  width: 100%;
}

.password-wrapper {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
}

.password-wrapper input {
  display: block;
  height: 50px;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.07);
  border-radius: 3px;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 300;
  transition: 0.3s;
  border: 2px solid transparent;
  margin-top: 8px;
}

.password-wrapper input::placeholder {
  color: #cfcfcf;
}

.password-wrapper input:focus {
  background-color: rgba(255, 255, 255, 0.1);
  border: 2px solid #cfcfcf;
}

.password-wrapper input:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border: 2px solid #cfcfcf;
}

.rememberme-wrapper {
  margin-top: 10px;
}

.rememberme-wrapper * {
  box-sizing: border-box;
}

.rememberme-wrapper .cbx {
  -webkit-user-select: none;
  user-select: none;
  cursor: pointer;
  padding: 6px 8px 6px 0;
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.2s ease;
  display: inline-block;
}

.rememberme-wrapper .cbx:not(:last-child) {
  margin-right: 6px;
}

.rememberme-wrapper .cbx:hover {
  background: rgba(11, 185, 20, 0.06);
}

.rememberme-wrapper .cbx span {
  float: left;
  vertical-align: middle;
  transform: translate3d(0, 0, 0);
}

.rememberme-wrapper .cbx span:first-child {
  position: relative;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  transform: scale(1);
  border: 1px solid #cccfdb;
  transition: all 0.2s ease;
  box-shadow: 0 1px 1px rgba(11, 185, 20, 0.05);
}

.rememberme-wrapper .cbx span:first-child svg {
  position: absolute;
  top: 3px;
  left: 2px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 16px;
  stroke-dashoffset: 16px;
  transition: all 0.3s ease;
  transition-delay: 0.1s;
  transform: translate3d(0, 0, 0);
}

.rememberme-wrapper .cbx span:last-child {
  padding-left: 8px;
  line-height: 18px;
}

.rememberme-wrapper .cbx:hover span:first-child {
  border-color: #0bb914;
}

.rememberme-wrapper .inp-cbx {
  position: absolute;
  visibility: hidden;
}

.rememberme-wrapper .inp-cbx:checked + .cbx span:first-child {
  background: #0bb914;
  border-color: #0bb914;
  animation: wave-4 0.4s ease;
}

.rememberme-wrapper .inp-cbx:checked + .cbx span:first-child svg {
  stroke-dashoffset: 0;
}

.rememberme-wrapper .inline-svg {
  position: absolute;
  width: 0;
  height: 0;
  pointer-events: none;
  user-select: none;
}

@-moz-keyframes wave-4 {
  50% {
    transform: scale(0.9);
  }
}

@-webkit-keyframes wave-4 {
  50% {
    transform: scale(0.9);
  }
}

@-o-keyframes wave-4 {
  50% {
    transform: scale(0.9);
  }
}

@keyframes wave-4 {
  50% {
    transform: scale(0.9);
  }
}

button {
  margin-top: 6px;
  width: 100%;
  background-color: #0bb914;
  color: #fff;
  padding: 15px 0;
  font-size: 20px;
  font-weight: 700;
  border-radius: 5px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: 0.3s;
}

button:hover {
  background-color: #0a990a;
}

@media screen and (max-width: 720px) {
  form {
    padding: 20px;
  }

  form img {
    width: 85%;
  }

  .error {
    flex-direction: column;
  }

  .error p {
    margin: 10px 0 0 0;
  }

  .password-wrapper input {
    height: 40px;
    font-size: 12px;
  }

  button {
    font-size: 16px;
    padding: 10px 0;
  }

  .background {
    width: 100%;
    height: 100%;
    overflow: hidden;
  }
}

@media screen and (max-width: 640px) {
  .rememberme-wrapper .cbx {
    width: 100%;
    display: inline-block;
  }
}
