﻿body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: #f8f8f8;
}

/* 顶部中间导航条 */
.middle-bar {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    background: #e0e3e7;
    border: 1px solid #c4c9d0;
    padding: 0;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    border-radius: 0 0 12px 12px;
}

.middle-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-img {
    height: 80px;
    width: auto;
}

/* 页面主容器：左右布局 */
.container {
    display: flex;
    background-color: #fff;
    padding-top: 100px; /* 留出顶部 fixed 导航条空间 */
}

/* 左侧面板样式 */
.left-panel {
    flex: 1;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

    .left-panel h1 {
        font-size: 36px;
        color: #ee4d2d;
        margin-bottom: 20px;
    }

    .left-panel p {
        font-size: 18px;
        color: #555;
        max-width: 400px;
        margin-bottom: 20px;
    }

    .left-panel img {
        max-width: 400px;
        width: 100%;
    }

/* 右侧登录/注册面板 */
.right-panel {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.register-panel {
    width: 100%;
    max-width: 400px;
    background-color: #fff;
    padding: 50px 40px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 12px;
}

.login-panel h2 {
    margin-bottom: 30px;
    font-size: 24px;
    color: #333;
    text-align: center;
}

/* 输入框样式 */
.input-box {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 15px;
}

/* 登录/注册按钮 */
.register-button {
    width: 100%;
    background-color: #ee4d2d;
    color: #fff;
    padding: 12px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.login-button:hover {
    background-color: #f26d4f;
}

/* 额外链接（如忘记密码） */
.extra-links {
    margin-top: 10px;
    text-align: right;
}

    .extra-links a {
        color: #007bff;
        text-decoration: none;
        font-size: 14px;
    }

/* 分隔线 */
.divider {
    margin: 30px 0 20px;
    text-align: center;
    color: #aaa;
    position: relative;
}

    .divider::before,
    .divider::after {
        content: '';
        height: 1px;
        background: #ccc;
        width: 40%;
        position: absolute;
        top: 50%;
    }

    .divider::before {
        left: 0;
    }

    .divider::after {
        right: 0;
    }

/* 社交登录按钮 */
.social-login {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
}

.social-btn {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #fff;
    cursor: pointer;
    font-size: 14px;
}

.fb {
    color: #3b5998;
}

.google {
    color: #db4437;
}

/* 注册跳转链接 */
.signup-link {
    margin-top: 25px;
    text-align: center;
    font-size: 14px;
}

    .signup-link a {
        color: #ee4d2d;
        font-weight: bold;
        text-decoration: none;
    }

.right-panel {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.register-panel {
    width: 100%;
    max-width: 400px;
    background-color: #fff;
    padding: 50px 40px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 12px;
}

.right-panel {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.login-panel {
    width: 100%;
    max-width: 400px;
    background-color: #fff;
    padding: 50px 40px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 12px;
}

    .login-panel h2 {
        margin-bottom: 30px;
        font-size: 24px;
        color: #333;
        text-align: center;
    }

.input-box {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 16px;
}

.login-button {
    text-align: center;
    width: 105%;
    background-color: #ee4d2d;
    color: #fff;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

    .login-button:hover {
        background-color: #f26d4f;
    }

.divider {
    margin: 30px 0 20px;
    text-align: center;
    color: #aaa;
    position: relative;
}

    .divider::before,
    .divider::after {
        content: '';
        height: 1px;
        background: #ccc;
        width: 40%;
        position: absolute;
        top: 50%;
    }

    .divider::before {
        left: 0;
    }

    .divider::after {
        right: 0;
    }

.social-login {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
}

.social-btn {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #fff;
    cursor: pointer;
    font-size: 14px;
}

.fb {
    color: #3b5998;
}

.google {
    color: #db4437;
}

.signup-link {
    margin-top: 25px;
    text-align: center;
    font-size: 14px;
}

    .signup-link a {
        color: #ee4d2d;
        font-weight: bold;
        text-decoration: none;
    }
