*{
    box-sizing: border-box;
}


body{
    align-items: center;
    display:flex;
    justify-content: center;
    flex-direction: column;
    background: #f6f5f7;
    min-height: 100%;
    margin: 7%

}
.container{
    position:relative;
    width: 850px;
    max-width: 100%;
    min-height: 650px;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 14px 28px rgba(0,0,0,0.25),
                0 10px 10px rgba(0,0,0,0.22);

}

.Login, .SignUp{
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    transition: all 0.6s ease-in-out;

}

.SignUp{
    width:50%;
    opacity: 0;
    z-index: 1;
}
.Login{
    width: 50%;
    z-index: 2;
}
form{
    background: 2CC295;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 50px;
    height: 100%;
    text-align: center;
}
h1{
    font-weight: bold;
    margin: 0;
}
p{
    font-size: 14px;
    font-weight: 100;
    line-height: 20px;
    letter-spacing: 0.5px;
    margin: 15px 0 20px;
}
input{
    background: #eee;
    padding: 12px 15px;
    margin: 8px 15px;
    width: 100%;
    border-radius: 5px;
    border: none;
    outline: none;
}
a{
    color: #ed8d1b;
    font-size: 14px;
    text-decoration: none;
    margin: 15px 0;
}
button{
    background: #ed8d1b;
    font-size: 12px;
    font-weight: bold;
    padding: 12px 55px;
    margin: 20px;
    border-radius: 20px;
    border: 1px solid #ed8d1b;
    outline: none;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: transform 80ms ease-in;
    cursor: pointer;
}

button:hover{
    background-color: #c27416;
    border: 1px solid #c27416;
    color:#151616;
    transition: all 0.3s ease 0s;
}

button:active{
    transform:scale(0.90);
}

.SignUp #LogIn{
    background: transparent;
    border: transparent;
}

#SignUp{
    background-color: transparent;
    border: 2px solid #fff;
}

#SignUp:active{
    transform:scale(0.9);
}

#Login{

    background-color: transparent;
    border: 2px solid #fff;
}

#Login:active{
    transform:scale(0.9);
}

.container.right-panel-active .SignUp{
    transform:translateX(100%);
    opacity: 1;

}
.containter.right-panel-active .Login{
    transform: translateX(100%);
    opacity: 1;
    z-index: 5;
}

.overlay-containter{
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: transform 0.6s ease-in-out;
    z-index: 100;
}
.container.right-panel-active .overlay-containter{
    transform: translateX(-100%);
}

.overlay{
    position: relative;
    background: #ed8d1b;
    left: -100%;
    height: 100%;
    width: 200%;
    background: linear-gradient(to right, #ed8d1b, #c27416);
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
}

.container.right-panel-active .overlay{
    transform: translateX(50%);
}

.overlay-left, .overlay-right{
    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.6s ease-in-out;

}

.overlay-left img{
    height: 400px;
    width: 400px; 
} 

.overlay-right img{
    height: 400px;
    width: 400px;
}

.overlay-left{
    transform: translateX(-20%);
}

.overlay-right{
    right: 0;
    transform: translateX(0%);
}

.container.right-panel-active .overlay-left{
    transform: translateX(0);
}

.container.right-panel-active .overlay-right{
    transform: translateX(20%);
}

.backButton {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 200; /* higher than overlay-containter (which is z-index: 100) */
  cursor: pointer;
  transition: all 0.3s ease 0s;
  transition: all 0.6s ease-in-out; /* match panel animation speed */
}

.backButton img {
  width: 30px;
  height: 30px;
  transition: all 0.3s ease 0s;
}

.backButton:hover .default-image {
  display: none;
  transition: all 0.3s ease 0s;
}

.backButton:hover .hover-image {
  display: inline-block !important;
  transition: all 0.3s ease 0s;
}

.backButton img:hover{
    transform: scale(90%);
    transition: all 0.3s ease 0s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-radius: 50%;
}

.container.right-panel-active .backButton {
  left: auto;
  right: 380px;
}
