/* 重置默认样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", sans-serif;
    color: #333;
    line-height: 1.6;
    background: #f5f5f5;
}

/* 页头样式 */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10%;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo h1 {
    font-size: 24px;
    color: #ff6700;
}

.logo p {
    font-size: 14px;
    color: #666;
}

/* 导航栏样式 */
nav {
    background-color: #333;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    max-width: 1200px;
    margin: 0 auto;
}

/* 内容区样式 */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* 登录容器 */
.login-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* 登录页横幅 */
.login-banner {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.login-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.banner-text h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.banner-text p {
    font-size: 16px;
}

/* 登录表单 */
.login-form {
    padding: 40px;
    max-width: 500px;
    margin: 0 auto;
}

.login-form h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    border-color: #ff6700;
    outline: none;
}

/* 记住密码和忘记密码 */
.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkbox {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.checkbox input {
    margin-right: 5px;
}

.forgot-link {
    color: #666;
    font-size: 14px;
    text-decoration: none;
}

.forgot-link:hover {
    color: #ff6700;
}

/* 登录按钮 */
.btn-login {
    width: 100%;
    padding: 12px;
    background: #ff6700;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-login:hover {
    background: #f25807;
}

/* 其他登录方式 */
.other-login {
    margin-top: 30px;
    text-align: center;
}

.other-login p {
    color: #999;
    font-size: 14px;
    margin-bottom: 15px;
    position: relative;
}

.other-login p::before,
.other-login p::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 80px;
    height: 1px;
    background: #eee;
}

.other-login p::before {
    left: 50px;
}

.other-login p::after {
    right: 50px;
}

.login-methods {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.method-item {
    text-align: center;
    text-decoration: none;
    color: #666;
}

.method-item img {
    width: 40px;
    height: 40px;
    margin-bottom: 5px;
    transition: transform 0.3s ease;
}

.method-item:hover img {
    transform: scale(1.1);
}

.method-item span {
    display: block;
    font-size: 12px;
}

/* 注册链接 */
.register-link {
    text-align: center;
    margin-top: 20px;
    color: #666;
}

.register-link a {
    color: #ff6700;
    text-decoration: none;
}

/* 页脚样式 */
footer {
    background-color: #f5f5f5;
    padding: 40px 0;
    margin-top: 40px;
    text-align: center;
}

.footer-nav {
    margin-bottom: 20px;
}

.copyright {
    color: #666;
    font-size: 14px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }

    .user-menu {
        margin-top: 10px;
    }

    nav ul {
        flex-direction: column;
    }

    nav li {
        width: 100%;
        text-align: center;
    }

    .login-form {
        padding: 20px;
    }

    .banner-text h2 {
        font-size: 24px;
    }

    .banner-text p {
        font-size: 14px;
    }

    .other-login p::before,
    .other-login p::after {
        width: 40px;
    }

    .other-login p::before {
        left: 20px;
    }

    .other-login p::after {
        right: 20px;
    }

    .login-methods {
        gap: 15px;
    }
} 