* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', 'Segoe UI', sans-serif;
}      
body {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                url('/image/background.avif') no-repeat center center fixed;
    background-size: cover;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #333;
}
.title{color: #fff; position:fixed; top:30px; text-align: center;}
.title h1{letter-spacing: 5px;}
.title .subtitle{letter-spacing: 11px; font-size: 12px;}
.title p{letter-spacing: 10px; margin-top: 30px;}
.header {
    margin-top: 160px;
    background-color: #d32f2f;
    text-align: center;
    padding: 15px 0;
    width: 100%;
    position: fixed;
    top: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 100;
    font-size: 1.3rem;
    font-weight: 550;
    letter-spacing: 40px;   
}
.login-container {
    background-color: rgba(255, 255, 255, 0.92);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 420px;
    text-align: center;
    margin-top: 40px;
    transition: transform 0.3s ease;
}
.login-container:hover {
    transform: translateY(-5px);
}

.logo {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.logo h1 {
    margin: 0;
    font-size: 2.2rem;
    color: #d32f2f;
    font-weight: bold;
    letter-spacing: 2px;
}

.logo .subtitle {
    margin: 5px 0;
    font-size: 1.4rem;
    color: #555;
    letter-spacing: 3px;
}

.logo .welcome {
    margin: 10px 0 0;
    font-size: 1.1rem;
    color: #666;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus {
    border-color: #d32f2f;
    box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.2);
    outline: none;
}

.captcha-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.captcha-container input {
    flex: 1;
}

.captcha-img {
    height: 45px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    user-select: none;
    padding: 0 10px;
    font-family: monospace;
    letter-spacing: 3px;
}

.captcha-img:hover {
    background-color: #eee;
}

.button-group {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    gap: 15px;
}

.button-group button {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.change-password-btn {
    background-color: #f5f5f5;
    color: #666;
}

.change-password-btn:hover {
    background-color: #e0e0e0;
}

.login-btn {
    background-color: #d32f2f;
    color: white;
}

.login-btn:hover {
    background-color: #b71c1c;
    box-shadow: 0 4px 8px rgba(211, 47, 47, 0.3);
}

.footer {
    margin-top: 20px;
    color: #777;
    font-size: 0.85rem;
    text-align: center;
}

.error-message {
    color: #d32f2f;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.input-icon {
    position: absolute;
    right: 15px;
    top: 38px;
    color: #999;
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    font-size: 0.9rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 5px;
}

.forgot-password {
    color: #d32f2f;
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .login-container {
        width: 95%;
        padding: 25px 20px;
        margin-top: 30px;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .logo h1 {
        font-size: 1.8rem;
    }
    
    .logo .subtitle {
        font-size: 1.2rem;
    }
    
    .captcha-container {
        flex-direction: column;
    }
    
    .captcha-img {
        width: 100%;
        margin-top: 5px;
    }
}

@media (max-width: 400px) {
    .header {
        font-size: 1rem;
        padding: 12px 0;
    }
    
    .login-container {
        padding: 20px 15px;
    }
    
    .logo h1 {
        font-size: 1.6rem;
    }
}