body:before {
    content: "";
    background-color: rgba(0, 0, 0, .2);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.login-wrapper {
    max-width: 420px;
    padding: 20px;
    margin: 0 auto;
    position: relative;
    box-sizing: border-box;
    z-index: 2;
}

.login-wrapper > .layui-form {
    padding: 25px 30px;
    background-color: #fff;
    box-shadow: 0 3px 6px -1px rgba(0, 0, 0, 0.19);
    box-sizing: border-box;
    border-radius: 4px;
}

.login-wrapper > .layui-form > h2 {
    color: #333;
    font-size: 18px;
    text-align: center;
    margin-bottom: 25px;
}

.login-wrapper > .layui-form > .layui-form-item {
    margin-bottom: 25px;
    position: relative;
}

.login-wrapper > .layui-form > .layui-form-item:last-child {
    margin-bottom: 0;
}

.login-wrapper > .layui-form > .layui-form-item > .layui-input {
    height: 46px;
    line-height: 1;
    border-radius: 2px !important;
}

.login-wrapper .layui-input-icon-group > .layui-input {
    padding-left: 46px;
}

.login-wrapper .layui-input-icon-group > .layui-icon {
    width: 46px;
    height: 46px;
    line-height: 46px;
    font-size: 20px;
    color: #909399;
    position: absolute;
    left: 0;
    top: 0;
    text-align: center;
}

.login-wrapper > .layui-form > .layui-form-item.login-captcha-group {
    padding-right: 135px;
}

.login-wrapper > .layui-form > .layui-form-item.login-captcha-group > .login-captcha {
    height: 46px;
    width: 120px;
    cursor: pointer;
    box-sizing: border-box;
    border: 1px solid #e6e6e6;
    border-radius: 2px !important;
    position: absolute;
    right: 0;
    top: 0;
}

.login-wrapper > .layui-form > .layui-form-item > .layui-form-checkbox {
    margin: 0 !important;
    padding-left: 25px;
}

.login-wrapper > .layui-form > .layui-form-item > .layui-form-checkbox > .layui-icon {
    width: 15px !important;
    height: 15px !important;
}

.login-wrapper > .layui-form .layui-btn-fluid {
    height: 48px;
    line-height: 48px;
    font-size: 16px;
    border-radius: 2px !important;
}

.login-wrapper > .layui-form > .layui-form-item.login-oauth-group > a > .layui-icon {
    font-size: 26px;
}

.login-copyright {
    color: #eee;
    padding-bottom: 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

@media screen and (min-height: 550px) {
    .login-wrapper {
        margin: -250px auto 0;
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        width: 100%;
    }

    .login-copyright {
        position: absolute;
        bottom: 0;
        right: 0;
        left: 0;
    }
}

.layui-btn {
    background-color: #5FB878;
    border-color: #5FB878;
}

.layui-link {
    color: #5FB878 !important;
}
.wxewm {
   font-size: 16px;
   text-align: center;
   font-weight: 600;
}
a {
    color: #eee;
}
.user-tr{ background: #eee; padding: 3px 6px 6px 16px; margin-top: 10px; border-radius: 10px;}
.svg-alert{ text-align: center; padding: 20px; background-color: #eee; border-radius: 6px;}
.alert {
	border-radius: 5px;
	padding: 15px;
	border: solid 0.8px #ddd;
	background-color: #f5f5f5;
    text-align: center;
}
.alert-red{border-radius: 5px;
	padding: 15px;
	border: solid 0.8px #ddd;text-align: center; color: #e33; background-color: #fee;border-color: #fee;}
.alert-red:hover {
	color: #e33;
	border-color: #fdc;
	background-color: #fdc;
}
.alert-green{border-radius: 5px;
	padding: 15px;
	border: solid 0.8px #ddd;text-align: center; color: #2c7; background-color: #efd;border-color: #efd;}
.alert-green:hover {
	color: #2c7;
	border-color: #cfa;
	background-color: #cfa;
}
.img-auto{ max-width: 100%;}

/* Keep the configured photo sharp; dark gradients frame the centered login. */
body:has(> .login-wrapper > form.layui-form)::before {
    inset: 0;
    background-color: #192a30;
    background-image: inherit;
    background-position: center;
    background-repeat: inherit;
    background-size: inherit;
    filter: saturate(.86);
    pointer-events: none;
}

body:has(> .login-wrapper > form.layui-form)::after {
    content: "";
    position: fixed;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(15, 29, 34, .44), rgba(15, 29, 34, .06) 40%, rgba(15, 29, 34, .42)),
        radial-gradient(ellipse at 50% 45%, rgba(12, 25, 30, .3) 15%, rgba(12, 25, 30, .2) 60%, rgba(12, 25, 30, .46));
    pointer-events: none;
}

/* Reserve the QR area while its refresh prompt replaces an expired image. */
.login-wrapper .login-qrcode {
    aspect-ratio: 1;
}

.login-wrapper .login-qrcode > img {
    display: block;
    width: 100%;
}

.login-wrapper .login-qrcode-expired {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f3f6f5;
    border-radius: 6px;
}

/* Login-only polish: keep the existing layout and control dimensions. */
.login-wrapper > form.layui-form {
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(18, 39, 47, .14),
        0 3px 10px rgba(18, 39, 47, .07),
        0 0 0 1px rgba(18, 39, 47, .04);
}

.login-wrapper > form.layui-form > .layui-form-item > .layui-input,
.login-wrapper > form.layui-form > .layui-form-item.login-captcha-group > .login-captcha,
.login-wrapper > form.layui-form > .layui-form-item > img:not(.login-captcha),
.login-wrapper > form.layui-form .layui-btn-fluid,
.login-wrapper .login-qrcode-expired .layui-btn {
    border-radius: 6px !important;
}

.login-wrapper > form.layui-form :is(.alert, .alert-red, .alert-green, .svg-alert, .user-tr) {
    border-radius: 6px;
}
