@import url('./constants.css');


body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100vw;
}

h1.title {
    font-family: "Poppins", serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: -10px 0;
}

.container {
    position: relative;
    width: 100%;
    height: 100vh;
    background-color: var(--white-color);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.form-box {
    box-shadow: 0 28px 79px 0 rgba(10, 22, 31, 0.35);
    z-index:6;
    box-sizing: border-box;
    position: absolute;
    right:20%;
    width: 40%;
    height: 80%;
    padding: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    text-align: center;
    background-color: var(--white-color);
    transition: .6s ease-in-out 1.2s, visibility 0s linear 1s;
}

.container.active .form-box {
    right: 40%;
}

.form-box.register {
    visibility: hidden
}


.container.active .form-box.register {
    visibility: visible;
}

form {
    width: 100%;
}


.input-box {
    position: relative;
    margin: 30px 0;

}

.input-box input {
    box-sizing: border-box;
    width: 100%;
    padding: 13px 50px 13px 20px;
    background-color: var(--lightGrey-color);
    border-radius: 8px;
    border: none;
    outline: none;
    font-family: "Poppins", serif;
    font-size: 1rem;
    color: var(--grey-color);
}

.input-box input::placeholder {
    color: var(--grey-color);
    font-weight: 400;
    font-family: "Poppins", serif;
}

.input-box i {
    position: absolute;
    top: 50%;
    right: 20px;
    font-size: 1.2rem;
    transform: translateY(-50%);
    color: var(--grey-color);
}

.forgot-link {
    width: 100%;
    display: flex;
    justify-content: end;
    margin: 15px 0;
}

.forgot-link a {
    color: var(--success-color);
    font-family: "Poppins", serif;
    font-size: .8rem;
    font-weight: 600;
}

.btn {
    font-family: "Poppins", serif;
    font-size: 1.8rem;
    font-weight: 600;
    width: 100%;
    height: 50px;
    background-color: var(--success-color);
    border: none;
    border-radius: 8px;
    color: var(--white-color);
    cursor: pointer;
}

.register {
    font-family: "Poppins", serif;
    font-size: .8rem;
    font-weight: 400;
    color: var(--grey-color);

}

.register a {
    font-family: "Poppins", serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--grey-color);
}

.sign-divider {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.sign-divider .div {
    width: 40%;
    height: 1px;
    border-radius: 5px;
    background-color: var(--grey-color);

}

.sign-divider span {
    font-family: "Poppins", serif;
    font-size: .8rem;
    font-weight: 600;
    color: var(--grey-color);
    margin: 0 15px;
}

.social-icons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.social-icons a {
    margin: 0 5px;
    display: flex;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--grey-color);
}

.social-icons a img {
    width: 30px;
}
.check-privcy {
    margin: 20px 0;
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: center;
    font-family: "Poppins", serif;
    font-size: .8rem;
    font-weight: 400;
}

.check-privcy a {
    color: var(--success-color);
    margin-right: 5px;
}

.toggle-box {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120%;
    height: 100%;
}

.toggle-box::before {
    content: '';
    position: absolute;
    left: -250%;
    border-radius: 20px;
    width: 300%;
    height: 90%;
    background-color: var(--success-color);
    z-index: 2;
    transition: 1.8s ease-in-out;
}

.container.active .toggle-box::before {
    left: 50%;
}

.toggle-panel {
    z-index: 2;
    position: absolute;
    width: 50%;
    height: 100%;
    color: var(--white-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: .6s ease-in-out;

}
.toggle-panel img {
    width: 50%;
}

.toggle-panel.toggle-left {
    left: 0;
    transition-delay: 1.2s;
}

.container.active .toggle-panel.toggle-left {
    left: -50%;
    transition-delay: .6s;

}

.toggle-right {
    right: -50%;
}

.container.active .toggle-panel.toggle-right {
    right: 0;
    transition-delay: 1.2s;
}

.toggle-panel.toggle-right {
    right: -50%;
    transition-delay: .6s;
}

.toggle-panel span {
    font-family: "Poppins", serif;
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 25px;
    color: var(--white-color);
}

.toggle-panel span.title {
    font-family: "Poppins", serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 25px 0;
    color: var(--white-color);
}

.toggle_button {
    width: 50%;
    height: 50px;
    background-color: transparent;
    border: 2px solid var(--white-color);
    border-radius: 5px;
    color: var(--white-color);
    cursor: pointer;
    font-family: "Poppins", serif;
    font-size: 1.2rem;
    font-weight: 700;
}


@media screen and (max-width: 1356px) {
    .check-privcy {
        font-size: .5rem;
    }

    .check-privcy a {
        font-size: .5rem;
    }
}

@media screen and (max-width: 850px) {
    .container {
        height: calc(
                100vh - 40px
        );
    }

    .form-box {
        right:0;
        width: 100%;
        height: 70%;
        bottom: 0
    }

    .container.active .form-box {
        right: 0;
        bottom: 30%;
    }

    .toggle-box::before {
        left: 0;
        top: -270%;
        width: 100%;
        height: 300%;
    }

    .container.active .toggle-box::before {
        left: 0;
        top: 70%;
    }

    .toggle-panel {
        width: 100%;
        height: 30%;
    }

    .toggle-panel.toggle-left {
        top: 0;
    }

    .container.active .toggle-panel.toggle-left {
        top: -30%;
        left: 0;
    }

    .toggle-panel.toggle-right {
        right: 0;
        bottom: -30%;
    }

    .container.active .toggle-panel.toggle-right {
        right: 0;
        bottom:0;
    }

}
.alert-container {
    position: fixed;
    top: 5px;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: none;
}

.alert {
    margin: 0 auto;
    width: 60%;
    text-align: center;
    padding: 10px;
    border-radius: 10px;
    background-color:  #e74c3c;
    font-family: "Poppins", serif;
    font-size: 1rem;
    font-weight: 600;
    color: white;
}

.alert ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
