* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:root {
  --bgColor: #191919;
  --fontColor: #979797;
  --myYellow:#ffc700;
}
body {
  display: grid;
  place-items: center;
  font-family: sans-serif;
  height: 100vh;
  background-color: var(--bgColor);
}

h1 {
  font-weight: bold;
  margin: 0;
}
p {
  font-size: 1em;
  font-weight: 100;
  line-height: 1.3em;
  letter-spacing: 0.1em;
  margin: 20px 0;
}

span {
  font-size: 12px;
}

button {
  border-radius: 2em;
  border: 1px solid var(--bgColor);
  background-color: var(--myYellow);
  color: var(--bgColor);
  font-size: 12px;
  font-weight: bold;
  padding: 1em 5em;
  text-transform: uppercase;
  transition: transform 80ms ease-in;
  cursor: pointer;
}

button:active {
  transform: scale(0.95);
}
button:focus {
  outline: none;
}
button.hidden-button{
  background-color: transparent;
  border-color: var(--bgColor);
}
form {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0 30px;
  height: 100%;
  text-align: center;
}
input {
  background-color: #eee;
  border: none;
  font-size: 16px;
  padding: 10px 12px;
  margin: 8px 0;
  width: 100%;
}
input:focus{
  outline: none;
}
.container {
  background-color: #ffff;
  border-radius: 2em;
  box-shadow: 0 14px 28px rgba(128, 127, 127, 0.274), 0 10px 10px rgba(141, 141, 141, 0.171);
  position: relative;
  overflow-y: hidden;
  overflow-x: auto;
  width: 650px;
  max-width: 100%;
  min-height: min(80vh,500px);
}
.form-container {
  position: absolute;
  top: 0;
  height: 100%;
  transition: all 0.5s ease-in-out;
}
.sign-in-container {
  left: 0;
  width: 50%;
  z-index: 2;
}
.sign-up-container {
  left: 0;
  width: 50%;
  opacity: 0;
  z-index: 1;
}
.container.right-panel-active .sign-in-container{
transform: translateX(100%);
opacity: 0;
}
.container.right-panel-active .sign-up-container{
  transform:translateX(100%);
  opacity: 1;
  z-index: 5;
  animation: show 0.5s;
}
@keyframes show{
  0% ,49.99%{
    opacity: 0;
    z-index: 1;
  }
  50%,100%{
    opacity:1;
    z-index: 0;
  }
}

.container.right-panel-active .overlay-container{
  transform: translateX(-100%);
}
.container.right-panel-active .overlay{
  transform: translateX(50%);
}
.container.right-panel-active .overlay-left{
  transform: translateX(0);
}
.container.right-panel-active .overlay-right{
  transform:translateX(50%);
}
.overlay-container {
  position: absolute;
  top: 0;
  left: 50%;
  width: 50%;
  height: 100%;
  overflow-y: hidden;
  overflow-x: auto;
  transition: transform 0.5s ease-in-out;
  z-index: 100;
}
.overlay {
  background: var(--myYellow);
  background: -webkit-linear-gradient(20deg, var(--myYellow), var(--myYellow));
  background: linear-gradient(0deg, var(--myYellow), var(--myYellow));
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 0 0;
  color: var(--bgColor);
  position: relative;
  left: -100%;
  height: 100%;
  width: 200%;
  transform: translateX(0);
  transition: transform 0.5s ease-in-out;
}
.overlay-panel {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0 40px;
  text-align: center;
  top: 0;
  height: 100%;
  width: 50%;
  transform: translateX(0);
  transition: transform 0.5s ease-in-out;
}

.overlay-left {
  transform: translateX(-20%);
}
.overlay-right {
  right: 0;
  transform: translateX(0);
}
.hidden-line{
  font-size: small;
  display: none;
}
.hidden-sign-up,.hidden-sign-in{
  text-decoration: underline;
  display: none;
  color: blue;
  text-decoration-color: blue;
}
.hidden-sign-up:hover,.hidden-sign-in:hover{
  cursor: pointer;
}

@media(max-width:700px)
{
  .container{
    width: 80%;
  }
  .overlay-container,.overlay-panel,.overlay,.overlay-right,.overlay-left{
    width: 0px;
    display: none;
  }
  .sign-up-container{
    left: -100%;
    width: 100%;
  }
  .sign-in-container{
width: 100%;  }
.hidden-line{
  display: grid;
}
.hidden-sign-up,.hidden-sign-in{
  display: inline;
}
}