@font-face {
    font-family: 'mitframeicon';
    src: url('../mitframe/mitframe.woff2?') format('woff2'),
    url('../mitframe/mitframe.woff') format('woff'),
    url('../mitframe/mitframe.ttf') format('truetype');
}

html,
body {
    width: 100%;
    height: 100%;
    min-height: 600px;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    background: #c8e2fb;
    background-image: linear-gradient(45deg, #c8e2fb, #fbecd6);
    font-family: sans-serif;
}

body.st-d {
    background: #0a0a0a;
}

*, *::before, *::after {
    box-sizing: inherit
}

.darkmode {
    align-self: flex-end;
    width: 45px;
    height: 45px;
    border-radius: 0 0 0 45px;
    overflow: hidden;
    cursor: pointer;
}

.st-a .darkmode {
    background: rgba(255, 255, 255, 0.6);
}

.st-d.st-a .darkmode {
    background: #131313;
}

.darkmode > div {
    position: relative;
    height: 100%;
}

.darkmode .dk-light,
.darkmode .dk-dark {
    position: absolute;
    top: 0;
    right: 0;
    transform-origin: 100% 0;
    transition: transform 0.4s ease;
}

.st-l .dk-dark {
    transform: rotate(-90deg);
}

.st-d .dk-light {
    transform: rotate(90deg);
}

.st-a .dk-light {
    transform: rotate(35deg);
}

.st-a .dk-dark {
    transform: rotate(-35deg);
}

.darkmode svg {
    fill: #838c94;
    margin: 6px 6px 0 0;
}

.darkmode ul {
    display: block;
    position: absolute;
    right: 14px;
    background: #fff;
    padding: 8px 0;
    border-radius: 5px;
    box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.darkmode ul li {
    display: block;
    padding: 4px 10px;
    white-space: nowrap;
}

.darkmode ul li:hover {
    background: #aaa;
}

.darkmode ul li.current {
    background: #155BD5;
    color: #fff;
}

.container {
    display: flex;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s;
}

.container:hover {
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.2);
}

.intro {
    background: url(./loginbg.svg) no-repeat left bottom;
    color: #fff;
    width: 350px;
    padding: 30px;
    position: relative;
}
.intro::after {
    content: '';
    background: linear-gradient(90deg, #393f47, #1d1f24);
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}
.st-d .intro {
    background-color: #000;
    color: #999;
}

.intro h3 {
    font-size: 26px;
    padding-bottom: 15px;
    margin-bottom: 15px;
    background-image: linear-gradient(to bottom, #e8a833, #ebc874, #ae7222);
    -webkit-background-clip: text;
    color: transparent;
}

.intro h3 span {
    font-weight: 700;
    margin-right: 10px;
}

.intro p {
    font-size: 14px;
    opacity: 0.6;
    background-image: linear-gradient(to bottom, #e8a833, #ebc874, #ae7222);
    -webkit-background-clip: text;
    color: transparent;
}

.intro p a {
    color: #fff;
}

.intro svg {
    display: flex;
    position: absolute;
    bottom: 1.6rem;
}

.st-d .intro img {
    filter: none;
    opacity: 0.6;
}

.loginbox {
    display: flex;
    flex-direction: column;
    width: 350px;
    padding: 30px;
    background: #fff;
}

.st-d .loginbox {
    background: #181818;
}

.loginbox img {
    width: 200px;
    margin: 0 auto 24px auto;
}

.loginbox h1 {
    font-size: 18px;
    margin-bottom: 18px;
    text-align: center;
}

.st-d .loginbox h1 {
    color: #999;
}

.loginbox p {
    display: flex;
    align-items: center;
    color: #999;
    font-size: 14px;
    line-height: 16px;
    cursor: pointer;
    transform: translate(0, -7px);
}

.loginbox p span {
    display: inline-flex;
    width: 14px;
    height: 14px;
    border: 1px solid;
    border-radius: 2px;
    margin-right: 4px;
}

.loginbox .loginqa {
    display: none;
}

.qrcodeswitch {
    width: 100%;
    display: inherit;
    justify-content: flex-end;
    position: relative;
    top: -20px;
    line-height: 0px;
    right: -30px;
    margin-top: -10px;
    height: 0px;
}

.qrcodeswitch a {
    width: 0;
    height: 0;
    border-top: 50px solid #1d1f24;
    border-left: 50px solid transparent;
    text-decoration: none;
    border-top-right-radius: 10px;
}

.qrcodeswitch a:before {
    position: relative;
    top: -35px;
    left: -25px;
    color: #fff;
    font-size: 20px;
    filter: invert(1);
}

.qrcodeswitch a.qrcode:before {
    font-style: normal;
    font-family: mitframeicon;
    content: "\e619";
}

.qrcodeswitch a.pwd:before {
    font-style: normal;
    font-family: mitframeicon;
    content: "\e617";
}

#qrcodeimg img {
    width: 250px !important;
    height: 250px !important;
    margin: 0 !important;
}

#qrcodebox {
    text-align: center;
}

footer {
    padding: 6px 0;
    font-size: 12px;
    color: #333;
    user-select: none;
}

footer em {
    font-style: normal;
}

.st-d footer {
    opacity: 0.6;
}

footer a {
    color: #333;
}

input,
select,
button,
a.btn {
    height: 38px;
    padding: 7px 11px;
    margin-bottom: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.st-d input,
.st-d select {
    background: #222;
    border-color: #333;
    color: #777;
}

input:focus,
select:focus,
button:focus,
a.btn:focus {
    outline: none;
    border-color: #155BD5;
    box-shadow: 0 0 3px 2px rgba(43, 122, 205, 0.4);
}

.st-d input:focus,
.st-d select:focus,
.st-d button:focus,
.st-d a.btn:focus {
    border-color: #666;
    box-shadow: none;
}

button,
a.btn {
    margin-bottom: 0;
    color: #fff;
    cursor: pointer;
    background: #1d1f24;
    background-image: linear-gradient(90deg, #393f47, #1d1f24);
    color: #f7ce9e;
    border-color: #1d1f24;
}

.st-d button,
.st-d a.btn {
    border-color: #000;
    background: #000;
    color: #777;
}

a.btn {
    text-align: center;
    text-decoration: none;
    margin-top: 26px;
    margin-bottom: 26px;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .loginbox img.logo {
        display: none;
    }
}

@media (max-width: 576px) {
    body {
        background: #fff;
    }

    body.st-d {
        background: #181818;
    }

    .darkmode {
        position: absolute;
    }

    .st-a .darkmode {
        background: rgba(255, 255, 255, 0.1);
    }

    .darkmode svg {
        fill: rgba(255, 255, 255, 0.2);
    }

    .container {
        border-radius: 0;
        box-shadow: none;
    }

    .container:hover {
        box-shadow: none;
    }

    .intro img {
        display: none;
    }

    .intro,
    .loginbox {
        width: 100%;
    }
    .intro svg{position: inherit;
    bottom: -10px;}
    footer {
        color: #999;
        text-align: center;
        display: flex;
        flex-direction: row;
        margin-bottom: 10px;
    }

    footer a {
        color: #999;
    }
}
