@import "../../component/form/form";

.ub-account {
    min-height: calc(100vh - 240px);
    padding: 2rem;

    .box {
        background: #FFF;
        max-width: 17rem;
        box-shadow: 0 0 0.3rem rgba(0, 0, 0, 0.1);
        box-sizing: border-box;
        border-radius: var(--size-radius);
        padding: 1rem 0;
        margin: 0 auto;
        text-align: center;

        // @since 1.6.0
        &.wide {
            max-width: 34rem;
            width: 34rem;
        }

        .logo {
            text-align: center;

            a {
                display: inline-block;
                text-decoration: none;

                img {
                    height: 2rem;
                    vertical-align: middle;
                }
            }
        }

        .nav {
            font-size: var(--font-size-large);
            color: #c4cfdb;
            margin-top: 1rem;

            a {
                color: #c4cfdb;
                text-decoration: none;
                font-size: var(--font-size-large);

                &.active {
                    color: var(--color-primary);
                }
            }
        }

        .ub-form {
            padding: 1.5rem 1.5rem 0 1.5rem;

            .line {
                .field {
                    .help {
                        text-align: left;
                    }
                }
            }
        }
    }

    .oauth {
        padding-top: 1rem;
        text-align: center;
        color: #c4cfdb;

        .title {
            border-top: 1px solid #e9edf0;
            margin: 0 2rem;

            .line {
                width: 3rem;
                background: #FFF;
                display: block;
                margin: 0 auto;
                line-height: 1rem;
                margin-top: -0.5rem;
            }
        }

        .body {
            padding: 1rem 0;
        }

        a {
            display: inline-block;
            width: 2rem;
            height: 2rem;
            background: #c4cfdb;
            color: #FFF;
            border-radius: 50%;
            text-align: center;
            margin: 0.1rem;
            text-decoration: none;

            &:hover {
                box-shadow: 0 0 5px rgb(0 0 0 / 20%);
            }

            i {
                font-size: 1rem;
                line-height: 2rem;
            }

            &.qq {
                background: #498ad5;

                &:hover {
                    background: darken(#498ad5, 10%);
                }
            }

            &.weibo {
                background: #e05244;

                &:hover {
                    background: darken(#e05244, 10%);
                }
            }

            &.wechat {
                background: #00bb29;

                &:hover {
                    background: darken(#00bb29, 10%);
                }
            }
        }
    }

    .retrieve {
        text-align: center;
        color: #c4cfdb;
        margin-top: 1rem;
    }
}

@media (max-width: 800px) {
    .ub-account {
        padding: 0;
        min-height: 100vh;

        .box {
            margin: 0 auto;
            max-width: 20rem;
            box-shadow: none;

            &.wide {
                width: auto;
            }
        }
    }
}
