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

body.signin {
    align-items: center;
    background-color: #02050b;
    background-image:
        radial-gradient(circle at 50% 45%, rgba(4, 14, 31, 0.1), rgba(1, 4, 10, 0.58) 72%),
        linear-gradient(135deg, rgba(0, 0, 0, 0.18), rgba(0, 10, 24, 0.3)),
        url(../img/login-background-dark.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: #e7f5ff;
    display: flex;
    font-family: "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    justify-content: center;
    margin: 0;
    min-height: 100%;
    overflow-x: hidden;
    padding: 24px 0;
    position: relative;
}

body.signin::before {
    background:
        linear-gradient(90deg, rgba(0, 191, 255, 0.035) 1px, transparent 1px),
        linear-gradient(rgba(0, 191, 255, 0.025) 1px, transparent 1px);
    background-size: 64px 64px;
    content: "";
    inset: 0;
    pointer-events: none;
    position: fixed;
}

.signinpanel {
    color: #e7f5ff;
    margin: 0;
    padding: 24px;
    position: relative;
    width: 430px;
    z-index: 1;
}

.signinpanel > .row {
    margin: 0;
}

.signinpanel .login-column {
    float: none;
    padding: 0;
    width: 100%;
}

.signinpanel form {
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    background: linear-gradient(145deg, rgba(6, 15, 31, 0.88), rgba(2, 8, 19, 0.78));
    border: 1px solid rgba(63, 196, 255, 0.25);
    border-radius: 18px;
    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.62),
        0 0 46px rgba(0, 153, 255, 0.11),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    overflow: hidden;
    padding: 40px;
    position: relative;
}

.signinpanel form::before {
    background: linear-gradient(90deg, transparent, #29d7ff 30%, #735cff 70%, transparent);
    content: "";
    height: 2px;
    left: 12%;
    opacity: 0.9;
    position: absolute;
    right: 12%;
    top: 0;
}

.login-heading {
    align-items: center;
    display: flex;
    flex-direction: column;
    margin-bottom: 28px;
    text-align: center;
}

.login-heading h3 {
    color: #f4fbff;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 4px;
    margin: 14px 0 0;
}

.login-icon {
    align-items: center;
    background: linear-gradient(145deg, rgba(31, 218, 255, 0.22), rgba(105, 80, 255, 0.2));
    border: 1px solid rgba(79, 212, 255, 0.38);
    border-radius: 14px;
    box-shadow: 0 0 28px rgba(0, 187, 255, 0.18);
    color: #67e7ff;
    display: flex;
    font-size: 22px;
    height: 48px;
    justify-content: center;
    width: 48px;
}

.signinpanel .form-control,
.signinpanel .uname,
.signinpanel .pword,
.signinpanel .code {
    background-color: rgba(255, 255, 255, 0.055) !important;
    background-image: none !important;
    border: 1px solid rgba(130, 207, 255, 0.2);
    border-radius: 9px !important;
    color: #eaf8ff;
    font-size: 14px;
    height: 48px !important;
    margin-top: 16px;
    padding: 0 16px !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.signinpanel .form-control:focus {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(54, 211, 255, 0.72) !important;
    box-shadow: 0 0 0 3px rgba(31, 197, 255, 0.1) !important;
}

.signinpanel .form-control::placeholder {
    color: rgba(207, 230, 245, 0.56);
}

.captcha-row {
    margin-top: 16px;
}

.signinpanel .captcha-row .code {
    margin: 0;
}

.signinpanel .imgcode {
    background: #fff;
    border: 1px solid rgba(130, 207, 255, 0.2);
    border-radius: 9px;
    height: 48px;
    object-fit: cover;
    width: 100% !important;
}

.signinpanel .checkbox-custom {
    color: rgba(222, 241, 252, 0.74);
    margin: 18px 0 2px;
}

.signinpanel .checkbox-custom label::before {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(130, 207, 255, 0.35);
}

.signinpanel .checkbox-custom input[type="checkbox"]:checked + label::after {
    color: #55ddff;
}

.signinpanel .btn-success {
    background: linear-gradient(110deg, #00bfe8, #3478f6 52%, #7048e8);
    border: 0;
    border-radius: 9px;
    box-shadow: 0 12px 28px rgba(20, 120, 255, 0.26);
    font-size: 15px;
    height: 46px;
    letter-spacing: 4px;
    margin-top: 18px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.signinpanel .btn-success:hover,
.signinpanel .btn-success:focus {
    box-shadow: 0 16px 34px rgba(21, 154, 255, 0.34);
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.signinpanel label.error {
    color: #ff6f91;
    margin-top: 7px;
}

body .layer-ext-moon-msg {
    background-color: rgba(2, 10, 24, 0.9);
    border: 1px solid rgba(64, 203, 255, 0.2);
    color: #eefbff;
}

@media screen and (max-width: 560px) {
    body.signin {
        background-position: 42% center;
        padding: 16px 0;
    }

    .signinpanel {
        padding: 14px;
        width: 100% !important;
    }

    .signinpanel form {
        border-radius: 15px;
        padding: 32px 24px;
    }
}
