@import url('https://fonts.googleapis.com/css?family=Poppins:400,700&display=swap');

* {
    box-sizing: border-box;
}

body {
    background: #f6f5f7;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Poppins', sans-serif;
    height: 90vh;

}

.container {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25),
        0 10px 10px rgba(0, 0, 0, 0.22);
    position: relative;
    overflow: hidden;
    width: 768px;
    max-width: 100%;
    min-height: 430px;
    border-radius: 70px;
}

.form-container {
    position: absolute;
    top: 0;
    height: 100%;
    transition: all 0.6s 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%);

}

.container.right-panel-active .sign-up-container {
    transform: translateX(100%);
    opacity: 1;
    z-index: 5;
    animation: show 0.6s;
}

@keyframes show {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

form {
    background: #fff;
    display: flex;
    flex-direction: column;
    padding: 0 50px;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
}

input {
    background: #eee;
    border: none;
    padding: 12px 15px;
    margin: 8px 0;
    width: 100%;
    border-radius: 20px;
}

button {
    border-radius: 20px;
    border: 1px solid #7ebdda;
    background-color: #8badd4;
    color: #fff;
    font-size: 12px;
    margin-top: 10px;
    padding: 12px 45px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: transform 80ms ease-in;

}

button:focus {
    transform: scale(1.05);
    /* Slight zoom-in effect */
}

.overlay-container {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: transform 0.6s ease-in-out;
    z-index: 100;
    border-radius: 70px;
}

.container.right-panel-active .overlay-container {
    transform: translateX(-100%);
}

.overlay {

    background: linear-gradient(to right, #c8d9fd, #506be6);
    background-repeat: no-repeat;
    background-size: cover;
    color: #ffffff;
    position: relative;
    left: -100%;
    height: 100%;
    width: 200%;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
}

.container.right-panel-active .overlay {
    transform: translateX(50%);
}

.overlay-panel {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
    text-align: center;
    top: 0;

    height: 100%;
    width: 50%;
    transform: translateX(0);
    transition: transform 0.9s ease-in-out;

}

.overlay-panel h1 {
    font-size: 20px;
    font-family: 'Poppins';
}

.overlay-panel p {
    font-size: 12px;
    font-family: 'Poppins';
}

.overlay-left {
    transform: translateX(-20%);
}

.container.right-panel-active .overlay-left {
    transform: translateX(0);
}

.overlay-right {
    right: 0;
    transform: translateX(0);
}

.container.right-panel-active .overlay-right {
    transform: translateX(20%);
}

button.ghost {
    background-color: transparent;
    color: #fff;
    border: 2px solid #ffffff8c;
    padding: 10px 30px;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.3s ease;
    font-family: 'Poppins';
    text-transform: none;
}

button.ghost:hover {
    background-color: #ffffff;
    color: #726e6e;
}

.input-wrapper {
    position: relative;
    width: 100%;
    margin: 1px 0;
}

.input-wrapper i {
    position: absolute;
    left: 90%;
    top: 50%;
    transform: translateY(-50%);
    color: #636060;
    font-size: 16px;
}


.input-wrapper input:focus {
    border-color: #007bff;
    outline: none;
    
}

.welcome-img {
    width: 80px;
    height: 70px;
    image-rendering: auto;
    object-fit:fill;
    margin-bottom: 10px;
    image-rendering: crisp-edges;
    /* Good for icons or low-res images */
    image-rendering: -webkit-optimize-contrast;
    /* Sharpens on some browsers */
}
h1 {
    font-size: 25px;
   
}
.remember-forgot {
    margin-top: 4px;
    margin-bottom: 15px;
    font-size: 12px;
  }
  
  .remember-forgot a {
    margin-right: 160px;
   
    color: #007bff;
    text-decoration: none;
  }
  
  .remember-forgot a:hover {
    text-decoration: underline;
  }
  /* Modal container */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(145, 135, 135, 0.4);
  }
  
  /* Modal box */
  .modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 10px;
    border-radius: 10px;
    width: 30%;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    text-align: center;
  }
  
  /* Close button */
  .modal .close {
    position:relative;
    left: 170px;
    top: 10px;
    font-size: 20px;
    cursor: pointer;
  }