body {
  min-height: 100vh;
  grid-template-rows: auto 1fr;
  padding: 1em 0;
}

header {
  margin: 0 auto;
  padding: 0 1em;
  text-align: center;
  width: 100%;
}

header img {
  height: 6em;
  width: 100%;
  object-fit: contain;
}

.content {
  margin: auto;
  text-align: center;
  max-width: 400px;
}

.content h1 {
  font-family: var(--secf);
  color: rgb(var(--pri));
  font-size: 2em;
  margin-bottom: .5em;
}

.content > p {
  margin: 0 0 1em;
  font-size: .8em;
}

.buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background-color: rgb(var(--pri));
}

.buttons button {
  background-color: transparent;
  border: 0;
  padding: .5em 1em;
  font-family: var(--prif);
  font-size: 1.2em;
  color: #fff;
  cursor: pointer;
}

.forms {
  background-color: rgb(var(--pri));
}

form {
  display: grid;
  padding: 1em;
  grid-row-gap: 1em;
}

form label span {
  display: block;
  font-size: .8em;
  opacity: 0.7;
  margin-top: .5em;
}

form input[type=text], form input[type=password] {
  border: 0;
  padding: .5em;
  outline: 0;
  text-align: center;
}

form button[type=submit] {
  padding: .5em;
  background-color: rgb(var(--sec));
  color: #fff;
  border: 0;
  cursor: pointer;
}

form button[type=submit]:hover, form button[type=submit]:focus {
  background-color: rgba(var(--sec),0.9);
}

form .tick-box {
  display: grid;
  grid-template-columns: auto 1fr;
}

form input[type=checkbox] {
  margin: auto 1em auto 0;
}

form a {
  color: #fff;
}

/*  */

.buttons #signup {
  background-color: rgb(var(--sec));
}

form#signup {
  display: none;
}

/*  */

.popup {
  display: grid;
  grid-row-gap: 1em;
  padding: 1em;
  padding-bottom: 1.5em;
  color: #000;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  opacity: 0;
  animation: fade-down .5s forwards;
}

.popup #bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: .5em;
  background-color: #fff;
  animation: grow-width 5s linear forwards;
}

.popup h2 {
  text-align: center;
  margin: auto;
  font-size: 1.5em;
  color: inherit;
}

.popup p {
  text-align: center;
  margin: auto;
  font-size: 1.2em;
  color: inherit;
  opacity: .8;
}

.popup #close {
  position: absolute;
  top: .5em;
  right: .5em;
  width: 2em;
  height: 2em;
  background-color: transparent;
  border: 0;
  outline: 0;
  cursor: pointer;
}

.popup #close span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: .2em;
}

.popup #close span::before, .popup #close span::after {
  position: absolute;
  content: '';
  top: 50%;
  left: 50%;
  transform-origin: center;
  width: 100%;
  height: 100%;
  background-color: black;
}

.popup #close span::before {
  transform: translate(-50%, -50%) rotateZ(45deg);
}

.popup #close span::after {
  transform: translate(-50%, -50%) rotateZ(-45deg);
}

@keyframes grow-width {
  0% {
    width: 0%;
  } 100% {
    width: 100%;
  }
}

@keyframes fade-down {
  0% {
    opacity: 0;
    transform: translateY(-2em);
  } 100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-up {
  0% {
    opacity: 1;
    transform: translateY(0);
  } 100% {
    opacity: 0;
    transform: translateY(-2em);
  }
}
