/* CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ========== 基础样式 ========== */
body, html {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;        /* 改为列排列，方便备案号固定在底部 */
    justify-content: center;
    align-items: center;
    background-repeat: no-repeat;
    /*background-image: url('xingkong.png');*/
    background-size: cover;
    font-family: 'Segoe UI', 'PingFang SC', Roboto, 'Helvetica Neue', sans-serif;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

/* ========== 登录容器 ========== */
.login-container {
    max-width: 420px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(228, 228, 228, 0.5);
    border-radius: 16px;
    padding: 32px 38px 20px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.10);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    /* 移除 position: relative，不再需要 */
}

/* ========== 表单标题 ========== */
.form-title {
    text-align: center;
    margin-bottom: 24px;
}
.form-title h1 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    letter-spacing: 2px;
}
.form-title h1::before {
    content: "📋 ";
    font-size: 22px;
}
.form-title p {
    font-size: 13px;
    color: #888;
    margin-top: 4px;
    letter-spacing: 1px;
}
.form-comment {
    text-align: center;
    margin-bottom: 24px;
}
.form-comment p {
    font-size: 13px;
    color: #888;
    margin-top: -14px;
    letter-spacing: 1px;
}

/* ========== 表单样式 ========== */
form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 表单项容器 */
form div {
    width: 100%;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
}

/* 标签样式 */
form label {
    flex-shrink: 0;
    width: 72px;
    text-align: right;
    margin-right: 14px;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* 输入框样式 */
form input[type="text"],
form input[type="password"] {
    flex: 1;
    height: 40px;
    line-height: 40px;
    border: 1.5px solid #e0e0e0;
    color: #333;
    outline: none;
    font-size: 14px;
    padding: 0 12px;
    border-radius: 8px;
    background: #fafafa;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
form input[type="text"]:focus,
form input[type="password"]:focus {
    border-color: #667eea;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.12);
}

/* 注册页面返回链接 */
form a {
    margin-top: 25px;
    display: flex;
    align-items: center;
}

/* ========== 记住我行 ========== */
.remember-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 2px 0 12px 0;
    padding: 0 2px;
}
.remember-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    width: auto;
    font-weight: 400;
    flex-shrink: 0;
    margin-left: 85px;
}
.remember-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #667eea;
    margin: 0;
}
.forgot-link {
    font-size: 13px;
    color: #667eea;
    text-decoration: none;
    font-weight: 400;
}
.forgot-link:hover {
    text-decoration: underline;
}

/* ========== 提交按钮 ========== */
form input[type="submit"] {
    width: 100%;
    height: 46px;
    line-height: 46px;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    color: #fff;
    margin-top: 6px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.25s;
    letter-spacing: 4px;
}
form input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.35);
}
form input[type="submit"]:active {
    transform: translateY(0);
}

/* ========== 注册链接 ========== */
.register-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #667eea;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}
.register-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* ========== 备案号（独立于容器外，固定在页面底部） ========== */
.icp-info {
    text-align: center;
    font-size: 11px;
    color: #aaa;
    padding: 20px 0 10px;
    margin-top: 50px;            /* 与登录容器保持间距 */
    width: 100%;
    max-width: 420px;            /* 与登录容器宽度一致，保持对齐 */
    border-top: 1px solid rgba(228, 228, 228, 0.3);
}
.icp-info a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.2s;
}
.icp-info a:hover {
    color: #666;
    text-decoration: underline;
}