body{
    background-image: url("../scJpg/Jinx02.jpg"); /* 确保在这里填写图片的路径 */
    background-attachment: fixed; /* 背景图像固定，不随页面滚动 */
    background-size: cover; /* 修改为cover以确保背景图像覆盖整个页面，或根据需要设置为其他值如contain */
    background-repeat: no-repeat; /* 修正属性名称，确保背景图像不重复 */
    background-position: center top; /* 背景图像的位置，这里设置为顶部居中 */
    font: 14px/1.5 Tahoma, Helvetica, Arial, '宋体', sans-serif; /* 设置字体及其大小、行高 */
    margin: 0; /* 通常需要设置margin为0来确保body占满整个视窗 */
    padding: 0; /* 设置padding为0，避免不必要的内边距 */
    height: 100vh; /* 使用vh单位确保body高度为视窗高度的100% */
    width: 100%; /* 设置body宽度为100% */
    image-rendering: pixelated;
}
/* 重置默认样式 */
* {
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}

input,
button {
    background: transparent;
    border: 0;
    outline: none;
}

/* 容器样式 */
.auth-container {
    width: 100%; /* 容器宽度初始设置为100%，便于响应式设计 */
    max-width: 400px; /* 在桌面端，容器的最大宽度被限制为400px，以保持内容的可读性 */
    height: auto; /* 容器的高度会根据其内容自动调整 */
    /*background-color: #21222c; !* 容器的背景颜色设置为深灰色 *!*/
    background-color: rgba(0, 0, 0, 0.4);
    position: fixed; /* 固定定位，不随页面滚动 */
    top: 50%; /* 垂直居中 */
    left: 50%; /* 水平居中 */
    transform: translate(-50%, -50%); /* 使用transform实现完美居中 */
    border-radius: 10px; /* 容器的边角被设置为10px的圆角 */
    box-shadow: 0 15px 25px 0 rgba(0, 0, 0, .6); /* 容器周围有一个深色的阴影，增加了立体感 */
    padding: 40px; /* 容器内的内容与边框之间有40px的内边距 */
    box-sizing: border-box; /* 确保容器的宽度和高度包括了内边距和边框，防止内容溢出 */
    z-index: 1000; /* 确保登录窗口在其他内容之上 */
}

/* 容器样式 */
.auth-register {
    width: 100%; /* 容器宽度初始设置为100%，便于响应式设计 */
    max-width: 400px; /* 在桌面端，容器的最大宽度被限制为400px，以保持内容的可读性 */
    height: auto; /* 容器的高度会根据其内容自动调整 */
    background-color: rgba(0, 0, 0, 0.4);
    position: fixed; /* 固定定位，不随页面滚动 */
    top: 50%; /* 垂直居中 */
    left: 50%; /* 水平居中 */
    transform: translate(-50%, -50%); /* 使用transform实现完美居中 */
    border-radius: 10px; /* 容器的边角被设置为10px的圆角 */
    box-shadow: 0 15px 25px 0 rgba(0, 0, 0, .6); /* 容器周围有一个深色的阴影，增加了立体感 */
    padding: 40px; /* 容器内的内容与边框之间有40px的内边距 */
    box-sizing: border-box; /* 确保容器的宽度和高度包括了内边距和边框，防止内容溢出 */
    z-index: 1000; /* 确保注册窗口在其他内容之上 */
}

.auth-update-form {
    width: 100%; /* 容器宽度初始设置为100%，便于响应式设计 */
    max-width: 400px; /* 在桌面端，容器的最大宽度被限制为400px，以保持内容的可读性 */
    height: auto; /* 容器的高度会根据其内容自动调整 */
    background-color: rgba(0, 0, 0, 0.4);
    position: relative;
    top: 150px;
    left: 750px;
    /*margin: 250px auto; !* 容器在页面上垂直居中（100px的顶部外边距），并且水平居中（auto） *!*/
    border-radius: 10px; /* 容器的边角被设置为10px的圆角 */
    box-shadow: 0 15px 25px 0 rgba(0, 0, 0, .6); /* 容器周围有一个深色的阴影，增加了立体感 */
    padding: 40px; /* 容器内的内容与边框之间有40px的内边距 */
    box-sizing: border-box; /* 确保容器的宽度和高度包括了内边距和边框，防止内容溢出 */
    /*margin-top: 150px;*/
}
.register {
    margin-bottom: 30px; /* 增加与下方输入框的距离 */
}
.register_text{
    color: #FFFF00; /* 设置字体颜色为亮黄色 */
}
.custom-file-button,.submit-button{

    display: inline-block; /* 使元素在同一行显示 */
    /*margin-left: 5px; !* 可选：为输入控件添加一些右侧外边距 *!*/
}
.input-group-icon-file {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0; /* 隐藏原始的文件输入控件 */
    cursor: pointer; /* 确保仍然可以触发点击事件 */
}
h2 {
    text-align: center;
    color: #bd93f9;
    margin-bottom: 30px;
    font-family: 'Courier New', Courier, monospace;
}

/* 输入组样式 */
.input-group ,.input-group-icon{
    margin-bottom: 40px;
    position: relative;
    display: flex;
}
.input-group .inline-label {
    margin-right: 50px; /* 在标签和下拉框之间添加一些间距 */
}
.submit-button{
    display: none; /* 隐藏提交按钮 */
}

.input-group input,.custom-file-button,.input-group-icon-file {
    width: 100%;
    color: #fff;
    padding: 10px 0; /* 上下内边距调整为10px，左右为0 */
    box-sizing: border-box;
    border-bottom: 1px solid #fff; /* 下边框显示，用于聚焦效果 */
}

/* 防止浏览器自动填充时出现背景色，保持完全透明 */
.input-group input:-webkit-autofill,
.input-group input:-webkit-autofill:hover,
.input-group input:-webkit-autofill:focus,
.input-group input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px transparent inset !important;
    -webkit-text-fill-color: #fff !important;
    background-color: transparent !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* 移除输入框获得焦点时的轮廓 */
.input-group input:focus {
    outline: none;
    border-bottom: 1px solid #bd93f9; /* 聚焦时改变下边框颜色 */
}

.input-group label {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.5s linear;
    color: #fff; /* 标签颜色设为白色 */
    pointer-events: none; /* 防止标签干扰输入 */
}
.input-group select {
    width: calc(100% - 70px); /* 设置选择框的宽度，使其适应父容器的宽度，同时留出标签和间距的空间 */
    padding: 5px; /* 在选择框内部添加一些内边距 */
    font-size: 16px; /* 设置选择框内文本的字体大小 */
}
.input-group input:focus + label,
.input-group input:valid + label,
.input-group-icon input:focus + label,
.input-group-icon input:valid + label{
    top: 0;
    font-size: 12px;
}

/* 登录按钮样式 */
.auth-button {
    display: block; /* 设置为块级元素，以便居中 */
    width: 100%; /* 宽度100%，响应式设计 */
    max-width: 200px; /* 桌面端最大宽度，可根据需要调整 */
    padding: 10px 20px;
    margin: 30px auto 0; /* 上下外边距，左右自动居中 */
    color: #bd93f9;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 5px; /* 初始圆角 */
    transition: all 0.5s linear; /* 平滑的过渡效果 */
    left: 0; /* 移除左偏移 */
}

.auth-button:hover {
    color: #fff;
    background: #bd93f9;
    box-shadow: 0 0 5px 0 #bd93f9, 0 0 25px 0 #bd93f9, 0 0 50px 0 #bd93f9, 0 0 100px 0 #bd93f9;
}

/* 按钮内的动画线条样式 */
.auth-button > span {
    position: absolute;
    background: linear-gradient(to right, transparent, #bd93f9); /* 修正渐变方向 */
}

.auth-button > span:nth-child(1) {
    width: 100%;
    height: 2px;
    top: 0;
    left: -100%;
    animation: line1 1s linear infinite;
}

@keyframes line1 {
    50%, 100% {
        left: 100%;
    }
}

.auth-button > span:nth-child(2) {
    width: 2px;
    height: 100%;
    top: -100%;
    right: 0;
    animation: line2 1s 0.25s linear infinite;
}

@keyframes line2 {
    50%, 100% {
        top: 100%;
    }
}

.auth-button > span:nth-child(3) {
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 100%;
    animation: line3 1s 0.75s linear infinite;
}

@keyframes line3 {
    50%, 100% {
        left: -100%;
    }
}

.auth-button > span:nth-child(4) {
    width: 2px;
    height: 100%;
    left: 0;
    top: 100%;
    animation: line4 1s 1s linear infinite;
}

@keyframes line4 {
    50%, 100% {
        top: -100%;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .auth-container {
        width: 60%;
        padding: 20px;
    }

    h2 {
        font-size: 18px;
    }

    .input-group input {
        font-size: 14px;
    }

    .auth-button {
        font-size: 14px;
        padding: 8px 16px;
    }
}