/* 基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
    height: 100vh;
    background: linear-gradient(120deg, #a1c4fd, #c2e9fb); /* 柔和渐变背景 */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 登录容器 */
.login-container {
    width: 400px;
    padding: 40px 30px;
    background: rgba(255, 255, 255, 0.9); /* 半透明白色背景 */
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(50, 50, 93, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);
    backdrop-filter: blur(10px); /* 毛玻璃效果 */
}

h1 {
    text-align: center;
    color: #4a6cf7;
    margin-bottom: 30px;
    font-weight: 600;
    font-size: 28px;
}

/* 表单样式 */
form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

label {
    position: relative;
    display: block;
}

/* 输入框样式 */
input {
    width: 100%;
    padding: 14px 20px 14px 45px; /* 左侧留出图标空间 */
    border: none;
    border-bottom: 2px solid #e0e7ff;
    background: rgba(224, 231, 255, 0.2);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

input:focus {
    outline: none;
    border-color: #4a6cf7;
    box-shadow: 0 5px 15px rgba(74, 108, 247, 0.15);
    background: rgba(224, 231, 255, 0.3);
}

input::placeholder {
    color: #a3aed0;
}

/* 图标伪元素 */
label::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
}

label:nth-child(1)::before { /* 账号图标 */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%234a6cf7' d='M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10zm0 2c-4 0-12 2-12 6v2h24v-2c0-4-8-6-12-6z'/%3E%3C/svg%3E");
}

label:nth-child(2)::before { /* 密码图标 */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%234a6cf7' d='M19 10h-1V7a7 7 0 0 0-14 0v3H3a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h16a1 1 0 0 0 1-1V11a1 1 0 0 0-1-1zM8 7a4 4 0 1 1 8 0v3H8V7zm4 10a2 2 0 1 1 0-4 2 2 0 0 1 0 4z'/%3E%3C/svg%3E");
}

/* 验证码区域 */
label:nth-child(3) {
    display: flex;
    gap: 10px;
}

#captcha-img {
    height: 46px;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid #e0e7ff;
    transition: transform 0.3s ease;
}

#captcha-img:hover {
    transform: scale(1.03);
}

/* 登录按钮 */
button {
    padding: 14px;
    background: linear-gradient(to right, #4a6cf7, #6a5af9);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(74, 108, 247, 0.2);
}

button:hover {
    background: linear-gradient(to right, #3a5ce5, #5a4ae9);
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(74, 108, 247, 0.3);
}

button:active {
    transform: translateY(1px);
}