/* Authentication Styles */
.auth-section {
    display: flex;
    align-items: center;
}

.auth-btn {
    padding: 8px 16px;
    background: rgba(217, 27, 122, 0.3);
    border: 1px solid rgba(217, 27, 122, 0.5);
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    font-family: 'Arial', 'Microsoft YaHei', sans-serif;
    transition: all 0.3s ease;
}

.auth-btn:hover {
    background: rgba(217, 27, 122, 0.5);
    border-color: #d91b7a;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-name {
    color: var(--text-secondary);
    font-size: 14px;
    font-family: 'Arial', 'Microsoft YaHei', sans-serif;
}

.logout-btn {
    padding: 6px 12px;
    font-size: 12px;
}

.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.auth-modal.show {
    display: flex;
}

.auth-modal-content {
    background: rgba(26, 26, 46, 0.95);
    border: 1px solid rgba(217, 27, 122, 0.3);
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
}

.auth-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-modal-header h2 {
    margin: 0;
    font-size: 20px;
    color: #fff;
}

.auth-modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.auth-modal-close:hover {
    color: var(--primary-color);
}

.auth-modal-body {
    padding: 20px;
}

.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.auth-tab {
    flex: 1;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Arial', 'Microsoft YaHei', sans-serif;
}

.auth-tab.active {
    background: rgba(217, 27, 122, 0.3);
    border-color: #d91b7a;
    color: #fff;
}

.auth-form-group {
    margin-bottom: 16px;
}

.auth-form-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-secondary);
    font-size: 14px;
    font-family: 'Arial', 'Microsoft YaHei', sans-serif;
}

.auth-form-group input {
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    font-family: 'Arial', 'Microsoft YaHei', sans-serif;
    box-sizing: border-box;
}

.auth-form-group input:focus {
    outline: none;
    border-color: #d91b7a;
    background: rgba(255, 255, 255, 0.08);
}

.auth-message {
    margin-bottom: 16px;
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Arial', 'Microsoft YaHei', sans-serif;
    display: none;
}

.auth-message.show {
    display: block;
}

.auth-message.success {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.auth-message.error {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.auth-submit-btn {
    width: 100%;
    padding: 12px;
    background: rgba(217, 27, 122, 0.6);
    border: 1px solid #d91b7a;
    border-radius: 6px;
    color: #fff;
    font-size: 16px;
    font-family: 'Arial', 'Microsoft YaHei', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-submit-btn:hover {
    background: rgba(217, 27, 122, 0.8);
}

@media (max-width: 768px) {
    .auth-section {
        font-size: 12px;
    }

    .auth-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .user-name {
        font-size: 12px;
    }
}

