/* AUTH MODAL  */
body.auth-open { overflow: hidden; }

.auth-modal {

    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    padding: 50px 20px;

    &.is-open { display: flex; }

    .auth-overlay {
        position: fixed;
        inset: 0;
        background: #001743;
        opacity: .65;
    }

    .auth-panel {
        display: none;

        &.is-active { display: block; }
    }

    .auth-tab { cursor: pointer; }

    .auth-eye {
        position: relative;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;

        svg { width: 26px; height: 21px; }

        &::after {
            content: "";
            position: absolute;
            left: 50%;
            top: 50%;
            width: 110%;
            height: 3px;
            background: currentColor;
            transform: translate(-50%, -50%) rotate(-45deg);
            display: none;
        }

        &.is-hidden::after { display: block; }
    }

    .auth-dialog {
        position: relative;
        max-width: 824px;
        width: 100%;
        border: 1px solid #707070;
        border-radius: 22px;
        background: white;
        margin: auto;

        .auth-close {
            display: flex;
            justify-content: flex-end;
            padding-right: 36px;
            padding-top: 30px;
            span{
                cursor: pointer;
            }

            svg {
                width: 18px;
                height: 18px;
            }
        }

        .auth-tabs {
            display: flex;
            justify-content: center;
            margin-top: 50px;
            gap: 89px;
            margin-bottom: 90px;

            button {
                background: white;
                border: none;
                padding: 0;
                font-size: 29px;
                line-height: 40px;
                font-family: var(--font-display);
                font-weight: 400;
                color: #00174380;
            }

            button.is-active {
                color: #001743;
                font-weight: 700;
            }
        }

        .auth-panel.login,
        .auth-panel.register {
            padding-inline: 83px;
            padding-bottom: 83px;

            .auth-field {
                margin-bottom: 10px;

                input {
                    background: #F3F3F3;
                    border-radius: 10px;
                    border: none;
                    font-size: 16px;
                    line-height: 25px;
                    font-family: var(--font-display);
                    font-weight: 400;
                    color: #001743;
                    padding: 23px;
                }

                input::placeholder {
                    font-size: 16px;
                    line-height: 25px;
                    font-family: var(--font-display);
                    font-weight: 400;
                    color: #001743;

                }

                input:focus {
                    outline: none;
                    border: none;
                    box-shadow: none;
                }
            }

            .auth-field-pass {
                position: relative;
                button {
                    position: absolute;
                    top: 50%;
                    transform: translateY(-50%);
                    right: 30px;
                }

                button:after {
                    top: 11px;
                }
            }

            .auth-submit {
                width: 100%;
                border-radius: 10px;
                height: 60px;
                display: flex;
                align-items: center;
                font-size: 16px;
                line-height: 25px;
                font-family: var(--font-display);
                font-weight: 400;
                color: white;
                margin-top: 34px;
                background: #001743;
                border: none;
                display: flex;
                justify-content: center;
                cursor:pointer;
            }

            .mod-forgot-password {
                text-align: center;
                margin-top: 24px;
                margin-bottom: 80px;


                a {
                    font-size: 16px;
                    line-height: 25px;
                    font-family: var(--font-display);
                    font-weight: 400;
                    color: #001743;
                    text-decoration: underline;
                }
            }

            .auth-social {
                display: flex;
                flex-direction: column;
                gap: 6px;

                a {
                    display: flex;
                    justify-content: space-between;
                    background: #F3F3F3;
                    height: 60px;
                    padding: 15px 35px;
                    color: #001743;
                    font-size: 16px;
                    line-height: 25px;
                    font-family: var(--font-display);
                    font-weight: 400;
                    border-radius: 10px;

                }

                a:after {
                    content: '';
                    display: inline-block;
                    width: 30px;
                }

                a:nth-child(1) {
                    img {
                        width: 30px;
                        height: 30px;
                    }
                }

                a:nth-child(2) {
                    img {
                        width: 28px;
                        height: 28px;
                    }

                }
            }

        }

        .auth-panel.register {
            .auth-submit {
                margin-bottom: 50px;
            }
        }
    }
}

@media(max-width: 768px) {
    .auth-modal {
        padding: 50px 20px;

        .auth-dialog {
            .auth-close {
                padding-right: 26px;
                padding-top: 22px;

                svg {
                    width: 15px;
                    height: 15px;
                }
            }

            .auth-tabs {
                margin-top: 20px;
                gap: 40px;
                margin-bottom: 50px;

                button {
                    font-size: 22px;
                    line-height: 35px;
                }
            }

            .auth-panel.login,
            .auth-panel.register {
                padding-inline: 23px;
                padding-bottom: 43px;

                .auth-field {
                    margin-bottom: 11px;
                    input {
                        font-size: 16px;
                        line-height: 25px;
                        padding: 15px 15px;
                    }
                }
                .auth-field-pass {
                    button {
                        top: 51%;
                        svg{
                            width: 20px;
                            height: 20px;
                        }
                    }

                    button:after {
                        top: 10px;
                        left: 10px;
                    }
                }

                .mod-forgot-password {
                    margin-top: 24px;
                    margin-bottom: 40px;
                    a {
                        font-size: 16px;
                        line-height: 25px;
                    }
                }

                .auth-social {
                    display: flex;
                    flex-direction: column;
                    gap: 6px;

                    a {
                        display: flex;
                        justify-content: space-between;
                        background: #F3F3F3;
                        height: 60px;
                        padding: 15px 35px;
                        color: #001743;
                        font-size: 16px;
                        line-height: 25px;
                        font-family: var(--font-display);
                        font-weight: 400;
                        border-radius: 10px;

                    }

                    a:after {
                        content: '';
                        display: inline-block;
                        width: 30px;
                    }

                    a:nth-child(1) {
                        img {
                            width: 30px;
                            height: 30px;
                        }
                    }

                    a:nth-child(2) {
                        img {
                            width: 28px;
                            height: 28px;
                        }

                    }
                }

            }

            .auth-panel.register {
                .auth-submit {
                    margin-bottom: 30px;
                }
            }
        }
    }
}
