*,
*::after,
*::before {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.bg {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: blue;
  z-index: -1;
  transform: scaleX(0);
  transition: transform 500ms cubic-bezier(1, 0, 0, 1);
}

html {
  height: 100%;
  overflow-y: hidden;
}

body {
  height: 100%;
  display: grid;
  grid-template-columns: 15vw 1fr 1fr 15vw;
}

main {
  grid-column: 2;
}

h1 {
  color: black;
  transition: color 500ms ease-in-out;
  font-size: 8rem;
  font-family: "Times New Roman", Times, serif;
  transform: scaleX(0.75);
  font-weight: normal;
  transform-origin: left center;
  margin-bottom: 5rem;
}

input {
  width: min(400px, 100%);
  outline: none;
  border: 0.2rem solid rgb(75, 78, 246);
  border-radius: 0.7rem;
  padding: 0.3rem;
  height: 3rem;
  font-size: 1.3rem;
  font-family: Arial, Helvetica, sans-serif;
  background-color: transparent;
  transition: all 0.3s;
}

input::-moz-placeholder {
  text-align: center;
  color: rgb(141, 143, 255);
  -moz-transition: color 500ms ease-in-out;
  transition: color 500ms ease-in-out;
}

input::placeholder {
  text-align: center;
  color: rgb(141, 143, 255);
  transition: color 500ms ease-in-out;
}

input:focus {
  caret-color: white;
  color: white;
}

input:focus::-moz-placeholder {
  color: rgb(255, 255, 255);
}

input:focus::placeholder {
  color: rgb(255, 255, 255);
}

input:focus + .bg {
  transform: scaleX(100%);
}

.eg {
  color: rgb(255, 255, 255);
  margin-top: 0.8rem;
  font-family: Arial, Helvetica, sans-serif;
}

.warn {
  color: rgb(255, 0, 0);
  margin-top: 0.8rem;
  font-family: Arial, Helvetica, sans-serif;
  display: none;
}

button {
  margin-top: 1rem;
  width: min(400px, 100%);
  font-size: 2rem;
  font-family: Arial, Helvetica, sans-serif;
  background-color: transparent;
  border: 0.2rem solid rgb(75, 78, 246);
  border-radius: 0.7rem;
  padding: 0.3rem;
  cursor: pointer;
  transition: color 500ms ease-in-out;
  color: rgb(75, 78, 246);
}

.white {
  color: white;
}

section {
  padding-left: 1rem;
  padding-right: 1rem;
  grid-template-columns: 3;
  background-color: blue;
  height: 100%;
  transform: translateY(100%);
  transition: transform 500ms cubic-bezier(1, 0, 0, 1);
}
section h1 {
  color: white;
  font-size: 5rem;
  margin-bottom: 0;
}
section h2 {
  margin-top: 2rem;
  font-weight: normal;
  color: white;
  font-family: Arial, Helvetica, sans-serif;
}
section button {
  margin-top: 2.5rem;
  color: white;
}

.trans {
  transform: translateY(0%);
}