* {
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    background-image: url('../resource/images/login-bg.png'); /* 替换为你的图片路径 */
    background-size: 100% 100%; /* 可选：使背景图片覆盖整个页面 */
    background-repeat: no-repeat; /* 可选：防止背景图片重复 */
    background-position: center;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}

.svg-frame {
    position: absolute;
    width: 300px;
    height: 300px;
    transform-style: preserve-3d;
    display: flex;
    justify-content: center;
    align-items: center;
    right: 2%;
    bottom: 2%;

}

.svg-frame svg {
    position: absolute;
    transition: .5s;
    z-index: calc(1 - (0.2 * var(--j)));
    transform-origin: center;
    width: 344px;
    height: 344px;
    fill: none;
}

.svg-frame:hover svg {
    transform: rotate(-80deg) skew(30deg) translateX(calc(45px * var(--i))) translateY(calc(-35px * var(--i)));
}

.svg-frame svg #center {
    transition: .5s;
    transform-origin: center;
}


.svg-frame:hover svg #center {
    transform: rotate(-30deg) translateX(45px) translateY(-3px);
}

#out2 {
    animation: rotate16 7s ease-in-out infinite alternate;
    transform-origin: center;
}

#out3 {
    animation: rotate16 3s ease-in-out infinite alternate;
    transform-origin: center;
    stroke: #ff0;
}

#inner3,
#inner1 {
    animation: rotate16 4s ease-in-out infinite alternate;
    transform-origin: center;
}

#center1 {
    fill: #ff0;
    animation: rotate16 2s ease-in-out infinite alternate;
    transform-origin: center;
}

@keyframes rotate16 {
    to {
        transform: rotate(360deg);
    }
}

/* From Uiverse.io by TemRevil */
.loading {
    position: absolute;
    display: flex;
    left: 2%;
    bottom: 5%;

}

.loading-wide {
    width: 150px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.color {
    background-color: #3395ff;
}

.l1 {
    width: 15px;
    height: 65px;
    position: absolute;
    animation: move-h 1.2s infinite cubic-bezier(0.65, 0.05, 0.36, 1);
}

.l2 {
    width: 15px;
    height: 60px;
    position: absolute;
    transform: rotate(90deg);
    animation: move-v 1.2s infinite cubic-bezier(0.65, 0.05, 0.36, 1);
}

@keyframes move-h {
    0% {
        top: 0;
        opacity: 0;
    }
    25% {
        opacity: 1;
    }
    50% {
        top: 30%;
        opacity: 1;
    }
    75% {
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

@keyframes move-v {
    0% {
        left: 0;
        opacity: 0;
    }
    25% {
        opacity: 1;
    }
    50% {
        left: 45%;
        opacity: 1;
    }
    75% {
        opacity: 1;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

.animation-effect-light {
    animation: effect 0.2s 0.1s infinite linear;
}

.animation-effect-light-d {
    animation: effect 0.3s 0.2s infinite linear;
}

.animation-effect-rot {
    animation: rot 0.8s infinite cubic-bezier(0.65, 0.05, 0.36, 1);
}

.animation-effect-scale {
    animation: scale 0.8s infinite cubic-bezier(0.65, 0.05, 0.36, 1);
}

@keyframes effect {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@keyframes rot {
    0% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(180deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes scale {
    0% {
        scale: 1;
    }
    50% {
        scale: 1.9;
    }
    100% {
        scale: 1;
    }
}

.e1 {
    width: 1px;
    height: 40px;
    opacity: 0.3;
    position: absolute;
    top: 0;
    left: 8%;
}

.e2 {
    width: 60px;
    height: 1px;
    opacity: 0.8;
    position: absolute;
    top: 8%;
    left: 0;
}

.e3 {
    position: absolute;
    top: 10%;
    left: 12%;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 900;
    font-size: 18px;
    color: #3395ff;
}

.e4 {
    width: 1px;
    height: 40px;
    opacity: 0.3;
    position: absolute;
    top: 90%;
    right: 10%;
}

.e5 {
    width: 40px;
    height: 1px;
    opacity: 0.3;
    position: absolute;
    top: 100%;
    right: 0;
}

.e6 {
    position: absolute;
    top: 100%;
    right: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 32px;
    color: #3395ff;
}

.e7 {
    width: 1px;
    height: 20px;
    position: absolute;
    bottom: 0;
    left: 0;
    transform: rotate(45deg);
    animation: height 1s infinite cubic-bezier(0.65, 0.05, 0.36, 1);
}

@keyframes height {
    0% {
        bottom: 0%;
        left: 0%;
        height: 0px;
    }
    25% {
        height: 90px;
    }
    50% {
        bottom: 100%;
        left: 100%;
        height: 90px;
    }
    75% {
        height: 0px;
    }
    100% {
        bottom: 0%;
        left: 0%;
        height: 0px;
    }
}

.e8 {
    width: 20px;
    height: 1px;
    position: absolute;
    bottom: 50%;
    left: 0;
    animation: width 1.5s infinite cubic-bezier(0.65, 0.05, 0.36, 1);
}

@keyframes width {
    0% {
        left: 0%;
        width: 0px;
    }
    50% {
        left: 100%;
        width: 90px;
    }
    100% {
        left: 0%;
        width: 0px;
    }
}

ul li {
    position: absolute;
    border: 1px solid #3395FF;
    width: 30px;
    height: 30px;
    list-style: none;

}

.square li {
    top: 40vh;
    left: 85vw;
    animation: square 10s linear infinite;
}

.square li:nth-child(2) {

    top: 70vh;
    left: 20vw;
    animation-delay: 200ms;
}

.square li:nth-child(3) {
    top: 90vh;
    left: 65vw;
    animation-delay: 400ms;
}

.square li:nth-child(4) {
    top: 10vh;
    left: 80vw;
    animation-delay: 600ms;
}

.square li:nth-child(5) {
    top: 10vh;
    left: 10vw;
    animation-delay: 800ms;
}

.circle li {
    top: 0;
    left: 15vw;
    animation: circle 10s linear infinite;
}

.circle li:nth-child(2) {
    left: 35vw;
    animation-delay: -1s;
}

.circle li:nth-child(3) {
    left: 55vw;
    animation-delay: -6s;
}

.circle li:nth-child(4) {
    left: 75vw;
    animation-delay: -3s;
}

.circle li:nth-child(5) {
    left: 95vw;
    animation-delay: -7s;
}

@keyframes square {
    0% {
        transform: scale(0) rotateY(0deg);
        opacity: 1;
    }
    100% {
        transform: scale(5) rotateY(1000deg);
        opacity: 0;
    }
}

@keyframes circle {
    0% {
        transform: scale(0) rotateY(0deg);
        opacity: 1;
        top: 0;
        border-radius: 0;
    }
    100% {
        transform: scale(5) rotateY(1000deg);
        opacity: 0;
        top: 90vh;
        border-radius: 50%;
    }
}

.title_container {
    position: absolute;
    top: 0vh;
    width: 100%;
    background-image: url('../resource/images/titleBG.png');
    background-size: cover;
    background-position: bottom;
    text-align: center;
    padding: 1%;
}

#title_text {
    position: relative;
    top: -0.4vh;
    justify-content: center;
    align-items: center;
    margin: 0;
    color: #fff;
    font-size: 3vh;
    font-weight: bold;
}

.login-container {
    position: relative;
    background-image: url('../resource/images/load_form.png');
    background-size: 100% 100%;
    background-position: center;
    width: 32%;
    text-align: center;
    box-sizing: border-box;
    padding-top: 3%;
    padding-bottom: 2.5%;
}

.login-prompt {
    font-size: 3vh;
    font-weight: bold;
    color: #fff;
    margin-bottom: 5%;

}

.input-field {
    display: flex;
    position: relative;
    left: 0%;
    width: 60%;
    height: 4.5vh;
    padding: 2%;
    padding-left: 10%;
    margin-bottom: 3%;
    background-color: transparent;
    border: 0.2vh solid #2a858a; /* 边框颜色和宽度 */
    border-radius: 1vh; /* 圆角边框，可选 */
    box-sizing: border-box; /* 确保内边距和边框不会增加输入框宽度 */
    outline: none; /* 去除聚焦时的默认边框 */
    color: #fff; /* 输入框提示文字颜色 */
    font-size: 2.5vh;
    display: inline-block;
}


.login-container img {
    position: absolute;
    transform: translateY(-50%);
    width: 6%; /* 设置图片宽度 */
}

#input_pw::placeholder {
    left: 0.5%;
}

#img_account {
    top: 37%;
    left: 22%;
}

#img_pw {
    top: 52.5%;
    left: 22%;
    width: 5.5%;
}

.login-container input::placeholder {
    position: relative;
    color: #01d9e1d3; /* 输入框提示文字颜色 */
    font-size: 2vh;
}

.remember-me {
    display: flex; /* 使用flex布局 */
    position: relative; /* 相对定位 */
    padding-left: 23%;
    align-items: center; /* 垂直居中 */
    margin-bottom: 1vh; /* 与登录按钮之间的间距 */
}

.remember-me input[type="checkbox"] {
    display: none; /* 隐藏原生的checkbox */
}

.remember-me label {
    position: relative;
    padding-left: 2.5vh; /* 为checkbox图标留出空间 */
    color: #02C4D0;
    font-size: 1.6vh;
    user-select: none; /* 禁止文本选择 */
}


.remember-me label::before,
.remember-me label::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.remember-me label::before {
    width: 2vh;
    height: 2vh;
    border-radius: 30%;
    background-color: transparent; /* 未选中时中心透明 */
    border: 1px solid #2a858a; /* 可选：添加边框 */
}

.remember-me input[type="checkbox"]:checked + label::before {
    background-color: #00ffffec;
    border-color: #00ffffec;
}

.remember-me label::after {
    content: "";
    width: 0.7vh;
    height: 1.6vh;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -50%) rotate(45deg);
    opacity: 0;
    left: 1vh; /* 调整对号位置 */
    top: 40%;
}

.remember-me input[type="checkbox"]:checked + label::after {
    opacity: 1; /* 选中时显示对号 */
}

.login-button {
    width: 30%; /* 宽度占满容器 */
    padding: 1.5%; /* 内边距 */
    background-color: #2A82E4; /* 按钮背景颜色 */
    color: white; /* 按钮文字颜色 */
    border: none; /* 去除边框 */
    border-radius: 1vh; /* 圆角边框 */
    cursor: pointer; /* 鼠标悬停时显示为手型 */
    font-size: 2vh; /* 字体大小 */
    margin: 2%;
}

.register-container {
    display: none;
    position: absolute;
    top: 0vh;
    width: 100%;
    height: 100vh;
    background-color: rgb(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.register-container img {
    position: absolute;
    width: 1.7vw;
    top: 26%;
    right: 38%;
}

.registerPanel {
    display: flex; /* 使用 flexbox 布局 */
    flex-direction: column; /* 垂直排列内容 */
    align-items: center; /* 横向居中对齐内容 */
    justify-content: center; /* 纵向居中对齐内容 */
    width: 25%; /* 设置容器宽度 */
    height: 50%; /* 设置容器高度 */
    background-color: #fff; /* 背景色 */
    border-radius: 2vh; /* 圆角 */
    font-size: 3vh; /* 字体大小 */
    font-weight: bold; /* 字体加粗 */
    color: #2A82E4; /* 字体颜色 */
    text-align: center; /* 文字居中对齐 */
}

.register-input-field {
    width: 20vw; /* 设置输入框宽度为容器的80% */
    margin: 1vh 0; /* 上下间距 */
    padding: 1vh; /* 内边距 */
    border: 0.1vh solid #ccc; /* 边框样式 */
    border-radius: 0.5vh; /* 边框圆角 */
    font-size: 2vh; /* 输入框字体大小 */
    color: #000; /* 输入框字体颜色 */
}

#select_role {
    width: 21.2vw;
}

.register-button {
    width: 80%; /* 设置按钮宽度与输入框一致 */
    margin-top: 1vh; /* 上间距 */
    padding: 1vh; /* 内边距 */
    background-color: #2A82E4; /* 按钮背景色 */
    color: #fff; /* 按钮文字颜色 */
    border: none; /* 无边框 */
    border-radius: 0.5vh; /* 边框圆角 */
    font-size: 2vh; /* 按钮字体大小 */
    cursor: pointer; /* 鼠标滑过时显示为手型 */
}


/* BS新增样式*/
.form-span {
    font-size: 2.2vh;
    color: #fff;
    width: 23%;
    margin-bottom: 3%;
    display: inline-block;
}

.remember-me a {
    position: relative;
    /*padding-left: 20vh;  跟记住密码 留出空间 */
    right: 27%;
    color: #02C4D0;
    font-size: 1.6vh;
    text-align: right;
    border: none;
    margin-left: auto;
    /* user-select: none; /* 禁止文本选择 */
    text-decoration: none; /* 移除下划线 */
    font-weight: bold;
}

.remember-me a:hover {
    color: #fff; /* 鼠标悬停时的颜色 */
    text-decoration: underline; /* 鼠标悬停时显示下划线 */
}

/* 为所有消息提供一个通用的样式 */
.text-center {
    list-style-type: none; /* 移除列表项的默认样式 */
    padding: 0; /* 移除内边距 */
    margin: 20px 0; /* 添加外边距 */
}

.text-center li {
    padding: 10px; /* 添加内边距 */
    margin-bottom: 10px; /* 添加列表项之间的外边距 */
    border-radius: 5px; /* 添加圆角 */
    color: #ffffff; /* 设置文字颜色 */
}

/* 为成功消息定义样式 */
.text-center .success {
    background-color: #4caf50; /* 设置背景颜色 */
}

/* 为错误消息定义样式 */
.text-center .error {
    background-color: #f44336; /* 设置背景颜色 */
}

/* 为警告消息定义样式 */
.text-center .warning {
    background-color: #ff9800; /* 设置背景颜色 */
}

/* 为信息消息定义样式 */
.text-center .info {
    background-color: #2196f3; /* 设置背景颜色 */
}

/* 为调试消息定义样式（如果需要使用的话） */
.messages .debug {
    background-color: #9e9e9e; /* 设置背景颜色 */
}

.modal-header {
    padding: 7px;
    border-bottom: 1px solid #356195;
}

.bg-warning {
    background-color: #57c0cb;
}

.modal-footer {
    padding: 7px;
    border-top: 1px solid #356195;
}

.modal-content {
    background-color: #1e3959;
    color: #fff;
}

.btn-default {
    color: #fff;
    background-color: #4b82e4;
    border-color: #4b82e4
}

.input-field-no-img {
    display: flex;
    position: relative;
    left: 0%;
    width: 50%;
    height: 4.5vh;
    padding: 2%;
    margin-bottom: 3%;
    background-color: transparent;
    border: 0.2vh solid #2a858a; /* 边框颜色和宽度 */
    border-radius: 1vh; /* 圆角边框，可选 */
    box-sizing: border-box; /* 确保内边距和边框不会增加输入框宽度 */
    outline: none; /* 去除聚焦时的默认边框 */
    color: #fff; /* 输入框提示文字颜色 */
    font-size: 2.5vh;
    display: inline-block;
}

.input-field-captcha {
    display: flex;
    position: relative;
    left: 0%;
    width: 30%;
    height: 4.5vh;
    padding: 2%;
    margin-bottom: 3%;
    background-color: transparent;
    border: 0.2vh solid #2a858a; /* 边框颜色和宽度 */
    border-radius: 1vh; /* 圆角边框，可选 */
    box-sizing: border-box; /* 确保内边距和边框不会增加输入框宽度 */
    outline: none; /* 去除聚焦时的默认边框 */
    color: #fff; /* 输入框提示文字颜色 */
    font-size: 2.5vh;
    display: inline-block;
}

/* 语言选择框样式 */
.language-form {
    position: absolute;
    top: 2px;
    right: 20px;
    border: 0;
}

.language-select {
    border: 0.1vh solid #00CAD860;
    border-radius: 0.5vh;
    background-color: #0E3756;
    color: #fff;
    font-size: 1.6vh;
    padding: 0.3vh;
    box-sizing: border-box;
    text-align: center;
}

.language-select:focus {
    outline: none;
    background-color: #102E49;
}


/* 眼睛图标样式 */
.toggle-password {
    position: absolute;
    top: 50%;
    color: #2A82E4;
    padding-left: 1%;
    z-index: 10;
}
