* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: #f5f5f5; }

.auth-wrapper { max-width: 1400px; margin: 0 auto; padding: 120px 20px 200px 20px; }
.auth-card {
    background: #fff;
    max-width: 720px;
    margin: 0 auto;
    border-radius: 12px;
    min-height: 450px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

/* 登录后的左右布局 */
.auth-card.logged-in {
    max-width: 1200px;
    display: flex;
}

.auth-tabs { display: flex; gap: 0; border-bottom: 1px solid #eee; margin-bottom: 30px; }
.auth-tab { appearance: none; border: 0; background: transparent; padding: 16px 28px; cursor: pointer; font-size: 18px; color: #666; border-bottom: 3px solid transparent; }
.auth-tab.active { color: #000; border-bottom-color: #ff0000; }

.auth-form { display: flex; flex-direction: column; gap: 18px; }
.auth-actions { display: flex; justify-content: flex-end; }
.auth-actions .link { color: #000; text-decoration: none; font-size: 14px; }
.btn-block { width: 100%; }

/* shared form styles matching site VI */
.form-group { display: grid; gap: 8px; }
.form-label { font-size: 16px; font-weight: normal; }
.form-input { width: 100%; padding: 12px 14px; border: 1px solid #e5e5e5; border-radius: 8px; font-size: 16px; outline: none; background: #fff; }
.form-input:focus { border-color: #ff0000; box-shadow: 0 0 0 3px rgba(255,0,0,0.08); }
.form-hint { display: block; margin-top: 6px; font-size: 12px; color: #ff0000; line-height: 1.4; }

.btn { padding: 12px 20px; border: none; border-radius: 999px; font-size: 16px; cursor: pointer; transition: background-color .25s ease; }
.btn-primary { background-color: #ff0000; color: #fff; }
.btn-primary:hover { background-color: #cc0000; }

/* 左侧用户菜单样式 */
.user-menu-sidebar {
    width: 280px;
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    color: #fff;
    padding: 30px 0;
    border-radius: 12px 0 0 12px;
    display: none; /* 默认隐藏 */
}

.user-menu-sidebar.show {
    display: block;
}

.menu-header {
    padding: 0 30px 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.menu-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
}

.menu-nav {
    padding: 20px 0;
}

.menu-item {
    display: block;
    padding: 15px 30px;
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    font-size: 16px;
    font-weight: 500;
}

.menu-item:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
    border-left-color: #ff0000;
}

.menu-item.active {
    color: #fff;
    background: rgba(255,0,0,0.2);
    border-left-color: #ff0000;
}

/* 右侧内容区域样式 */
.content-area {
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    overflow-y: auto;
    width: 100%;
}

/* 登录后右侧内容区域的样式 */
.auth-card.logged-in .content-area {
    flex: 1;
    border-radius: 0 12px 12px 0;
}

/* 调整现有样式以适应新布局 */
.auth-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
    justify-content: center;
}

.auth-forms {
    max-width: 600px;
    margin: 0 auto;
}

/* 用户头部信息 */
.user-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 0 auto;
}

.user-avatar img {
    width: 80px !important;
    height: 80px !important;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ff0000;
}

.user-info-section {
    flex: 1;
}

.username {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.user-role {
    font-size: 14px;
    color: #ff0000;
    font-weight: 600;
    margin-bottom: 10px;
}

.user-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #52c41a;
}

.status-dot.online {
    background: #52c41a;
    box-shadow: 0 0 8px rgba(82, 196, 26, 0.4);
}

.status-text {
    font-size: 12px;
    color: #666;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .auth-card {
        max-width: 900px;
    }

    .user-menu-sidebar {
        width: 240px;
    }

    .content-area {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .auth-wrapper {
        padding: 80px 15px 120px 15px;
    }

    .auth-card {
        max-width: 100%;
        min-height: auto;
    }

    /* 登录后在移动端的布局 */
    .auth-card.logged-in {
        flex-direction: column-reverse;
        max-width: 100%;
    }

    .user-menu-sidebar.show {
        width: 100%;
        border-radius: 0 0 12px 12px;
        padding: 20px 0;
    }

    .auth-card.logged-in .content-area {
        border-radius: 12px 12px 0 0;
        padding: 24px;
    }

    .menu-header {
        padding: 0 20px 20px;
    }

    .menu-item {
        padding: 12px 20px;
    }

    /* 用户头部移动端适配 */
    .user-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 20px;
    }

    .user-avatar img {
        width: 70px !important;
        height: 70px !important;
    }

    .username {
        font-size: 20px;
    }

    /* 用户信息面板移动端适配 */
    .user-info-panel {
        padding: 24px;
        min-height: 250px;
    }

    .user-header-section {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        margin-bottom: 30px;
        padding-bottom: 20px;
    }

    .user-avatar-large {
        width: 100px;
        height: 100px;
    }

    .online-indicator {
        justify-content: center;
        margin-top: 6px;
    }

    .online-dot {
        width: 7px;
        height: 7px;
    }

    .online-text {
        font-size: 13px;
    }

    .user-main-name {
        font-size: 28px;
    }

    .user-handle {
        font-size: 16px;
    }

    .user-details-section {
        gap: 16px;
    }

    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px 0;
    }

    .info-label {
        min-width: auto;
        font-size: 14px;
    }

    .info-value {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .menu-item {
        font-size: 14px;
    }

    .content-area {
        padding: 20px;
    }

    .auth-forms {
        max-width: 100%;
    }
}

/* 用户信息面板样式 */
.user-info-panel {
    background: #ffffff;
    padding: 40px;
    min-height: 300px;
    border: 1px solid #f0f0f0;
}

.user-header-section {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
}

.user-avatar-large {
    width: 120px;
    height: 120px;
    border: 3px solid #e8f4fd;
    background: #f8f9fa;
    flex-shrink: 0;
    overflow: hidden;
}

.user-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.online-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}

.online-dot {
    width: 8px;
    height: 8px;
    background: #52c41a;
}

.online-text {
    font-size: 14px;
    color: #666;
    font-weight: 400;
}

.user-basic-info {
    flex: 1;
}

.user-main-name {
    margin: 0 0 8px 0;
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
}

.user-handle {
    margin: 0;
    font-size: 18px;
    color: #8c8c8c;
    font-weight: 400;
}

.user-details-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid #f5f5f5;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    min-width: 100px;
    font-size: 16px;
    color: #666;
    font-weight: 500;
    flex-shrink: 0;
}

.info-value {
    font-size: 16px;
    color: #1a1a1a;
    font-weight: 400;
    flex: 1;
}

/* 登录后显示用户信息面板 */
.auth-card.logged-in .user-menu-sidebar {
    display: block;
}

.auth-card.logged-in .content-area {
    flex: 1;
    border-radius: 0 12px 12px 0;
}


