body {
    font-family: 'Arial', 'Microsoft YaHei', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    overflow: hidden; /* 防止渐变背景溢出时出现滚动条 */
}

.container {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 40px 50px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Safari */
    max-width: 700px;
    animation: fadeIn 1.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    font-size: 2.8em;
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

h1 .subtitle {
    display: block; /* 使其成为块级元素，确保换行 */
    font-size: 0.7em; /* 例如，设置为父元素h1字体大小的70% */
    font-weight: 500; /* 可以调整字重，使其不那么突出 */
    letter-spacing: normal; /* 可以恢复正常的字母间距 */
}

p {
    font-size: 1.2em;
    line-height: 1.7;
    margin-bottom: 30px;
    opacity: 0.9;
    text-align: left;
}

.cta-button {
    background-color: #ff6b6b;
    color: white;
    padding: 15px 35px;
    border: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cta-button:hover {
    background-color: #ff4757;
    transform: translateY(-3px);
}

.footer-text {
    margin-top: 40px;
    font-size: 0.9em;
    opacity: 0.7;
    text-align: center; /* 修改：确保在容器内居中 */
}

/* 新增输入框样式 */
.input-group {
    margin-bottom: 20px;
}

.input-group input {
    width: calc(100% - 22px); /* 减去padding和border的宽度 */
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 5px;
    background-color: rgba(255,255,255,0.2);
    color: #fff;
    font-size: 1em;
}

.input-group input::placeholder {
    color: rgba(255,255,255,0.7);
}

/* 新增：记住密码区域样式 */
.remember-group {
    display: flex;
    justify-content: center; /* 修改为居中对齐 */
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.9em;
}

.remember-group div:first-child {
    margin-right: 20px; /* 在"记住用户名"后添加一些右边距 */
}

.remember-group label {
    margin-left: 5px;
    cursor: pointer;
}

.remember-group input[type="checkbox"] {
    margin-right: 3px;
    vertical-align: middle;
}

/* 修改输入框宽度 */
.input-group input[type="text"],
.input-group input[type="password"] {
    width: calc(80% - 22px); /* 例如，改为80%的宽度 */
    display: block; /* 让输入框独立成行，方便控制宽度 */
    margin-left: auto;
    margin-right: auto;
}

/* 简单的粒子效果背景 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px),
        radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 30px 30px, 60px 60px; /* 调整大小和密度 */
    background-position: 0 0, 30px 30px; /* 错开位置 */
    z-index: -1; /* 确保在内容下方 */
    animation: moveParticles 20s linear infinite;
}

@keyframes moveParticles {
    0% { background-position: 0 0, 30px 30px; }
    100% { background-position: 600px 1200px, 630px 1230px; } /* 控制粒子移动的幅度和方向 */
}
