* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f6f9;
}

.icp-number {
    color: #636cff;
    text-align: center;
    font-size: 0.9rem;
    margin-top: 5px;
}

.icp-number a {
    color: #666;
    text-decoration: none;
}

.icp-number a:hover {
    color: #333;
    text-decoration: underline;
}

.container {
    display: flex;
    flex-wrap: wrap;
    min-height: 100vh;
}


.left-section {
    flex: 1;
    background: linear-gradient(to bottom right, #7a4fd4, #a066ff); /* 使用紫色渐变 */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    padding: 20px;
    text-align: center; /* 让文本居中 */
    flex-direction: column; /* 垂直方向排列 */
}

.left-section h1 {
    font-size: 2.5rem;
    margin: 10px 0;
}

.left-section p {
    font-size: 1.2rem;
    margin: 5px 0;
}

.login-button {
    width: 100%;
    padding: 10px;
    background: linear-gradient(to bottom right, #7a4fd4, #a066ff); /* 使用与左侧相同的紫色渐变 */
    border: none;
    border-radius: 25px;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
    text-align: center;
}

.login-button:hover {
    background: linear-gradient(to bottom right, #a066ff, #7a4fd4); /* 反转渐变方向作为悬停效果 */
}

.right-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: #fff;
}

.intro h1 {
    font-size: 2.5em;
}

.intro p {
    margin-top: 20px;
    font-size: 1.2em;
    text-align: center; /* 确保文本在所有设备上都居中 */
}

.login-box {
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-box h2 {
    margin-bottom: 20px;
    font-size: 1.5em;
}

.input-group {
    margin-bottom: 15px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 1em;
    color: #333;
}

.input-group input {
    width: 100%;
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    flex-wrap: wrap; /* 在小屏幕上允许内容换行 */
}

.remember {
    display: flex;
    align-items: center;
}

.remember input {
    margin-right: 5px;
}

.register-login {
    display: flex;
    flex-direction: column; /* 垂直排列 */
    align-items: center; /* 水平居中 */
    justify-content: center; /* 垂直居中 */
    margin-top: 20px; /* 增加一些空间以防止挤在一起 */
}

.register-login a {
    margin-right: 15px;
    text-decoration: none;
    color: #636cff;
}

.register-login button {
    padding: 10px 20px;
    background-color: #636cff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%; /* 确保按钮宽度自适应父容器 */
    max-width: 200px; /* 限制最大宽度 */
    text-align: center; /* 按钮文本居中 */
    margin-bottom: 10px; /* 确保与备案号之间有一些间距 */
}

.register-login button:hover {
    background-color: #555edb;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .left-section,
    .right-section {
        width: 100%;
        padding: 10px;
    }

    .right-section {
        order: 2;
    }

    .left-section {
        background: linear-gradient(to bottom right, #7a4fd4, #a066ff); /* 确保手机和平板设备也使用紫色渐变 */
    }
    .login-button {
        width: 80%; /* 调整按钮在小屏设备上的宽度 */
        margin: 0 auto; /* 居中显示 */
    }
    
    .login-box {
        max-width: 100%;
        padding: 0 20px;
    }

    .input-group input {
        max-width: 300px;
        margin: 0 auto;
        display: block; /* 确保输入框居中 */
    }

    .actions {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }

    .remember,
    .register-login {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }

    .register-login {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .register-login a,
    .register-login button {
        width: 60%;
        max-width: 200px; /* 确保按钮和链接在手机上不超过屏幕宽度 */
        margin-bottom: 10px; /* 确保按钮和链接之间有间距 */
    }

}
