@import url('https://fonts.googleapis.com/css?family=Montserrat:400,800');

/* Modal Wrapper */
.modal-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: none;
    z-index: 1000;
}

.custom_modal-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
}

/* Typography */
.custom_title {
    font-weight: bold;
    margin: 0;
    text-align: center;
}

.custom_paragraph, .custom_span {
    font-size: 14px;
    font-weight: 100;
    line-height: 20px;
    letter-spacing: 0.5px;
    margin: 7px 0 19px;
}

.custom_paragraph {
    color: #000;
    font-size: 0.85em;
}

.custom_link, .custom_span {
    font-size: 12px;
    text-decoration: none;
    color: #000
}

/* Buttons */
.custom_button {
    width: 100%;
    border-radius: 20px;
    border: 1px solid #40c96e;
    background-color: #40c96e;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: bold;
    padding: 12px 45px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: transform 80ms ease-in, background-color 0.3s;
}

.custom_button:hover {
    background-color: rgba(64, 201, 110, 0.63);
}

.custom_button:active {
    transform: scale(0.95);
}

.custom_button:focus {
    outline: none;
}

.custom_ghost-button {
    width: 100%;
    height: 9%;
    color: #fff;
    background-color: #40C96E;
    border: 1px solid #000;
    border-radius: 6px;
    transition: background-color 0.3s;
}

.custom_ghost-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #000
}

/* Inputs */
.custom_input {
    background-color: #eee;
    padding: 12px 15px;
    margin: 8px 0;
    width: 100%;
    transition: border 0.3s;
    border: 1px solid #fff;
}

.custom_input:focus {
    border: 1px solid #49cb75;
    outline: none;
}

/* Container */
.custom_container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1), 0 6px 6px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    overflow: hidden;
    width: 1240px;
    max-width: 100%;
    min-height: 580px;
}

/* Form Containers */
.custom_form-container {
    position: absolute;
    top: 0;
    height: 100%;
    transition: all 0.6s ease-in-out;
    padding: 5%;
}

.custom_sign-in-container {
    left: 0;
    width: 50%;
    z-index: 2;
}

.custom_container.right-panel-active .custom_sign-in-container {
    transform: translateX(100%);
    opacity: 0;
}

.custom_sign-up-container {
    left: 0;
    width: 50%;
    opacity: 0;
    z-index: 1;
}

.custom_container.right-panel-active .custom_sign-up-container {
    transform: translateX(100%);
    opacity: 1;
    z-index: 5;
    animation: show 0.6s;
}

/* Animations */
@keyframes show {
    0%, 49.99% {
        opacity: 0;
        z-index: 1;
    }

    50%, 100% {
        opacity: 1;
        z-index: 5;
    }
}

/* Overlay */
.custom_overlay-container {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: transform 0.6s ease-in-out;
    z-index: 100;
}

.custom_container.right-panel-active .custom_overlay-container{
    transform: translateX(-100%);
}

.custom_overlay {
    text-align: initial;
    background: #fff;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 0 0;
    color: #FFFFFF;
    position: relative;
    left: -100%;
    height: 100%;
    width: 200%;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
}

.custom_container.right-panel-active .custom_overlay {
    transform: translateX(50%);
}

.custom_overlay-panel {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    top: 0;
    height: 100%;
    width: 50%;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
}

.custom_overlay-left {
    transform: translateX(-20%);
}

.custom_container.right-panel-active .custom_overlay-left {
    transform: translateX(0);
}

.custom_overlay-right {
    right: 0;
    transform: translateX(0);
}

.custom_container.right-panel-active .custom_overlay-right {
    transform: translateX(20%);
}

/* Social Icons */
.custom_social-container {
    margin: 20px 0;
}

.overlay_background {
    text-align: justify;
    padding: 35px;
    border: 1px solid #ebebeb;
    border-radius: 16px 16px 16px 16px;
    -webkit-border-radius: 16px 16px 16px 16px;
    -moz-border-radius: 16px 16px 16px 16px;
    box-shadow: 1px 4px 17px -2px rgba(179,179,179,0.81);
    -webkit-box-shadow: 1px 4px 17px -2px rgba(179,179,179,0.81);
    -moz-box-shadow: 1px 4px 17px -2px rgba(179,179,179,0.81);
}

.overlay_background img {
    width: 100%;
    height: auto;
    border-radius: 0;
}

.custom_social-container a {
    border: 1px solid #DDDDDD;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 0 5px;
    height: 40px;
    width: 40px;
}


/* Mobile devices */
@media (max-width: 768px) {
    .custom_container {
        box-shadow: none;
        height: 100%;
    }

    .custom_overlay-container {
        position: absolute;
        top: 0;
        left: 0;
        display: block;
        width: 100%;
        height: 50%;
        overflow: hidden;
        transition: transform 0.6s ease-in-out;
        z-index: 100;

    }
    .custom_overlay-right {
        transform: translateY(-20px);
    }

    .custom_container.right-panel-active .custom_sign-up-container {
        transform: translateX(0%);
    }

    .custom_sign-in-container,
    .custom_sign-up-container {
        position: relative;
        width: 100%;
        height: 50%;
        padding: 20px;
    }
    .custom_container.right-panel-active .custom_overlay-container {
        transform: translate(0, 100%);
    }

    .custom_button {
        width: 100%;
    }

    .custom_input {
        width: calc(100% - 40px);
    }
}

