@use "../utils" as *;

/*----------------------------------------*/
/* Authentication style
/*----------------------------------------*/
.auth-inner {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding-top: 50px;
    padding-bottom: 50px;
}
.auth-wrapper {
    width: 550px;
    margin: 0 auto;
    padding: 30px 35px 35px;
    background: rgba($white, $alpha: 0.08);
    border: 1px solid rgba($white, $alpha: 0.08);
    border-radius: 10px;
    @media #{$xs} {
        width: calc(100% - 30px);
        padding: 25px 15px 30px;
    }
    &.sing-up {
        width: 760px;
        @media #{$sm} {
            width: calc(100% - 60px);
        }
        @media #{$xs} {
            width: calc(100% - 30px);
        }
    }
}
.auth-from-top-content {
    margin-bottom: 45px;
    @media #{$xs} {
        margin-bottom: 35px;
    }
    .auth-logo {
        margin-bottom: 35px;
        img {
            width: auto;
            height: 30px;
        }
    }
    .title {
        margin-bottom: 5px;
    }
    .email-hidden {
        font-size: 18px;
    }
}
.auth-from-main {
    padding: 25px 50px;
    display: grid;
    align-content: stretch;
    @media #{$md,$sm} {
        padding: 50px 30px;
    }
    @media #{$xs} {
        padding: 30px 20px;
    }
    .auth-from-inner {
        min-width: 635px;
        margin: 0 auto;
        @media #{$xs,$sm,$lg,$xl} {
            min-width: 100%;
        }
    }
    .auth-from-top-content {
        text-align: center;
        .auth-logo {
            margin-bottom: 24px;
            a {
                display: block;
            }
        }
        .title {
            font-size: 36px;
            margin-bottom: 13px;
            font-weight: 700;
            @media #{$xxl,$xl} {
                font-size: 32px;
            }
            @media #{$lg} {
                font-size: 28px;
            }
            @media #{$md,$sm,$xs} {
                font-size: 28px;
            }
            @media #{$xxs} {
                font-size: 22px;
            }
        }
        .description {
            max-width: 386px;
            margin: 0 auto;
        }
        .email-hidden {
            font-size: 16px;
            font-weight: 600;
            margin-top: 25px;
        }
    }
    .auth-login-option {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        margin-bottom: 27px;
        margin-top: 6px;
        .auth-remind-checkbox {
            input[type="checkbox"] {
                & ~ label {
                    &::before {
                        width: 16px;
                        height: 16px;
                        top: 3px;
                    }
                    &::after {
                        width: 16px;
                        height: 16px;
                    }
                }
            }
            .remind-me {
                font-size: 14px;
                padding-inline-start: 24px;
            }
        }
        .forget-content {
            span {
                font-size: 14px;
                font-weight: 500;
                a {
                    text-decoration: underline;
                    color: var(--td-primary);
                    &:hover {
                        text-decoration: none;
                    }
                }
            }
        }
    }
}
.auth-login-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 27px;
    margin-top: 6px;
    .auth-remind-checkbox {
        input[type="checkbox"] {
            & ~ label {
                &::before {
                    width: 16px;
                    height: 16px;
                    top: 3px;
                }
                &::after {
                    width: 16px;
                    height: 16px;
                }
            }
        }
        .remind-me {
            font-size: 14px;
            padding-inline-start: 24px;
        }
    }
    .forget-content {
        span {
            font-size: 14px;
            font-weight: 500;
            a {
                text-decoration: underline;
                &:hover {
                    text-decoration: none;
                }
            }
        }
    }
}

.auth-from-bottom-content {
    text-align: center;
    margin-top: 30px;
}
.auth-account {
    .description {
        font-weight: 500;
        .link {
            color: var(--td-tertiary);
            text-decoration: underline;
            &:hover {
                text-decoration: none;
            }
        }
    }
}
.auth-privacy-policy {
    max-width: 323px;
    margin: auto;
    margin-top: 20px;
    .description {
        font-size: 14px;
        .link {
            font-weight: 600;
            color: var(--td-tertiary);
            text-decoration: underline;
            &:hover {
                text-decoration: none;
            }
        }
        span {
            padding: 0 5px;
        }
    }
}
