﻿
body {
    overflow: hidden;
    margin: 0;
    font-family: "PingFang SC", "Lantinghei SC", "Microsoft YaHei", "HanHei SC", "Helvetica Neue", "Open Sans", Arial, "Hiragino Sans GB", 微软雅黑, STHeiti, "WenQuanYi Micro Hei", SimSun, sans-serif;
    position: relative;
}

html[theme-style="light"] {
    --theme-color: #1990ff;
    --theme-color-01: #1990ff1A;
    --theme-color-02: #1990ff33;
    --theme-color-03: #1990ff4C;
    --theme-color-04: #1990ff66;
    --theme-color-05: #1990ff80;
    --theme-color-06: #1990ff99;
    --theme-color-07: #1990ffB2;
    --theme-color-08: #1990ffCC;
    --theme-color-09: #1990ffE6;
    --login-container-image: linear-gradient( 120deg, #6db8ff, #1990ff);
    --login-background-color: #fff;
    --login-title-color: #fff;
    --login-login-content-title: #1990ff;
    --login-border-color: #e3e4e5;
    --login-focus-color: #1990ff4d;
    --login-focus-shadow: #1990ff33;
    --login-input-color: #212529;
    --login-button-focus-shadow: #1990ff33;
}

html[theme-style="dark"] {
    --theme-color: #111111;
    --theme-color-01: #1111111A;
    --theme-color-02: #11111133;
    --theme-color-03: #1111114C;
    --theme-color-04: #11111166;
    --theme-color-05: #11111180;
    --theme-color-06: #11111199;
    --theme-color-07: #111111B2;
    --theme-color-08: #111111CC;
    --theme-color-09: #111111E6;
    --login-container-image: linear-gradient(45deg, #111, #111);
    --login-background-color: #111;
    --login-title-color: rgba(255,255,255,0.5);
    --login-login-content-title: rgba(255,255,255,0.5);
    --login-border-color: rgba(255,255,255,0.5);
    --login-focus-color: rgba(255,255,255,0.3);
    --login-focus-shadow: rgba(255,255,255,0.2);
    --login-input-color: rgba(255,255,255,0.5);
    --login-button-focus-shadow: #11111133;
}

.theme-style {
    position: fixed;
    right: 10px;
    top: 10px;
}

    .theme-style .light, .theme-style .dark {
        display: none;
        cursor: pointer;
        width: 20px;
        height: 20px;
        justify-content: center;
        align-items: center;
    }

[theme-style="light"] .theme-style .light {
    display: flex;
}

[theme-style="dark"] .theme-style .dark {
    display: flex;
}

@keyframes login-fangda {
    0% {
        transform: scale(1);
    }

    100% {
        opacity: 1;
        transform: scale(1000);
    }
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    max-height: 100vh;
    max-width: 100%;
    min-width: 100%;
    overflow: hidden;
    background-repeat: no-repeat;
    background-position: 0;
    background-size: contain;
    background-size: 300% 300%;
    animation: attract 5s ease infinite;
    -webkit-animation: attract 5s ease infinite;
    -moz-animation: attract 5s ease infinite;
    position: relative;
    background-image: var(--login-container-image);
}

.login-title-wrap {
    position: absolute;
    top: 30px;
    left: 50px;
    display: flex;
    align-items: center;
}

.login-title {
    font-size: 24px;
    color: #ffffff;
    border-left: 1px solid #ffffff;
    margin-left: 10px;
    padding-left: 10px;
    line-height: 26px;
}

.login-logo {
    width: 100%;
    height: 26px;
}

.image-container {
    flex: 6;
    height: 100vh;
    position: relative;
    background-repeat: no-repeat;
    background-position: 50%;
    background-size: 70% auto;
    transition: background-image .2s linear;
    background-image: url('/bg/1.svg');
}


.version {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255,255,255,0.7);
    font-size: 12px;
}

.login-background {
    background-repeat: no-repeat;
    background-color: #1890ff;
    background-position: 50%;
    background-size: 90% auto;
}

.login-content-wrap {
    display: flex;
    flex: 4;
    align-items: center;
}

.login-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    box-shadow: 0 10px 20px rgb(0 0 0 / 15%);
    padding: 50px 40px;
    border-radius: 20px;
}

[theme-style="light"] .login-content {
    background-color: #fff;
}

[theme-style="dark"] .login-content {
    background-color: rgba(255,255,255,0.07);
}

.login-content-title {
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 22px;
    color: var(--login-login-content-title);
}

#loginForm {
    width: 390px;
    display: grid;
}

.login-form-field-wrap {
    margin-top: 10px;
    margin-bottom: 10px;
    height: 50px;
}

.login-form-flex-wrap {
    display: flex;
    height: 100%;
}

.login-form-field-input {
    line-height: 46px;
    outline: 0;
    border: 2px solid var(--login-border-color);
    position: relative;
    border-radius: 10px;
    box-sizing: border-box;
    box-shadow: none;
    transition: color .2s ease-in-out,background-color .2s ease-in-out,border-color .2s ease-in-out,box-shadow .2s ease-in-out;
    height: 50px;
    color: var(--login-input-color);
}

    .login-form-field-input:focus-within {
        border-color: var(--login-focus-color);
        box-shadow: 0 0 0 0.2rem var(--login-focus-shadow);
    }

    .login-form-field-input input {
        margin: 0;
        padding: .375rem 1.25rem;
        width: 100%;
        min-width: 0;
        height: 46px;
        border: 0;
        outline: 0;
        box-sizing: border-box;
        box-shadow: none;
        color: inherit;
        background: 0;
        font: inherit;
        overflow: hidden;
        text-overflow: ellipsis;
        -webkit-appearance: none;
    }

.login-form-error {
    font-size: 12px;
    color: #dc3545;
    margin: 2px;
    margin-left: 10px;
}


.captcha-wrap {
    min-width: 120px;
    min-height: 50px;
    max-width: 120px;
    max-height: 50px;
}

.login-error {
    display: block;
    text-align: center;
    color: #f00;
    min-height: 22px;
}


#error-message {
    margin-top: 10px;
    min-height: 24px;
    color: #dc3545;
}

.login-button {
    font-size: 14px;
    line-height: 14px;
    border-color: transparent;
    border: none;
    background-size: 200% 200%;
    animation: attract 10s ease infinite;
    -webkit-animation: attract 10s ease infinite;
    -moz-animation: attract 10s ease infinite;
    border-radius: 10px;
    background-color: transparent;
    background-image: var(--login-container-image);
    box-shadow: 0 3px 10px var(--login-button-focus-shadow);
}

[theme-style="light"] .login-button {
    color: #fff;
}

[theme-style="dark"] .login-button {
    color: rgba(255,255,255,0.5);
    border: 1px solid;
}

.login-button:hover {
    -moz-animation-duration: 1.5s;
    -webkit-animation-duration: 1.5s;
    animation-duration: 1.5s;
}

#login-submit {
    width: 100%;
    height: 50px;
}


.login-success {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.login-success-dot {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    background: var(--login-background-color);
}

.login-success.show {
    display: flex;
}

    .login-success.show .login-success-dot {
        animation: login-fangda 1.5s;
        animation-fill-mode: forwards;
    }


@-moz-keyframes attract {
    0% {
        background-position: 0 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0 50%;
    }
}

@-webkit-keyframes attract {
    0% {
        background-position: 0 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0 50%;
    }
}

@keyframes attract {
    0% {
        background-position: 0 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0 50%;
    }
}


@media screen and (max-width:1100px) {
    .image-container {
        display: none;
    }

    .theme-style .light {
        color: #212529;
    }

    .login-title {
        display: none;
    }

    #loginForm {
        width: 100%;
    }

    .login-content-wrap {
        display: block;
        height: 100vh;
    }

    .login-content {
        border-radius: 0;
        height: 100vh;
    }
}

[theme-style="light"] .loading-container {
    background-color: rgba(255,255,255,0);
}

[theme-style="dark"] .loading-container {
    background-color: rgba(0,0,0,0);
}
