/*********************************************************************************\
        This archive is used to style anything relashionship to Login and Register
\*********************************************************************************/

@import url(base.css);

body {
    min-height: 100dvh;
    width: 100dvw;
    display: flex;
    flex-direction: column;

    font-size: 1.2rem;
}

.background {
    height: 100%;
    width: 100%;

    flex: 1;
}

.box-container {
    height: 800px;
    width: 100%;
    position: relative;
    overflow-x: hidden;
}

.box {
    height: 100%;
    width: 100%;
    padding-top: 20px;
    padding-inline: 20px;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform .5s ease, opacity .3s ease, visibility .3s ease;
    overflow-y: auto;

    .box-top {
        /* for image: */
        /* img {   width: 80px; } */
        /* for text: */
        img {   width: 60px; }

        h1 {
            font-weight: var(--weight-Bold);
            margin-block: 20px;
            font-size: 2.6rem;
        }

        .already-have {
            cursor: pointer;
            p {
                font-weight: var(--weight-Medium);
                color: var(--color-gray-4);
                font-weight: 500;
                font-size: 1.4rem;
            }
            span {
                display: inline;
                color: var(--color-blue-light);
                border-bottom: 1px solid var(--color-blue-light);
                font-weight: var(--weight-Semibold)
            }
        }
    }

    form {
        margin-block-start: 48px;

        .forgot-password{
            font-size: 1.4rem;
            margin-top: 10px;
            display: block;
            color: var(--color-blue-light);
            font-weight: var(--weight-Semibold);
            justify-self: end;
        }
        .inputs {
            display: grid;
            gap: 20px;
        }

        .field-box {
            span {
                font-weight: var(--weight-Medium);
                color: var(--color-gray-4);
                font-weight: 500;
                margin-block-end: 10px;
            }
            input {
                border: 1px solid var(--color-gray-3);
                width: 100%;
                border-radius: 6px;
                height: 36px;
                font-size: 1.6rem;
                padding-inline: 12px;
            }
        }

        .agree-terms {
            margin-top: 20px;
            a {
                display: inline;
                color: var(--color-blue-light);
                font-weight: var(--weight-Medium);
            }
        }

        button {
            margin-top: 40px;
            justify-self: end;
            padding-inline: 32px;
            height: 40px;
            font-weight: var(--weight-Bold);
            font-size: 1.4rem;
            span {
                display: block;
            }
        }
    }

    .divisor {
        display: flex;
        align-items: center;
        color: var(--color-gray-5);
        font-size: 17px;
        font-weight: 300;
        line-height: 23px;
        text-align: center;
        margin-block: 32px;
        
        &::before, &::after {
            border-bottom: 1px solid var(--color-gray-1);
            content: "";
            flex: 1;
        }

        span {
            margin-inline: 16px;
        }
    }

    .more-options {
        /* height: 200px; */
        .google {
            width: 100%;
            gap: 10px;
            font-size: 1.4rem;
            font-weight: var(--weight-Bold);
        }
    }
}

footer {
    margin-top: 60px;
    border-top: 1px solid var(--color-gray-1);
    padding-block: 20px;
    padding-inline: 20px;
    font-size: 1.3rem;
    color: var(--color-gray-4);
    font-weight: 450;
    
    .links {
        margin-top: 8px;
        line-height: 26px;
        display: flex;
        flex-wrap: wrap;

        a {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        & a:not(:last-child)::after {
            content: "";
            width: 4px;
            height: 4px;
            border-radius: var(--radius-circle);
            background-color: var(--color-gray-3);
            display: block;
            margin-inline:10px;
            flex-shrink: 0;
        }
    }
}

.box.signin {
    transform: translateX(0);
}

.box.signup {
    transform: translateX(100%);
}

.box-container.active {
    .box.signin {
        transform: translateX(100%);
        pointer-events: none;
        visibility: hidden;
        opacity: 0;
    }

    .box.signup {
        transform: translateX(0);
    }
}