/* 登录页面样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    background: #f5f7fa;
    overflow: hidden;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#bgBox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.slideBg {
    width: 100%;
    height: 100%;
    list-style: none;
}

.slideBg li {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.slideBg li:first-child {
    opacity: 0.1;
}

.slideBg li img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.login {
    position: relative;
    z-index: 10;
    width: 420px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 50px 40px;
}

.logo {
    width: 60px;
    height: 60px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(26, 188, 156, 0.3);
}

.logo::before {
    content: "管";
    color: #fff;
    font-size: 28px;
    font-weight: bold;
}

.title {
    text-align: center;
    font-size: 24px;
    font-weight: 500;
    color: #333;
    margin-bottom: 35px;
    letter-spacing: 1px;
}

.main {
    width: 100%;
}

.login-item {
    position: relative;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    height: 50px;
}

.login-item.focus {
    border-color: #1abc9c;
    box-shadow: 0 0 0 3px rgba(26, 188, 156, 0.1);
}

.login-item i {
    width: 50px;
    text-align: center;
    color: #999;
    font-size: 18px;
    flex-shrink: 0;
}

.login-item input {
    flex: 1;
    height: 48px;
    border: none;
    background: transparent;
    font-size: 14px;
    color: #333;
    outline: none;
    padding-right: 15px;
}

.login-item input::placeholder {
    color: #bbb;
}

/* 验证码输入框特殊样式 */
.login-item.captcha-item {
    display: flex;
    align-items: center;
    padding-right: 0;
}

.login-item.captcha-item .captcha-input {
	width:100px;
    flex: 1;
    border: none;
    border-right: 1px solid #e0e0e0;
    border-radius: 6px 0 0 6px;
    padding-right: 10px;
}

.login-item.captcha-item.focus .captcha-input {
    border-right-color: #1abc9c;
}

.captcha-img {
    width: 190px;
    height: 48px;
    flex-shrink: 0;
    border-left: 1px solid #e0e0e0;
    border-radius: 0 6px 6px 0;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-item.captcha-item.focus .captcha-img {
    border-left-color: #1abc9c;
}

.captcha-img:hover {
    background: #f0f0f0;
}

.captcha-img img {
    width: 100%;
    height: 100%;
    border-radius: 0 6px 6px 0;
    object-fit: cover;
}

/* 登录按钮 */
.login-item:last-child {
    margin-top: 30px;
    margin-bottom: 0;
    border: none;
    background: transparent;
    height: auto;
}

.login-btn {
    width: 100%;
    height: 50px;
    background: #1abc9c;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(26, 188, 156, 0.3);
    letter-spacing: 2px;
}

.login-btn:hover {
    background: #16a085;
    box-shadow: 0 6px 16px rgba(26, 188, 156, 0.4);
    transform: translateY(-1px);
}

.login-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(26, 188, 156, 0.3);
}

.login-btn[stop] {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .login {
        width: 90%;
        margin: 20px;
        padding: 40px 30px;
    }
    
    .title {
        font-size: 20px;
        margin-bottom: 30px;
    }
    
    .login-item {
        height: 48px;
    }
    
    .captcha-img {
        width: 100px;
        height: 48px;
    }
}

@media (max-width: 480px) {
    .login {
        padding: 30px 20px;
    }
    
    .logo {
        width: 50px;
        height: 50px;
        margin-bottom: 20px;
    }
    
    .logo::before {
        font-size: 24px;
    }
    
    .title {
        font-size: 18px;
        margin-bottom: 25px;
    }
    
    .login-item {
        height: 46px;
        margin-bottom: 15px;
    }
    
    .login-item i {
        width: 45px;
        font-size: 16px;
    }
    
    .captcha-img {
        width: 90px;
        height: 46px;
    }
    
    .login-btn {
        height: 46px;
        font-size: 15px;
    }
}

/* 加载动画 */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
}

/* 验证码区域样式优化 */
.captcha-img {
    position: relative;
}

.captcha-img::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    border-radius: 0 6px 6px 0;
    transition: background 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.captcha-img:hover::before {
    background: rgba(0, 0, 0, 0.05);
}

.captcha-img img {
    position: relative;
    z-index: 0;
}